The website and documentation of Forgust, built with Next.js and Fumadocs.
npm install
npm run dev # http://localhost:3000
npm run build # production build
npm run lint # Biome| Path | What |
|---|---|
app/(home) |
Landing page and footer |
app/docs, app/api-reference |
Layouts of the documentation and of the API reference (content/docs/api, a section of its own) |
content/docs |
Documentation pages (MDX); each folder's meta.json orders its sidebar. The guides are not published yet |
app/(home)/roadmap |
The roadmap page, drawn from lib/roadmap.ts: a task is todo(...), wip(...) once a pull request is open, then done(...) |
app/(home)/changelog |
The changelog page, drawn from the releases on GitHub when the site is built (lib/github.ts) |
openapi.json |
The API document of the documented release, shown as the API reference under /api-reference (lib/openapi.ts) |
lib/api-catalog.ts |
The API reference's sidebar: its sections and groups, and each operation's title, in order |
public/screenshots |
App screenshots (light and dark), from the Forgust repository |
public/smart-view/forgust.html |
The live Smart View of the landing page, written by scripts/gen-smart-view.sh |
public/app-demo |
The live pipeline of the landing page: Forgust's web app showing a recording, written by scripts/gen-app-demo.sh |
scripts/gen-config-reference.py |
Regenerates content/docs/reference/configuration.mdx from forgust.example.toml |
scripts/forge-bench |
Times Forgust, Gitea, Forgejo and GitLab on the same pages; its summarize.py writes lib/forge-bench.ts, the landing page's comparison |
To update the API reference, replace openapi.json with the one of the new release:
git -C ../forgust show v0.8.0:web/openapi.json > openapi.json
scripts/gen-smart-view.sh # the Smart View of the landing page, from ../forgust as checked out
scripts/gen-app-demo.sh http://127.0.0.1:8080 # the pipeline of the landing page, recorded from a seeded instance of that versionThen set currentVersion in lib/shared.ts and the version named in content/docs/api/index.mdx.
npm run dev then warns about the operations missing from lib/api-catalog.ts (they show their route
as title, in the group of their tag) and about those it lists that are gone.
The site is static: npm run build writes it to out/, and .github/workflows/pages.yml deploys that to
GitHub Pages on each push to main (pull requests are only built). There is no server, so no redirect,
rewrite or proxy: the Markdown copy of a page (/api-reference/projects.md) is a file, put next to the
page by the postbuild script.
Only the landing page, the roadmap and the API reference are published. The guides under content/docs are
skeletons: while docsEnabled in lib/shared.ts is off they have no page, no search entry and no Markdown
copy, and /docs goes to the API reference. To publish them, turn it on and point the landing page's and
the footer's links back to the guides.
Pages under construction show a "Work in progress" callout.