ferraus docs build-site

Generate the mdBook docs site source from the command definitions

Synopsis

ferraus docs build-site [options]

What it does

Generate the mdBook docs site source from the command definitions

Examples

Write the docs site source

ferraus docs build-site --out target/docs-site

Fail if any command lacks examples or help text

ferraus docs build-site --check

Check the depth bar and write the site with guides from a custom folder

ferraus docs build-site --guides docs/guides --out site --check

Options

FlagTypeDefaultMeaning
--outpathtarget/docs-siteDirectory to write book.toml and src/ into
--guidespathdocs/guidesDirectory of hand-written guides copied into the site
--checkflag—Fail when any command is below the documentation depth bar

Global options

Every command also accepts the global options (-o, --json, --dry-run, --overwrite, --progress, ...). See Global options.

Exit codes

CodeMeaning
0Success
1Processing failed
2Usage or parameter error
3Input missing or unreadable
8Cancelled
70Internal error (bug)

Common mistakes

  • Expecting human-readable text when scripting: add --json for a stable machine result.

For models

  • MCP tool: ferraus_docs_build_site
  • Schema: ferraus schema docs build-site
  • Pipeline: { op: docs build-site, args: { ... } } (flag names with _ instead of -)
  • fx stage: no
{"command": "docs build-site", "defaults": {"out": "target/docs-site", "guides": "docs/guides"}}