From 0b9c72fdf918a908360523ee740a741758b83a0d Mon Sep 17 00:00:00 2001 From: marco Date: Thu, 23 Apr 2026 12:06:45 +0200 Subject: [PATCH] restructured files to be in public folder --- .gitea/workflows/deploy.yml | 8 ++++---- build.py | 2 +- {de => public/de}/index.html | 0 {en => public/en}/index.html | 0 index.html => public/index.html | 0 robots.txt => public/robots.txt | 0 styles.css => public/styles.css | 0 7 files changed, 5 insertions(+), 5 deletions(-) rename {de => public/de}/index.html (100%) rename {en => public/en}/index.html (100%) rename index.html => public/index.html (100%) rename robots.txt => public/robots.txt (100%) rename styles.css => public/styles.css (100%) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 7ed19a6..7f90835 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -2,7 +2,7 @@ name: Deploy static site on: push: - branches: [main] + branches: [ main ] jobs: deploy: @@ -41,6 +41,6 @@ jobs: - name: Deploy via rsync run: | rsync -avz --delete \ - -e "ssh -i ~/.ssh/id_ed25519 -p ${{ secrets.DEPLOY_PORT }}" \ - index.html styles.css robots.txt de/ en/ \ - ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }}:${{ secrets.DEPLOY_PATH }} \ No newline at end of file + -e "ssh -i ~/.ssh/id_ed25519 -p ${{ secrets.DEPLOY_PORT }} \ + public/ \ + ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }}:${{ secrets.DEPLOY_PATH }} diff --git a/build.py b/build.py index ee65f6b..ce5e55c 100644 --- a/build.py +++ b/build.py @@ -37,7 +37,7 @@ for page_name, translations in content.items(): language_switcher = " ".join(links) output = output.replace("{{language-switcher}}", language_switcher) - output_dir = lang + output_dir = f'public/{lang}' os.makedirs(output_dir, exist_ok=True) output_file = os.path.join(output_dir, f"{page_name}.html") diff --git a/de/index.html b/public/de/index.html similarity index 100% rename from de/index.html rename to public/de/index.html diff --git a/en/index.html b/public/en/index.html similarity index 100% rename from en/index.html rename to public/en/index.html diff --git a/index.html b/public/index.html similarity index 100% rename from index.html rename to public/index.html diff --git a/robots.txt b/public/robots.txt similarity index 100% rename from robots.txt rename to public/robots.txt diff --git a/styles.css b/public/styles.css similarity index 100% rename from styles.css rename to public/styles.css