Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

jetblack-markdown

Markdown extensions for automatic document generation (read the docs).

Autodoc 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]

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.

LaTex2MathML Extension

There is a second extension which transforms LeTax style math formula to MathML HTML. Inline formula are surrounded by $, which blocks are fenced with $$. See the documentation for more details and examples.

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 for the autodoc extension.

  • 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 a jetblack.markdown.metadata.Descriptor

Metadata

Release files for jetblack-markdown 2.0.0a0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jetblack-markdown 2.0.0a0
File Size Uploaded
jetblack_markdown-2.0.0a0.tar.gz 16.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for jetblack-markdown 2.0.0a0
File Interpreter ABI Platform
jetblack_markdown-2.0.0a0-py3-none-any.whl Python 3 none any Details

Total release size: 40.4 kB

Release files / jetblack_markdown-2.0.0a0.tar.gz

Download URL jetblack_markdown-2.0.0a0.tar.gz
Size 16.8 kB
Tags Source
SHA-256 checksum
How to use checksums
af48c1e8fadf956ff2a71ceb46ed35c45b447ffa85edf12f30faa6615aa212ba
BLAKE2b-256 checksum
How to use checksums
1898a5e6add20ec96861d49887e75601f354219b4cf2dc5fee174ade17fe8bfb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release files / jetblack_markdown-2.0.0a0-py3-none-any.whl

Download URL jetblack_markdown-2.0.0a0-py3-none-any.whl
Size 23.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2ef95cbcce4e7d3c7461830b2341688a9d2820a582bb343c1aef70788261ad1a
BLAKE2b-256 checksum
How to use checksums
7efcae50edbd4828ed2e04dc21acd36419caf0a7b6e8903d1a427040ff78b688
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page