PyDevelop-Docs
Universal Python documentation generator with 40+ Sphinx extensions pre-configured
Transform any Python project into beautiful, professional documentation with zero configuration. PyDevelop-Docs automatically detects your project structure and generates a complete Sphinx documentation setup with modern themes, extensive features, and intelligent API documentation.
✨ Features
🎯 Zero Configuration
- Works immediately with any Python project structure
- Automatic detection of monorepos, single packages, src layouts, flat layouts
- Smart path configuration for AutoAPI and asset management
- Intelligent metadata extraction from pyproject.toml, setup.py
📦 Universal Project Support
- Monorepos:
packages/package-name/structures - Src Layout:
src/package_name/organization - Flat Layout: Package in project root
- Simple Projects: Basic Python files
🎨 Professional Appearance
- Beautiful Furo theme with dark mode support
- Responsive design for all devices
- Custom CSS enhancements for better readability
- Professional navigation with hierarchical organization
🔧 40+ Pre-configured Extensions
- AutoAPI with hierarchical organization (not flat alphabetical!)
- Syntax highlighting with copy buttons
- Mermaid diagrams and PlantUML support
- Interactive elements with sphinx-design
- SEO optimization with sitemaps and OpenGraph
- And much more! See complete extension list
⚡ Smart CLI Commands
setup-general: Analyze and set up any Python projectcopy-setup: Transfer documentation between projects- Interactive and non-interactive modes available
- Dry-run capability for previewing actions
🚀 Quick Start
Installation
pip install pydvlp-docs
One-Command Setup
# Set up documentation for any Python project
pydvlp-docs setup-general /path/to/your/project
# Navigate and build
cd /path/to/your/project/docs
make html
# Your documentation is ready at build/html/index.html! 🎉
That's it! PyDevelop-Docs automatically:
- ✅ Detects your project type and structure
- ✅ Configures 40+ Sphinx extensions
- ✅ Sets up AutoAPI with proper paths
- ✅ Creates professional homepage and navigation
- ✅ Installs beautiful theme with custom styling
📋 Project Types Supported
Monorepo Structure
my-monorepo/
├── packages/
│ ├── package-a/
│ │ └── src/package_a/
│ ├── package-b/
│ │ └── src/package_b/
│ └── package-c/
│ └── src/package_c/
└── pyproject.toml
Detection: ✅ Monorepo | AutoAPI: ['../packages']
Src Layout
my-package/
├── src/
│ └── my_package/
├── tests/
├── docs/ # ← Created here
└── pyproject.toml
Detection: ✅ Single Package | AutoAPI: ['../../src']
Flat Layout
my-package/
├── my_package/
├── tests/
├── docs/ # ← Created here
└── pyproject.toml
Detection: ✅ Single Package | AutoAPI: ['../my_package']
Simple Project
my-scripts/
├── main.py
├── utils.py
├── docs/ # ← Created here
└── requirements.txt
Detection: ✅ Simple Project | AutoAPI: ['..']
🛠️ Usage Examples
Command Line Interface
# Interactive setup with project analysis
pydvlp-docs setup-general /path/to/project
# Non-interactive setup
pydvlp-docs setup-general /path/to/project --non-interactive --force
# Preview what will be created
pydvlp-docs setup-general /path/to/project --dry-run
# Custom documentation directory
pydvlp-docs setup-general /path/to/project --target-dir /custom/docs/path
# Copy documentation setup between projects
pydvlp-docs copy-setup /source/project /destination/project --include-config
Python API
from pydevelop_docs import setup_project_docs
# One-line setup
result = setup_project_docs("/path/to/project")
print(f"Documentation created at: {result['target_dir']}")
# Non-interactive with custom options
result = setup_project_docs(
"/path/to/project",
target_dir="/custom/location",
force=True,
interactive=False
)
# Preview without executing
plan = setup_project_docs("/path/to/project", dry_run=True)
for action in plan['actions']:
print(f"Would create: {action}")
Advanced Configuration
from pydevelop_docs.config import get_haive_config
# Get pre-configured Sphinx configuration
config = get_haive_config(
package_name="my-package",
package_path="/path/to/package"
)
# Use in your docs/source/conf.py
globals().update(config)
Project Analysis
from pydevelop_docs.general_setup import ProjectDetector
from pathlib import Path
# Analyze any Python project
detector = ProjectDetector(Path("/path/to/project"))
info = detector.detect_project_type()
print(f"Project type: {info['type']}") # monorepo, single_package, etc.
print(f"Package manager: {info['package_manager']}") # poetry, setuptools, etc.
print(f"Found {len(info['packages'])} packages")
print(f"Structure: {info['structure']['pattern']}")
📖 Generated Documentation Structure
PyDevelop-Docs creates a complete documentation setup:
docs/
├── Makefile # Build automation
├── requirements.txt # Documentation dependencies
├── source/
│ ├── conf.py # Complete Sphinx configuration
│ ├── index.rst # Professional homepage
│ ├── _static/ # CSS, JavaScript, assets
│ │ ├── css/
│ │ │ ├── custom.css # Custom styling
│ │ │ └── furo-intense.css # Dark mode fixes
│ │ └── js/
│ │ └── api-enhancements.js
│ ├── _templates/ # Custom Jinja2 templates
│ └── autoapi/ # Auto-generated API docs
│ └── index.rst # API reference (hierarchical!)
└── build/
└── html/ # Built documentation
└── index.html # Your beautiful docs! 🎉
🎨 Theme and Styling
Furo Theme with Enhancements
- Modern responsive design that works on all devices
- Dark/light mode toggle with proper contrast
- Smooth animations and professional typography
- Enhanced navigation with improved sidebar
- Custom color scheme optimized for readability
Key Styling Features
- Hierarchical API navigation (not flat alphabetical lists!)
- Improved code block styling with copy buttons
- Better table and admonition styling
- Enhanced mobile experience
- Professional color scheme with accessibility focus
🔧 Included Extensions
PyDevelop-Docs includes 40+ carefully selected and pre-configured Sphinx extensions:
Core Documentation
sphinx.ext.autodoc- Automatic API documentationsphinx.ext.napoleon- Google/NumPy docstring supportsphinx.ext.viewcode- Source code linkssphinx.ext.intersphinx- Cross-project linking
API Documentation
autoapi.extension- Automatic API reference (with hierarchical fix!)sphinx_autodoc_typehints- Type hint documentationsphinxcontrib.autodoc_pydantic- Pydantic model documentation
Enhanced Features
myst_parser- Markdown supportsphinx_copybutton- Copy code buttonssphinx_design- Modern UI componentssphinx_tabs- Tabbed contentsphinxcontrib.mermaid- Diagram support
SEO and Discovery
sphinx_sitemap- SEO sitemapssphinxext.opengraph- Social media previewssphinx_favicon- Custom favicons
And Many More!
See the complete extension list with configuration details.
⚙️ Configuration Details
AutoAPI Hierarchical Organization
The Problem: Default AutoAPI creates flat, alphabetical lists of 200+ classes that are impossible to navigate.
Our Solution: Hierarchical organization that follows your project structure:
# Key configuration in generated conf.py
autoapi_own_page_level = "module" # Keep classes with their modules!
autoapi_options = [
"members",
"undoc-members",
"show-inheritance",
"show-module-summary", # Enables hierarchical grouping
]
Result: Beautiful organized navigation like:
📦 my_package
├── 📁 core
│ ├── 📄 engine (3 classes)
│ └── 📄 schema (5 classes)
└── 📁 utils
└── 📄 helpers (2 functions)
Instead of:
❌ All Classes (A-Z)
├── AgentConfig
├── BaseModel
├── Calculator
├── [197 more in flat list...]
Smart Path Detection
PyDevelop-Docs automatically configures AutoAPI directories based on your project structure:
- Monorepo:
autoapi_dirs = ['../packages'] - Src Layout:
autoapi_dirs = ['../../src'] - Flat Layout:
autoapi_dirs = ['../package_name'] - Simple Project:
autoapi_dirs = ['..']
No manual configuration needed! 🎯
🚧 Development
Setting up for Development
git clone https://github.com/your-org/pydvlp-docs.git
cd pydvlp-docs
# Install with development dependencies
poetry install --with dev,docs
# Run tests
poetry run pytest
# Build documentation
cd docs && make html
Running Tests
# Full test suite
poetry run pytest
# Test with coverage
poetry run pytest --cov=pydevelop_docs
# Test specific functionality
poetry run pytest tests/test_general_setup.py -v
Building Documentation
# Build your own docs (meta!)
cd docs
make html
# Or use the tool on itself
pydvlp-docs setup-general . --force
cd docs && make html
🤝 Contributing
We welcome contributions! Please see our Contributing Guide for details.
Quick Contribution Setup
# Fork and clone
git clone https://github.com/your-username/pydvlp-docs.git
cd pydvlp-docs
# Install development dependencies
poetry install --with dev,docs,test
# Create feature branch
git checkout -b feature/your-feature-name
# Make changes and test
poetry run pytest
poetry run ruff check
poetry run mypy
# Submit pull request! 🎉
📊 Comparison
| Feature | PyDevelop-Docs | Manual Sphinx | Other Tools |
|---|---|---|---|
| Setup Time | < 1 minute | Hours | Minutes |
| Project Detection | ✅ Automatic | ❌ Manual | ⚠️ Limited |
| Extension Count | 40+ | 0 | 5-10 |
| Theme Quality | ✅ Professional | ⚠️ Basic | ⚠️ Varies |
| AutoAPI Hierarchy | ✅ Fixed | ❌ Flat | ❌ Flat |
| Mobile Responsive | ✅ Yes | ❌ No | ⚠️ Sometimes |
| Dark Mode | ✅ Yes | ❌ No | ⚠️ Sometimes |
| SEO Ready | ✅ Yes | ❌ No | ❌ No |
📜 License
MIT License - see LICENSE file for details.
🙏 Acknowledgments
- Sphinx Team - For the amazing documentation framework
- Furo Theme - For the beautiful modern theme
- AutoAPI - For automatic API documentation
- All Extension Authors - For creating the tools that make this possible
👨💻 Author
William R. Astley
- Website: will.astley.dev
- GitHub: @pr1m8
📞 Support
- Documentation: Full Documentation
- Issues: GitHub Issues
- Discussions: GitHub Discussions
🚀 From zero to professional documentation in under a minute!
Made with ❤️ for the Python community
Metadata
Release files for pydvlp-docs 0.1.3
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 |
|---|---|---|---|---|
| pydvlp_docs-0.1.3.tar.gz | 177.9 kB | Without provenance | Details for pydvlp_docs-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pydvlp_docs-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for pydvlp_docs-0.1.3-py3-none-any.whl |
Total release size: 391.9 kB
Release files / pydvlp_docs-0.1.3.tar.gz
| Download URL | pydvlp_docs-0.1.3.tar.gz |
|---|---|
| Size | 177.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
326aa40c5ebf7465f13e67b9acb355a01b7cf03f0a90c022acb793c828c8dd1d
|
|
BLAKE2b-256 checksum How to use checksums |
bc0c4502f0321be72a95328696eee88de1208917a36a2de8e41830550aa80c00
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.4 CPython/3.12.11 Linux/6.11.0-1018-azure
|
Release files / pydvlp_docs-0.1.3-py3-none-any.whl
| Download URL | pydvlp_docs-0.1.3-py3-none-any.whl |
|---|---|
| Size | 214.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
36775876a2710e838bed742f8ae155313d28d00920291f45f062acf8eca1cd0e
|
|
BLAKE2b-256 checksum How to use checksums |
66706d4331b9b3f69b0b45a7bd628a301d0df7b901182bfde22973a7ede2e16c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.4 CPython/3.12.11 Linux/6.11.0-1018-azure
|
Security for pydvlp-docs 0.1.3
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.