A documentation generator for mq functions, macros, and selectors. Generates reference documentation from built-in definitions or custom .mq files in multiple output formats.

Features
- Generates documentation for functions, macros, and selectors
- Multiple output formats: Markdown, plain text, and HTML
- HTML output includes interactive sidebar navigation, search/filter, and responsive design
- Supports built-in modules, custom files, and loadable modules (e.g.,
csv,json) - Available as both a CLI tool and a library
Installation
Using the Installation Script (Recommended)
|
The installer will:
- Download the latest release for your platform
- Verify the binary with SHA256 checksum
- Install to
~/.mq-check/bin/ - Update your shell profile (bash, zsh, or fish)
After installation, restart your terminal or run:
Cargo
# Install from crates.io
# Install using binstall
From Source
# Binary will be at target/release/mq-docs
Usage
CLI
# Generate documentation for built-in functions (default: Markdown)
# Generate from custom files
# Load specific modules
# Include built-in functions alongside custom modules/files
# Specify output format
Options
| Option | Description |
|---|---|
[FILES] |
Input .mq files to generate documentation from |
-M, --module-names <NAME> |
Module names to load (repeatable) |
-F, --format <FORMAT> |
Output format: markdown, text, or html (default: markdown) |
-B, --include-builtin |
Include built-in functions alongside modules/files |
Library
use ;
Output Formats
- Markdown - Tables suitable for rendering in documentation sites or GitHub
- Text - Plain text output for terminal viewing
- HTML - Self-contained single-page HTML with dark theme, sidebar navigation, search filtering, and mobile support
License
MIT