This guide provides comprehensive information for developers working on DocGen.
DocGen is a CLI tool that generates project structure documentation. It helps developers quickly understand project layout.
Key features:
- Generate PROJECT_STRUCTURE.md automatically
- Support multiple profiles (minimal, default, detailed)
- Smart mode for automatic optimization
- Configurable via .projectstructure.toml
- Python 3.14+
- Git
- Docker (optional, for containerized development)
# Clone repository
git clone https://github.com/devalltect00/doc-gen.git
cd doc-gen
# Create virtual environment
python -m venv .venv
# Activate (Windows)
.venv\Scripts\activate
# Activate (Linux/Mac)
source .venv/bin/activate
# Install with dev dependencies
pip install -e .[dev,docs]doc-gen/
├── app/
│ └── doc_gen/
│ ├── cli/ # CLI commands
│ ├── core/ # Core logic
│ ├── config/ # Configuration
│ ├── constants/ # Constants
│ ├── services/ # Services
│ ├── templates/ # Templates
│ ├── theme/ # Theming
│ ├── ui/ # UI components
│ └── utils/ # Utilities
├── docs/ # Documentation
├── tests/ # Tests
└── Makefile # Build automation
pytest -vruff check app testsruff format app testsmake checkmake d-build-dev
make d-test- Follow PEP 8
- Use Ruff for linting
- Use Black/Ruff formatter for code formatting
- Write docstrings for all public functions
Write tests for:
- New features
- Bug fixes
- Edge cases
Run specific test:
pytest tests/cli/test_main.py -v- Create a feature branch
- Make your changes
- Add tests
- Run 'make check'
- Submit pull request