A markdown extension for python documentation
Project description
jetblack-markdown
Markdown extensions for automatic document generation (read the docs).
Markdown Extension
A markdown extension is provided for automatically documenting python code.
Modules are referred to as follows:
# A Top Level Module
@[jetblack_markdown]
# A Package
@[jetblack_markdown.autodoc]
# A function
@[jetblack_markdown.autodoc:makeExtension]
# A class
@[jetblack_markdown.autodoc.metadata:PropertyDescriptor]
mkdocs integration
This site was generated using mkdocs
and the following config:
site_name: jetblack-markdown
docs_dir: documentation
site_dir: docs
markdown_extensions:
- admonition
- codehilite
- jetblack_markdown.autodoc:
class_from_init: true
ignore_dunder: true
ignore_private: true
ignore_all: false
prefer_docstring: true
template_folder: null
extra_css:
- css/custom.css
Configuration
There are some configuration parameters.
- class_from_init (bool, optional): If True use the docstring from the __init__ function for classes. Defaults to True.
- ignore_dunder (bool, optional): If True ignore __XXX__ functions. Defaults to True.
- ignore_private (bool, optional): If True ignore methods (those prefixed _XXX). Defaults to True.
- ignore_all (bool): If True ignore the __all__ member.
- prefer_docstring (bool): If true prefer the docstring.
- template_folder(Optional[str], optional): Specify a custom template folder.
The template "main.jinja2" will be rendered passing an
obj
parameter which is ajetblack.markdown.metadata.Descriptor
Customizing
All the rendering is done with jinja2 templates. Start by copying the current
templates from jetblack_markdown/templates and specify the template_folder
in
the mkdocs.yml
.
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
jetblack-markdown-0.4.1.tar.gz
(13.8 kB
view details)
Built Distribution
File details
Details for the file jetblack-markdown-0.4.1.tar.gz
.
File metadata
- Download URL: jetblack-markdown-0.4.1.tar.gz
- Upload date:
- Size: 13.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.2 CPython/3.7.5 Linux/4.15.0-74-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b91ad21ca3ebd2c93a4931fcad645c9cbbc3253b25306e160d3b05766aa4d9d |
|
MD5 | 60ceab439cc64cc4d271a91c059f74d9 |
|
BLAKE2b-256 | fb18a2590cd0f0784118ad5a2efb1fb80c47b6650e36cd50064250b03103d28a |
File details
Details for the file jetblack_markdown-0.4.1-py3-none-any.whl
.
File metadata
- Download URL: jetblack_markdown-0.4.1-py3-none-any.whl
- Upload date:
- Size: 21.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.2 CPython/3.7.5 Linux/4.15.0-74-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 617e5161dc40467263a617dd749fa4647f91dc1437dc5e99c77d14372639f6bb |
|
MD5 | 4b1bdb7581999a25cd5a2622b569953d |
|
BLAKE2b-256 | d9d061db8f1e25ae03c299e0be238b5b7c3fff442a4a675af94cdd1707fb524b |