mirror of
https://github.com/foomo/contentserver.git
synced 2026-09-22 08:10:27 +00:00
Documentation
This folder contains the VitePress site published to foomo.github.io/contentserver.
Local development
Dependencies are managed with Bun.
cd docs
bun install --frozen-lockfile
bun run dev # start the dev server with hot reload
bun run build # build the static site into .vitepress/dist
bun run preview # preview the production build locally
Publishing
Publication is automated by .github/workflows/docs.yml.
The workflow builds the site with Bun and deploys it to GitHub Pages. It runs on:
- a push of a version tag matching
v*.*.*, and - manual dispatch (Actions → Publish docs → Run workflow).
One-time GitHub repository configuration
The workflow already requests the required pages: write and id-token: write
permissions, but GitHub Pages must be switched to the GitHub Actions source once
per repository before the site becomes visible:
- Go to Settings → Pages.
- Under Build and deployment → Source, select GitHub Actions (not "Deploy from a branch").
- (Optional) Under Settings → Environments → github-pages, review the
deployment protection rules. The
docs.ymlworkflow deploys to thegithub-pagesenvironment; by default any protection rules there apply. - Trigger a first deployment — either push a
vX.Y.Ztag or run the Publish docs workflow manually via Actions → Publish docs → Run workflow. - Once the workflow succeeds, the site is available at https://foomo.github.io/contentserver/. The URL is also shown on the completed workflow run's github-pages environment.
No other repository settings are required — the base path (/contentserver/) and
sitemap hostname are already configured in
.vitepress/config.mts.