Build documentation
SkillDocs & knowledgeBuild and check the JustRelax.jl documentation (Documenter + DocumenterVitepress), first-time setup, what the build regenerates, and how to triage its warnings. Use when changing docs, docstrings, API pages or the docs build.
Available today. Use it from your connected AI after setup.
No other account needed.
Add ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.
Then ask your AI: use the Build documentation skill
What this skill tells your AI
The instructions your AI receives, as published by ptsolvers/justrelax.jl in .claude/skills/build-docs/SKILL.md and read by ahel’s review.
Rules for docs content and docstrings: docs-rules and docstring-rules.
Steps
-
First time only — make the docs environment use the local checkout:
julia --project=docs --startup-file=no -e 'using Pkg; Pkg.develop(path="."); Pkg.instantiate()' -
Build (the Vitepress theme needs Node, which DocumenterVitepress supplies through
NodeJS_jll; expect a slow first build):julia --project=docs --startup-file=no docs/make.jlThe site lands in
docs/build/. Ask before starting a full build if the change is prose-only: it is heavy. -
Triage the output.
:missing_docsand:cross_referencesare warn-only indocs/make.jl, but do not add new ones. For a missing docstring on a new export: write it, then make sure the source file is listed in thePagesof the matchingdocs/src/man/api/*.md@autodocsblock.- Real failures: a Literate error in one of the three miniapps that generate pages, a page missing from
pages, malformed@autodocs/@refsyntax.
-
Review what the build rewrote.
git status docs/src. The build regeneratesman/license.md,security.md,authors.md,code_of_conduct.md,contributing.md(from the repo-root files) and the Literate pagesman/diffusion2D_periodic.md,man/ShearBand2D.md,man/Blankenbach.md(from miniapps). Edit the sources, not these pages, and commit a regenerated page only when its source changed. -
Never commit
docs/build/,docs/site/ordocs/Manifest*.toml.
Layout
docs/src/index.md,docs/src/man/— user guide, equations, examples, API reference (man/api/), developer guide (man/developer.md).docs/make.jl— page list, generated pages,checkdocs = :exports,modules = [JustRelax, JustRelax2D, JustRelax3D, DataIO].docs/paper/— the JOSS paper; separate from the user docs.- Deployment:
.github/workflows/Documenter.yml; PR previews are removed byDocPreviewCleanup.yml.
Notes
- When the exported API changes, update the docstring and the relevant
docs/src/man/page in the same PR. - A new user-visible feature usually deserves a mention in the manual page for its area (boundary conditions, backend, grid generation, …) and, for a solver, in
man/developer.mdif it changes how solvers are added.
Signals
- GitHub stars
- 44
- Forks
- 12
- Last commit
- Sep 2026
Advanced
- Item type
- skill
- Key
build-docs- Source
- github.com/ptsolvers/justrelax.jl