DocGenie
Auto-documentation tool that generates README.md and HTML docs for a codebase.
Quick Guide
Installation
python3 -m pip install "docgenie-cli"
Requirements: Python 3.10+
Setup (from source)
git clone https://github.com/ch1kim0n1/DocGenie.git
cd DocGenie
python3 -m pip install -e "."
Usage
Generate Markdown README
docgenie generate /path/to/project --format markdown
Generate HTML Documentation
docgenie generate /path/to/project --format html
Generate Both Formats
docgenie generate /path/to/project --format both
Convert Existing README to HTML
docgenie html README.md --source readme --output docs.html
# or, using the legacy convenience command:
docgenie-html README.md --source readme --output docs.html
Programmatic Usage (Python API)
from docgenie.core import CodebaseAnalyzer
from docgenie.html_generator import HTMLGenerator
analyzer = CodebaseAnalyzer('/path/to/project')
data = analyzer.analyze()
html_generator = HTMLGenerator()
html_content = html_generator.generate_from_analysis(data, "output.html")
Troubleshooting
- Ensure all dependencies are installed
- Check write permissions for output directory
- Use UTF-8 encoding for source files
License
MIT License. See LICENSE file for details.
What DocGenie Analyzes
- Project Structure: Directory tree and file organization
- Source Code: Functions, classes, methods, and documentation
- Dependencies: Package files (requirements.txt, package.json, etc.)
- Configuration: Config files and project settings
- Documentation: Existing docs and README files
- Git Information: Repository details, branches, contributors
- Statistics: Language distribution, code metrics
- Version Diffs: Git ref/tag aware file-level changes
- File Reviews: Risk-scored file and folder review cards
- Output Links: Heuristic source-to-output file tracing
- Impact Graph: HTML visualization of file dependency and output impact
- Trust Badges: Section-level trust markers with source citations
Example Output
DocGenie generates README files with:
- Project Overview: Auto-generated description and features
- Installation Instructions: Detected from your dependency files
- Usage Examples: Based on your code structure
- API Documentation: Extracted from functions and classes
- Project Structure: Visual directory tree
- Dependencies: Organized by package manager
- Contributing Guidelines: Standard open-source templates
Advanced Usage
Command Line Options
# Basic usage
docgenie --help # Show help
docgenie generate . --verbose # Enable detailed output
docgenie generate . --force # Overwrite existing files
# Format options
docgenie generate . --format markdown # README.md only
docgenie generate . --format html # HTML documentation only
docgenie generate . --format both # Generate both README.md and HTML (default)
# Output options
docgenie generate . --output custom_path # Custom output location
docgenie generate . --preview # Preview without saving
# HTML converter
docgenie html README.md --source readme # Convert README to HTML
docgenie html . --source codebase # Generate HTML from code
# Analysis tools
docgenie analyze . --format json # Output analysis as JSON
docgenie diff . --from-ref v1.0.0 --to-ref HEAD --format json
docgenie pr-summary . --from-ref v1.0.0 --to-ref HEAD --format markdown
docgenie init # Create basic README template
# Pro documentation controls
docgenie generate . --from-ref v1.0.0 --to-ref HEAD --include-diffs
docgenie generate . --strict-readme
docgenie generate . --template-profile pro
Configuration
Create a .docgenie.yaml file in your project root:
ignore_patterns:
- "*.log"
- "temp/*"
- "private/"
template_customizations:
include_api_docs: true
include_directory_tree: true
max_functions_documented: 20
include_trust_badges: true
Architecture
DocGenie consists of several key components:
- CodebaseAnalyzer: Multi-language code analysis engine with caching and concurrency
- ParserRegistry: Pluggable parsers (AST, tree-sitter, regex fallback) per language
- ReadmeGenerator: Jinja2-based template rendering system for markdown
- HTMLGenerator: Beautiful HTML documentation generator with responsive design
- CLI Interface: Typer + Rich powered user experience
Contributing
We welcome contributions! Here's how to get started:
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Make your changes and add tests
- Run the test suite (
pytest) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Development Setup
git clone https://github.com/ch1kim0n1/DocGenie.git
cd DocGenie
pip install -e ".[dev]"
pytest
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
- Thanks to all contributors who help improve DocGenie
- Inspired by the need for better automated documentation tools
- Built for the open-source community
Metadata
Release files for docgenie-cli 1.1.86
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| docgenie_cli-1.1.86.tar.gz | 54.7 kB | Without provenance | Details for docgenie_cli-1.1.86.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| docgenie_cli-1.1.86-py3-none-any.whl | Python 3 | none | any | Details for docgenie_cli-1.1.86-py3-none-any.whl |
Total release size: 118.2 kB
Release files / docgenie_cli-1.1.86.tar.gz
| Download URL | docgenie_cli-1.1.86.tar.gz |
|---|---|
| Size | 54.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
76a290739911a07adc602207d55ef2291980dfd4bac765c198ea7c2c3bc1a130
|
|
BLAKE2b-256 checksum How to use checksums |
00f3b98f11b986f70ef4359d7a6a41a69e534bb221a5dc9c849218f5ce20962e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.6
|
Release files / docgenie_cli-1.1.86-py3-none-any.whl
| Download URL | docgenie_cli-1.1.86-py3-none-any.whl |
|---|---|
| Size | 63.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4d40f3b3fca032a1af20e69f058952e5c022d7be8736a2b199177c79ffe45d60
|
|
BLAKE2b-256 checksum How to use checksums |
8f620fbfb5e7e0d0051a2656f64b77726cdac183147f459f2ebcbb628d240062
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.6
|
Security for docgenie-cli 1.1.86
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.