Refdog generates the Skupper reference markdown that later gets built into the MkDocs site.
refdog/ is the generation workspace.
cli-doc/: command source markdown copied from the Skupper CLI repocrds/: CRD YAML copied from the Skupper repoconfig/: refdog configuration and overview textpython/: generator codeinput/: generated refdog markdown
The generated output here is not the final website. MkDocs builds from input/.
The current pipeline is:
- Update command source files in
cli-doc/. - Optionally update CRDs in
crds/. - Run refdog generation.
- Make sure the generated markdown under
refdog/input/is mirrored into../input/refdog/. - Run MkDocs from `` or the website build from
website-mkdocs/.
The important distinction is:
- Refdog generates markdown in
refdog/input/ - MkDocs reads markdown from
input/ - Final HTML ends up under
output/docs/for thedocs-valebuild orwebsite-mkdocs/output/docs/for the website build
Run this from refdog/:
./plano generateThat command is defined in .plano.py and calls the Python generators under python/.
Key files:
python/generate.py: orchestrationpython/commands.py: generatesinput/commands/*.mdpython/resources.py: generatesinput/resources/*.mdpython/concepts.py: generatesinput/concepts/*.md
For example, config/commands/overview.md is appended into the generated command index.
Commands are generated from cli-doc/*.md.
Source: CLI documentation markdown is auto-generated from the Skupper CLI Go source code using the generate-doc tool (built from the Skupper repository).
Prerequisites for updating CLI docs:
-
Clone the Skupper repository adjacent to this repo:
# From the parent directory containing skupper-docs-main/ git clone https://github.com/skupperproject/skupper.git -
Build the
generate-doctool in the Skupper repo:cd skupper make generate-doc # Or manually: go build -o generate-doc ./internal/cmd/generate-doc
Updating CLI docs:
./plano update_cliThis runs ../skupper/generate-doc ./cli-doc, which generates the CLI reference markdown directly into the cli-doc/ directory.
Resource pages are also generated today, but the resource model still depends on config/resources/*.yaml for most of the authored content. The CRDs are loaded for checking and schema lookups, but this is not a pure CRD-driven pipeline yet.
From refdog/:
# 1. Update source files
# Update CLI docs (requires generate-doc built in ../skupper)
./plano update_cli
# Optional: Update CRDs if resource source changed
./plano update_crds
# 2. Regenerate refdog markdown
./plano generateFrom ``:
# 3. Mirror refdog output into the MkDocs input tree
rsync -a refdog/input/ input/refdog/
# 4. Build the docs site
mkdocs buildIf you want the helper wrapper:
./regenerate-refdog.shThat script runs refdog/./plano generate using the fixed /docs/refdog mount path.
cd refdog
./plano generatecd docs-vale
mkdocs buildcd website-mkdocs
./build.shEdit these:
cli-doc/*.mdwhen updating command reference source from Skuppercrds/*.yamlwhen updating CRD source from Skupperconfig/commands/overview.mdand otherconfig/*/overview.mdfiles for section intro text- generator code under
python/when changing how pages are produced
Avoid editing these directly:
input/**/*.mdunderrefdog/input/refdog/**/*.md- built HTML under
output/orwebsite-mkdocs/output/
Those are generated artifacts.
There is no clear checked-in automation in this repo that copies refdog/input/ into input/refdog/ as part of the build. In practice, the MkDocs tree currently contains a mirrored copy, but the handoff is still a separate step and should be treated that way.
If this repo is going to be maintained long-term, that handoff should either be automated in the build or replaced with a symlink-based arrangement.
These are retained as deeper reference, not as the primary workflow:
resources.mdcrd-generation-proposal.md