Get started with DocGen in 5 minutes.
Install Doc-Gen from the private GitLab PyPI registry with a deploy token that
has read_package_registry access:
python -m pip install \
--index-url "https://<deploy-token-user>:<deploy-token>@gitlab.com/api/v4/projects/<project-id>/packages/pypi/simple" \
"doc-gen==1.1.0"Check that DocGen is installed:
doc-gen --helpYou should see the help output.
Run the generate command:
doc-gen structure generateThis creates docs/project_structure.md by default.
Open the generated file:
# docs/project_structure.mdYou should see your project structure.
Instead of saving to a file, print to console:
doc-gen structure printLet DocGen optimize automatically:
doc-gen structure generate --smartChoose a detail level:
# Minimal - just directories
doc-gen structure generate --profile minimal
# Detailed - everything
doc-gen structure generate --profile detailedRun doc-gen init, then edit .config/doc_gen/config.toml:
[tool.doc-gen.cli.structure]
profile = "default"
max_depth = 3
show_files = true
smart_mode = true- Read the Commands for full reference
- Check Installation Methods for other ways to install
- See configuration options in Configuration