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.0.2"Check that DocGen is installed:
doc-gen --helpYou should see the help output.
Run the generate command:
doc-gen structure generateThis creates a PROJECT_STRUCTURE.md file in your current directory.
Open the generated file:
# 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 detailedCreate a .projectstructure.toml file:
[tool.doc-gen]
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