Documentation Website
The OpenFoundry documentation website is a self-contained VitePress site under docs/, modeled after the structure used in OxiCloud/docs and adapted to this repository.
Local Development
Install documentation dependencies:
bash
cd docs
npm ciRun the site locally:
bash
npm run docs:devBuild the static site:
bash
npm run docs:buildPreview the built output:
bash
npm run docs:previewSite Layout
docs/.vitepress/config.mts: VitePress site configurationdocs/public/: static assets such as the documentation logodocs/guide/: developer and contributor flowsdocs/architecture/: system structure and runtime topologydocs/operations/: deployment and CI/CDdocs/reference/: repository and contract reference
Publication Model
The documentation site is published to GitHub Pages through .github/workflows/deploy-docs.yml.
The deployment workflow:
- triggers on pushes to
mainthat touchdocs/** - builds the VitePress site inside
docs/ - uploads
docs/.vitepress/dist - deploys the artifact with GitHub Pages
The configured base path is:
text
/OpenFoundry/That matches the expected repository-site URL shape for https://diocrafts.github.io/OpenFoundry/.
Updating the Docs
The expected authoring flow is:
- Edit or add Markdown pages in
docs/ - Run
npm run docs:buildlocally - Commit and push to
main - Let the Pages workflow rebuild and publish the website
