feat: Forgejo Pages support
All checks were successful
Build and Deploy Static Site / build (push) Successful in 46s

This commit is contained in:
Kumi 2025-04-12 11:02:05 +02:00
parent d69a38d7bd
commit 59fea3d111
Signed by: kumi
GPG key ID: ECBCC9082395383F
2 changed files with 12 additions and 0 deletions

View file

@ -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.")