Command reference¶
vexy-mkdocs-tools and vmt are the same program. python -m vexy_mkdocs_tools
also runs it. The command line is built with
Python Fire, so --help after any
command shows its flags:
Global flags¶
These flags choose the folders the commands work on. Relative paths are resolved against the current working directory.
| Flag | Short | Default | Meaning |
|---|---|---|---|
--root |
-r |
Found by searching upwards | The site root folder |
--config |
-c |
<root>/mkdocs/mkdocs.yml |
The ProperDocs configuration file |
--docs |
-d |
<root>/docs |
The output folder |
--src |
-s |
<root>/src_docs/md |
The Markdown folder that Flowmark formats |
Fire accepts these flags before or after the command name, so
vmt --root site build and vmt build --root site do the same thing.
--src only tells the format step where the Markdown is. ProperDocs reads its
source folder from docs_dir in the configuration file. See
Site configuration.
Without --root, the tool searches for the site root before it runs any
command. See Site layout.
build¶
Runs the full pipeline.
| Flag | Short | Default | Meaning |
|---|---|---|---|
--verbose |
-v |
off | Log at DEBUG level |
--no-format (also --no_format) |
-n |
off | Skip the Flowmark step |
Steps, in order:
- Unless
--no-formatis given, run Flowmark over the--srcfolder (seeformat). If the folder does not exist, the build stops withsource Markdown directory missing: <path>. - Delete everything in the
--docsfolder exceptCNAME. Create the folder if it does not exist. - Stop with
mkdocs config missing: <path>if the configuration file does not exist. - Run
properdocs build -f <config> -d <docs>from the site root. - Create
<docs>/.nojekyll.
If any step fails, the tool logs the error and exits with status 1. A failed
ProperDocs run is reported as build failed (exit <code>).
serve¶
Starts the ProperDocs development server with live reload.
The tool runs properdocs serve -f <config> from the site root. ProperDocs
builds the preview into a temporary folder, so docs/ is left alone. Stop
the server with Ctrl+C; the tool prints Server stopped.
clean¶
Empties the output folder without building.
Deletes every file and folder in --docs except CNAME, and logs
Cleaned <docs> (preserved CNAME). Symbolic links are removed, not followed.
format¶
Formats the Markdown source in place with Flowmark.
The tool runs this command from the site root:
With these options Flowmark rewrites the files without keeping backups, applies
its cleanups, turns straight quotes into typographic quotes and ... into …,
and does not wrap lines.
If flowmark is not on the PATH, the command logs this warning and returns
without an error:
flowmark not on PATH; install the [flowmark] extra (`uv pip install vexy-mkdocs-tools[flowmark]`) to enable this step
version¶
Prints the installed package version, for example 0.1.1.
Logging¶
Messages go to standard error in the form LEVEL | message. The default
level is INFO. Two settings change it:
--verboseon any command exceptversionsets the level toDEBUG. At that levelcleanandbuildalso log every file they remove.- The
VMT_LOG_LEVELenvironment variable sets the level when--verboseis not given, for exampleVMT_LOG_LEVEL=WARNING vmt build.
ProperDocs prints its own messages in its own format (INFO - …). The two
settings above do not affect them.