Skip to main content

bactopia-docs

Validate reference-doc staleness across a Bactopia repo.

Two checks run against every .md file under [b]--docs-path[/b]:

[b]Deprecated patterns (D0xx)[/b]: regex matches against [b]--patterns-file[/b] entries — phrases retired by past migrations (e.g. flattenPaths, the 4-channel emission framing).

[b]Ground-truth assertions (D1xx)[/b]: counts (D101-D103), Nextflow version (D104), bactopia-py CLI references (D105), lint rule IDs (D106), markdown link targets (D108).

Suppress a rule on a single line with <!-- bactopia-docs: ignore D0xx --> (or a comma-separated list).

Exits 1 if any FAIL is found.

Usage

bactopia-docs [OPTIONS]

Required Options

OptionTypeDefaultDescription
--bactopia-path, -bSTRINGDirectory where Bactopia repository is stored

Validation Options

OptionTypeDefaultDescription
--docs-pathSTRING.claude/docsDocs directory relative to --bactopia-path
--patterns-fileSTRINGdata/docs-patterns.ymlDeprecated-patterns YAML relative to --bactopia-path
--bactopia-py-pathPATHPath to bactopia-py repo (for D105 CLI / D106 lint-rule checks). Defaults to <bactopia-path>/../bactopia-py
--skip-path-checkBOOLfalseSkip D108 markdown-link target resolution
--validateBOOLfalseRun validation (default action; flag is accepted for parity with bactopia-citations)

Output Options

OptionTypeDefaultDescription
--jsonBOOLfalseEmit results as JSON
--plain-text, -pBOOLfalseDisable rich formatting

Additional Options

OptionTypeDefaultDescription
--verboseBOOLfalsePrint debug related text
--silentBOOLfalseOnly critical errors will be printed
--version, -VBOOLfalseShow the version and exit.