generate
generate¶
Generate the site input (pages, nav, assets, config) for the site engine.
Runs the build function (mknodes.site:parse / the default website unless
configured in [tool.mknodes] of pyproject.toml or in the mknodes entry of the
plugins list of mkdocs.yml) and writes the generated pages into the docs dir plus
a generated config (mkdocs.generated.yml) inheriting from mkdocs.yml.
Build afterwards with zensical build -f mkdocs.generated.yml
(mkdocs build -f ... for --engine mkdocs). --engine mdbook writes a book folder
(book/: book.toml, src/), --engine sphinx a Sphinx project (sphinx/:
conf.py, MyST pages), --engine docsify a Docsify site (index.html,
_sidebar.md), --engine markdown plain Markdown + SUMMARY.md.
--repo-url, -r¶
Repository URL of the target package. Can be remote or local.
--build-fn, -b¶
Path to the build script. (form: path.to.module:function )
--clone-depth, -c¶
Git clone depth in case repository is remote. Important for changelog generation.
--config-path, -p¶
Default: mkdocs.yml Path to the config file.
--engine, -e¶
Default: zensical
Site engine: zensical (HTML site, default), mkdocs (HTML site, needs the mkdocs extra), mdbook (HTML book, needs the mdbook binary to build / serve), sphinx (HTML site from MyST Markdown, needs the sphinx extra), docsify (Markdown rendered in the browser, no build step) or markdown (plain Markdown files).
--flavor¶
Markdown flavour (material, github, mdbook, myst). Default: the engine's flavour (zensical / mkdocs: material, mdbook: mdbook, sphinx: myst, docsify / markdown: github).
--generated-dir¶
Folder for generated pages (default: the docs dir).
--watch, -w¶
:mdi-flag: Flag Keep running and regenerate when project sources change.
--strict, -s¶
:mdi-flag:
Flag
Strict mode: fail if the build reported problems (failed nodes, /// mknodes or python exec blocks, broken code fences, unresolved references). Also passed to the engine. Default: the strict setting.
--verbose, -v¶
:mdi-flag:
Flag
Enable verbose output. (DEBUG level)
--quiet, -q¶
:mdi-flag: Flag Suppress output.
--help¶
:mdi-flag: Flag Show this message and exit.