Welcome to the DocGen User Guide. This guide helps you use DocGen effectively.
DocGen is a CLI tool that automatically generates a PROJECT_STRUCTURE.md file showing your project layout. It helps developers quickly understand any project.
- Auto-generate documentation - Creates PROJECT_STRUCTURE.md automatically
- Multiple profiles - Choose detail level (minimal, default, detailed)
- Smart mode - Auto-optimizes output based on project size
- Configurable - Uses .projectstructure.toml for settings
- Rich CLI output - Beautiful colored terminal output
# Install
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"
# Generate documentation
doc-gen structure generateThe registry is private and requires a deploy token with
read_package_registry access. See the installation methods guide for source,
artifact, and Docker alternatives.
This creates a PROJECT_STRUCTURE.md file.
- Developers - Document your projects quickly
- Teams - Keep documentation consistent
- Open source maintainers - Help new contributors understand your project
This user guide includes:
- Quick Start - Get started in 5 minutes
- Commands - Detailed command reference
- Installation - Different installation methods
- Lifecycle - Start, run, stop workflows
- Configuration - Customize behavior
- Read the Quick Start guide
- Check the Commands reference
- Try Smart Mode for automatic optimization