Welcome to AutoMacDoc
What is AutoMacDoc?
AutoMacDoc is a tool to generate documentation for Python modules or groups of functions. It is based on Python and MkDocs
Why this project?
The biggest tool to generate a documentation for a Python project is Sphinx. Unfortunately, Sphinx is (to my opinion) to difficult to setup and it supports reStructuredText. There was no good project to generate easily a documentation with MarkDown ... until now!
How to install ?
With pip pardi : pip install automacdoc
3 steps to make it works!
- Write nice docstrings for your classes and functions.
- Create an init.py file to import all the functions you want to document.
- Generate your documentation website
Project layout
mkdocs.yml # The configuration file.
docs/
index.md # The documentation homepage.
... # Other markdown pages, images and other files.
src/
__init__.py # File that list the functions and classes to documents
... # Other python files
Recommended Docstring
def fun(arg1: int, arg2: str = 'Hello World!'):
"""
Description of your function
**Parameters**
> **arg1:** `int` -- Description of argument `arg1`.
> **arg2:** `str` -- Description of argument `arg2`.
**Returns**
> `str` -- Description of returned object.
"""
return arg2 + str(arg1)
Generate the docs
automacdoc /path/to/module path/to/folder with /path/to/project a path to a folder with an __init__.py file, and /path/to/project the path to your project where the docs folder will be created
Metadata
Release files for AutoMacDoc 0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| AutoMacDoc-0.3-py3-none-any.whl | Python 3 | none | any | Details |
Release files / AutoMacDoc-0.3-py3-none-any.whl
| Download URL | AutoMacDoc-0.3-py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
41a9dfd5ffe8100b26589cc4ced29778311b98d9091a171acaa9398831547aac
|
|
BLAKE2b-256 checksum How to use checksums |
96d6dff32a323a003a148408f2c8b454e1263215a50fa2018f125ba771a8a069
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.29.1 CPython/3.6.7
|