You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
build: automate landing page build and update docs
Integrate the landing page generation into the deployment workflow and provide updated documentation for the new project structure. These changes ensure the live site remains synchronized with its source and offer clear instructions for local development and site maintenance.
│ ├── layouts/ # index.html template with the landing styles
14
+
│ └── hugo.toml # Hugo config
15
+
├── source/ # Wiki source (Hugo content + layouts)
16
+
│ ├── content/ # Markdown pages
17
+
│ ├── layouts/ # Custom Hugo templates
18
+
│ ├── static/ # Wiki CSS and assets
19
+
│ └── hugo.toml # Hugo config
20
+
└── wiki/ # Built wiki (generated from source/)
17
21
```
18
22
19
23
## Running locally
@@ -41,6 +45,15 @@ hugo --baseURL="/wiki/" --destination="../wiki"
41
45
42
46
This generates the static site under `website/wiki/`.
43
47
48
+
## Rebuilding the landing page
49
+
50
+
The landing page is generated from `source-landing/content/_index.md` using a single Hugo home template at `source-landing/layouts/index.html` (which contains the page's inline styles). To edit copy, edit the markdown — don't edit `index.html` directly.
51
+
52
+
```bash
53
+
cd source-landing
54
+
hugo --destination=/tmp/landing-build && cp /tmp/landing-build/index.html ../index.html
55
+
```
56
+
44
57
## Deployment
45
58
46
59
The site is deployed to <https://class-pollution.github.io> via the GitHub Actions workflow at `.github/workflows/deploy-website.yml`. On every push to `main` that touches `website/`, the workflow:
0 commit comments