This folder contains the documentation site for Subliminal's Curated Bindings.
If you want to improve docs, this is where you work.
You can update docs directly on GitHub:
- Open
docs-site/docs/in the repository - Click a
.mdfile you want to update - Click Edit this file (pencil icon)
- Commit to a branch and open a Pull Request
After merge to main, the docs site auto-deploys via GitHub Actions.
Use Docker only when you want local preview before opening a PR.
- Edit Markdown pages in
docs-site/docs/ - Update navigation in
docs-site/mkdocs.toml(nav = [...]) - Add/update assets under
docs-site/docs/assets/ - Update styles in
docs-site/docs/stylesheets/extra.csswhen needed
Do not manually edit generated files in docs-site/site/.
From repo root:
docker compose -f docs-site/docker-compose.yml upThen open:
http://localhost:8000
Stop preview:
docker compose -f docs-site/docker-compose.yml downFrom repo root:
docker run --rm \
-v "$PWD":/work \
-w /work/docs-site \
zensical/zensical:latest \
build -f mkdocs.tomlA successful build outputs static files to docs-site/site/.
This repo includes tasks:
Zensical: ServeZensical: BuildZensical: Stop
They run from docs-site/.
- Create a branch
- Edit files in
docs-site/docs/ - Run local preview/build
- Commit only source changes (not generated site output)
- Open a Pull Request
Deployment is handled by:
.github/workflows/deploy.yml
It runs on:
- pushes to
mainthat touchdocs-site/**or the workflow itself - manual run via
workflow_dispatch
It builds docs and force-pushes generated output to gh-pages.
- Confirm
docs-site/mkdocs.tomlexists - Confirm
docs-site/docs/index.mdexists - Confirm
.github/workflows/deploy.ymlexists and is enabled - Confirm GitHub Pages source is
gh-pages(root)