A simple documentation generator for Python
Project description
Wikin
A simple, beautiful documentation generator for Python. It extracts docstrings from functions and special comments from variables.
Features
- Function Docstrings: Standard Python triple-quoted docstrings.
- Variable Documentation:
#: comment before variablevariable = value #: comment after variable
- Modern UI: Clean, responsive HTML output with a premium look.
- Markdown Support: Use Markdown in your docstrings and comments.
- Module Metadata: Customize how modules appear in the documentation using a
Wikin:block.
Installation
pip install craftllc-wikin
Usage
wikin <path_to_code> <project_name> <version>
Example:
wikin ./ "My Project" 1.0.0
This will generate documentation in the docs/index.html file.
Variable Documentation Example
#: Number of requests per second
rpm = 10
timeout = 30 #: Connection timeout in seconds
Wikin will pick these up and include them in the generated documentation.
Ignoring Files
To exclude specific files or directories from being processed, create a .wikinignore file in your docs/ folder. It supports standard .gitignore (gitwildmatch) patterns.
Example docs/.wikinignore:
# Ignore a specific file
secret_module.py
# Ignore an entire directory
internal_tools/
# Ignore all files with a certain extension
*.deprecated.py
Configuration
You can customize your documentation by creating a docs/.wikinconfig file (TOML format) in your documentation directory.
Adding Project Links
To add helpful links (like GitHub, PyPI, or your website) to the sidebar, use the [links] section:
[links]
PyPI = "https://pypi.org/project/craftllc-wikin"
GitHub = "https://github.com/CraftLLC/Wikin"
These links will appear as stylish buttons in the sidebar for quick access.
Module Metadata Example
You can set a custom display name for your modules by adding a Wikin: block at the top of your module's docstring:
"""
Wikin:
name: Core Parser
This module handles all the parsing logic for Wikin.
"""
In the documentation, this module will be titled as Core Parser (your_package.parser). The metadata block itself will be hidden from the module's description.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file craftllc_wikin-1.2.5.tar.gz.
File metadata
- Download URL: craftllc_wikin-1.2.5.tar.gz
- Upload date:
- Size: 366.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b08c2bdd442ce58d1cd98f358cd5e92f6fe3f92005e72ea6dbfb726302cfd895
|
|
| MD5 |
ff2e837571ee4c544dc2ac8f0d4b37b5
|
|
| BLAKE2b-256 |
8faf21a833f50102c7b81534c97a4defd120f0915940c7c0fbd94beefa153d56
|
File details
Details for the file craftllc_wikin-1.2.5-py3-none-any.whl.
File metadata
- Download URL: craftllc_wikin-1.2.5-py3-none-any.whl
- Upload date:
- Size: 15.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98ccc3a5bdd0c6a6ad0869084c72b478a550ca5fe374e48332b98e6abc1381b1
|
|
| MD5 |
53c75a29232f7f4a1846a0f181ede9c4
|
|
| BLAKE2b-256 |
76ced670a8536e3542dafd1a79577734e4e2439a8fec419c1d551d6fddf5e594
|