Mkdoc plugin to autodoc your numpy docstring
Project description
NumKdoc
NumKdoc is a plugin for Mkdoc allowing you to automatically generate documentation from your Numpy style docstring, by making a simple call to classes.
This project is not maintained, and the parsing is not complete. It is based on the NumpyDoc parser.
Quick start
If you want to try this plugin as-it-is, follow these steps:
-
Download this repo and (eventually) unzip it in a folder
-
Inside the project folder, execute the command
python setup.py develop
to install the plugin on your local machine. -
Go to your mkdocs project folder, edit the
mkdocs.yml
file and add these few lines at the end:plugins: - numkdoc
That's it.
Now you can call the parsing of a class using the tag {{ module.ClassName }}
,
Numkdoc will automatically substitue that tag with the class documentation.
Example
For example, you could edit the docs/api/core.md
file and insert the tag in any place, like this:
# Core Api
[...]
{{ src.module.Class }}
[...]
Project details
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
File details
Details for the file Numkdoc-0.4.0.tar.gz
.
File metadata
- Download URL: Numkdoc-0.4.0.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b737a6eae785784d2b0b5c6a46d7d4c14374ab54e86f25e68003f3fcd3f8717 |
|
MD5 | b2c23cea606c0aff21e99d376e3128cf |
|
BLAKE2b-256 | 284212afc7f8eab2e2c7541e79a3f6103d4b4d6bdab69c74eabfa25bc146f056 |
Provenance
File details
Details for the file Numkdoc-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: Numkdoc-0.4.0-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4aa2076b34e9955dc5e13c88b7d536ca567b040645cb54fb808a96cd01ca71cb |
|
MD5 | 4fe83c3a28425121ec5eab14bbdc05d7 |
|
BLAKE2b-256 | 24164ce1639deda59425c78db058844766204d4c4886280ab202b1a496fda29e |