Updated
Reference for the selfdoc build command — usage, flags, arguments, and examples for the build subcommand of the selfdoc CLI.
#selfdoc build
Build the documentation site from templates and source code
Effect: mutating
#Flags
| Name | Short | Type | Presence | Env | Description |
|---|---|---|---|---|---|
--auto-commit, --no-auto-commit | bool | optional | Automatically commit updated content hash tracking files to git after the build. Omitted, it commits; pass --no-auto-commit to leave them uncommitted | ||
--locale | str | optional | Build only the specified locale instead of all (e.g., 'en') | ||
--version | str | optional | Build only the specified version instead of all (e.g., '1.0.0') | ||
--drafts, --no-drafts | bool | optional | Include posts marked as draft in the build output alongside published posts. Omitted, drafts are left out; pass --drafts to include them | ||
--target | str | optional | Build target: 'site' for the whole documentation site, 'posts' for a posts-only build, 'unified' for a unified multi-project site, 'home' for the assembly's home project (the one served at the site root, whose pages carry site-level directives). Omitted, 'site' is built | ||
--site-manifests | str | optional | Path to the assembly's manifests directory. Required by --target home: the home project's front page renders the curated listing with each project's live version and the recent posts across the whole site, and only the assembly's manifests carry those | ||
--theme | str | optional | Theme name that overrides the one selfdoc.json declares, for this build only (e.g. 'tinymoon'). Omitted, the config decides. Nothing is written back to selfdoc.json -- this exists so the same pages can be built under a different theme and looked at, without editing every project's config to do it |