No project description provided
Project description
Markdown Refdocs
Extracts docstings and type annotations from a python package to generate reference documentation in markdown. See an example of this at: https://creisle.github.io/markdown_refdocs/
Getting Started
Install the package from pip
pip install markdown_refdocs
Run this from the command line or import the function to get the markdown returns as strings and
customize. This tool has the customary help manu you can view with the -h
option to see the
options documentation
markdown_refdocs -h
Features
- parses google-style docstrings
- generates markdown output (this allows the user to link into the navigation or their main docs)
- can take package directories as input
- reads type annotations
- pulls function signatures
Limitations
- currently only supports google-style docstrings. May add support for others later if requested.
Motivation
The motivation for this package was that writing docs in markdown is simpler to read and write than writing them in RST. There is an awesome package called Mkdocs for turning your markdown documents into a static site. It has a number of plugins which extract docstrings from python files, however none of them are able to use the google docstring format which I prefer. If you're using a different docstring format you can check them out here on the Mkdocs plugin wiki.
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
Hashes for markdown_refdocs-1.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 072168c15266babc98d829f776b5cfef7d9e73f13ac00307d06b79ff7ef2a215 |
|
MD5 | 82fe00a09bd344cbb042a1a04b05fcf2 |
|
BLAKE2b-256 | cfd6cf2222715b9d8325702f300d89b51da4a354f88346535f0831b347e9ba40 |