scandocs

package

A tool to automatically generate documentation for Python projects.


ScanDocs allows for users to document their Python projects autonomously, utilizing the power of SvelteKit to create both beautiful and adaptable documentation websites for Python packages of any size and complexity.

Examples

Basic Usage

Python
from scandocs import Package, Documentation, Configuration
from pathlib import Path
import <your_project>  # The one you want to document


WEBSITE_PATH = Path("./docs")  # Or wherever you want your website files to be saved
PROJECT_NAME = "YOUR_PROJECT_NAME"  # The name of your project


project = Package.from_module(<your_project>)
docs = Documentation(project, WEBSITE_PATH, Configuration(PROJECT_NAME))  # Set the path to be wherever you want the website files to be saved
docs.output()

You can generate high-quality, comprehensive documentation with just these 8 lines of code.


Using Themes

Python
from scandocs import Package, Documentation, Configuration, Themes
from pathlib import Path
import <your_project>  # The one you want to document


WEBSITE_PATH = Path("./docs")  # Or wherever you want your website files to be saved
PROJECT_NAME = "YOUR_PROJECT_NAME"  # The name of your project


project = Package.from_module(<your_project>)
docs = Documentation(project, WEBSITE_PATH, Configuration(PROJECT_NAME, theme=Themes.GOLD_NOUVEAU))  # Or any other available theme you want
docs.output()

This code would now use the gold-nouveau theme, instead of the default theme.


Sub-Packages

documentation

Utilities for building the documentation website.


structures

Dataclasses to interface with projects.


tags

Exposed API utilities for detailed code beyond the capability of docstrings.