dartdoc_txt 0.1.2 copy "dartdoc_txt: ^0.1.2" to clipboard
dartdoc_txt: ^0.1.2 copied to clipboard

discontinuedreplaced by: dartdoc_builder

An LLM-friendly documentation generator for Dart source code.

dartdoc_txt #

A CLI tool that generates Markdown documentation from Dart/Flutter packages, optimized for LLM consumption.

Unlike dartdoc (which generates interactive HTML), dartdoc_txt reuses dartdoc's analysis engine but produces structured, grep-friendly Markdown files designed for language models to traverse and understand.

Installation #

[!NOTE] Requires Dart SDK 3.10 or higher.

Use dart install to globally activate the tool:

dart install dartdoc_txt

Then, dartdoc_txt will be available as the dartdox command in your terminal.

Usage #

Run dart pub get in the target package directory before running dartdox. Otherwise, types from dependency packages appear as dynamic in the generated documentation.

Usage: dartdox [options]

-i, --input (mandatory)      Input directory.
-o, --output (mandatory)     Output directory.
    --source-threshold       Max lines of source to embed inline (default: 10).
                             (defaults to "10")
    --[no-]include-source    Include source code snippets.
                             (defaults to on)
-h, --help                   Show usage information.
    --version                Print the tool version.

Output Structure #

<output>/
├── README.md                         # Package readme (if present)
├── INDEX.md                          # Package overview + library & topic listing
├── topics/
│   └── getting-started.md            # Category pages (from dartdoc_options.yaml)
└── <library>/
    ├── ClassName/
    │   ├── ClassName.md              # One file per class/enum/mixin/extension
    │   └── ClassName-methodName.md   # Detail pages for large members
    ├── top-level-functions/
    │   ├── top-level-functions.md    # Grouped top-level functions
    │   └── functionName.md           # Detail pages for large functions
    ├── top-level-properties/
    │   └── top-level-properties.md   # Properties and constants
    └── typedefs/
        └── typedefs.md               # Type definitions
0
likes
150
points
31
downloads

Documentation

API reference

Publisher

verified publishernorelease.dev

Weekly Downloads

An LLM-friendly documentation generator for Dart source code.

License

MIT (license)

Dependencies

args, dartdoc, logging, mustache_template, path

More

Packages that depend on dartdoc_txt