A CLI tool for organizing, validating, and maintaining technical documentation with YAML frontmatter.
Requires Rust 1.70+ (install Rust).
git clone https://github.com/hanw/docman.git
cd docman
cargo install --path crates/dm-cliThis installs the docman binary to ~/.cargo/bin/.
For development:
cargo build
# binary at ./target/debug/docmancargo install --git https://github.com/hanw/docman.git --bin docmancargo install docman# Search documents by keyword
docman search <query>
# Filter documents by tag
docman tag <tag>
# Show document metadata and counts
docman status [path]
# Run health checks (staleness, orphans, broken links)
docman check
# Generate INDEX.md, CHANGELOG.md, ROADMAP.md
docman index
# Create a new document from template
docman new
# Archive a document
docman archivecrates/
├── dm-cli # CLI entry point (binary)
├── dm-scan # Filesystem scanner — builds a DocTree from markdown files
├── dm-meta # YAML frontmatter parser, category inference, validation
├── dm-index # Generates INDEX.md, CHANGELOG.md, ROADMAP.md
└── dm-checks # Health checks: staleness, orphans, broken links, frontmatter
cargo test