feat: Forgejo Pages support
All checks were successful
Build and Deploy Static Site / build (push) Successful in 46s
All checks were successful
Build and Deploy Static Site / build (push) Successful in 46s
This commit is contained in:
parent
d69a38d7bd
commit
59fea3d111
2 changed files with 12 additions and 0 deletions
8
main.py
8
main.py
|
@ -488,6 +488,14 @@ def generate_static_site(development_mode: bool = False, theme: Optional[str] =
|
|||
shutil.rmtree(dst)
|
||||
shutil.copytree(src, dst)
|
||||
|
||||
# Create .domains for Forgejo Pages
|
||||
domains_path = pathlib.Path("data/domains.txt")
|
||||
if domains_path.exists():
|
||||
domains_dest_path = output_dir / ".domains"
|
||||
if domains_dest_path.exists():
|
||||
domains_dest_path.unlink()
|
||||
shutil.copy(domains_path, domains_dest_path)
|
||||
|
||||
logging.info("Static site generated successfully.")
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue