Key features of pdoc
mainpdoc is designed for simplicity and focuses on modern Python documentation tasks:
- Markdown Support: Documentation is written in plain Markdown.
- Modern Python Support: First-class support for type annotations and other modern Python 3 features.
- Live Reloading: Includes a builtin web server with live reloading for development.
- Customizable Templates: Supports customizable HTML templates.
- Docstring Formats: Understands both
numpydocandGoogle-styledocstrings. - Standalone Output: Generates standalone HTML output without requiring additional dependencies.
Under the hood behavior:
- Automatically links identifiers in docstrings to their corresponding documentation.
- Respects the
__all__variable when present. - Traverses the AST to extract type annotations and docstrings from constructors.
- Automatically resolves type annotation string literals as forward references.
- Uses inheritance to resolve type annotations and docstrings for class members.