From 1144980295d453683a19b81affb10f9a5c3b6a67 Mon Sep 17 00:00:00 2001 From: wompmacho Date: Wed, 25 Mar 2026 03:53:31 +0000 Subject: [PATCH] Docs: Update references to reflect the transition from Caddy to Nginx --- .gitea/workflows/deploy.yaml | 2 +- README.md | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 README.md diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 7cbb27e..7400e6c 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -52,7 +52,7 @@ jobs: # Build the site using dynamic environment variable overrides HUGO_PARAMS_ARTICLE_EDITURL="https://git.wompmacho.com/wompmacho/docs-public/src/branch/main" hugo --minify --destination public - # Deploy to Caddy + # Deploy to Nginx Volume mkdir -p /deploy/wiki rm -rf /deploy/wiki/* cp -r public/* /deploy/wiki/ diff --git a/README.md b/README.md new file mode 100644 index 0000000..4a491ed --- /dev/null +++ b/README.md @@ -0,0 +1,27 @@ +# Public Wiki Source (docs-public) + +This repository exclusively contains the **Markdown content, static assets, and dynamic configuration overrides** for your public-facing wiki. + +## 🏗️ Architecture + +Your Wiki architecture is decoupled. This repository contains the text, but the `hugo-framework` repository contains the styling and engine (Blowfish). + +### What lives here: +* `content/` (Optional: Just place your markdown files in the root instead) +* `static/` (Images, downloads, icons) +* `config/` (Dynamic overrides for the Top Navigation Menu: `menus.en.toml`) +* `.gitea/workflows/deploy.yaml` (The CI/CD pipeline script) + +## 🚀 Deployment + +Pushing changes to the `main` branch automatically triggers the Gitea Action. + +The Runner: +1. Checks out this repository. +2. Clones the `hugo-framework`. +3. Injects your Markdown and the `menus.en.toml`. +4. Injects the "Edit Link" URL dynamically via Environment Variables (`HUGO_PARAMS_ARTICLE_EDITURL`). +5. Builds the site. +6. Deploys it directly to the Nginx web server volume at `/srv/caddy/sites/wiki`. + +**Public URL:** `https://wiki.wompmacho.com` \ No newline at end of file