Skip to content

build

build

Build a MkNodes-based website, locally or remotely.

Runs the build function on given repository (either locally or a hosted one), writes the generated pages and config (see generate) and builds the HTML website with zensical build -f <generated config>.

Further info here: https://phil65.github.io/mkdocs-mknodes/CLI/

mknodes build [OPTIONS]

--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 )

--site-dir, -d

Path to the folder where the HTML should get written.

--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.

--strict, -s

:mdi-flag: Flag Strict mode (fails on warnings)

--engine, -e

Default: zensical Site engine: zensical (HTML site, default) or markdown (plain Markdown files).

--flavor

Markdown flavour (material, github). Default: the engine's flavour.

--verbose, -v

:mdi-flag: Flag Enable verbose output. (DEBUG level)

--quiet, -q

:mdi-flag: Flag Suppress output during build.

--help

:mdi-flag: Flag Show this message and exit.

Page info
Code for this page
mkdocs_mknodes.manual.cli_section._
@nav.route.page("build", icon="wrench")
def _(page: mk.MkPage):
    page += mk.MkCliDoc(CLI_PATH, prog_name="build")
Resources
Resources(css=[],
          markdown_extensions={},
          plugins=[],
          js=[],
          assets=[Asset('materialbadge_31c4bf6.css')],
          packages=[])
Metadata
created:
  source_filename: /home/runner/work/mkdocs-mknodes/mkdocs-mknodes/.venv/lib/python3.13/site-packages/anyenv/async_run.py
  source_function: run_sync.<locals>.wrapper
  source_line_no: 52
icon: material/wrench
title: build