Skip to main content

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 a jetblack.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


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.7.tar.gz (13.9 kB view details)

Uploaded Source

Built Distribution

jetblack_markdown-0.7-py3-none-any.whl (21.2 kB view details)

Uploaded Python 3

File details

Details for the file jetblack-markdown-0.7.tar.gz.

File metadata

  • Download URL: jetblack-markdown-0.7.tar.gz
  • Upload date:
  • Size: 13.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.1 CPython/3.8.5 Linux/5.6.0-1031-oem

File hashes

Hashes for jetblack-markdown-0.7.tar.gz
Algorithm Hash digest
SHA256 40420d8472841e94f2e7a230a3ba9470b3f58838d71ae0a2f6cb9e9b598638d4
MD5 3c57ac9cc464364d1fbbcf0a03cf897f
BLAKE2b-256 6ebf550b9150455fcb7f56583a64c66993317170201b30231b360331e2adf9b3

See more details on using hashes here.

File details

Details for the file jetblack_markdown-0.7-py3-none-any.whl.

File metadata

  • Download URL: jetblack_markdown-0.7-py3-none-any.whl
  • Upload date:
  • Size: 21.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.1 CPython/3.8.5 Linux/5.6.0-1031-oem

File hashes

Hashes for jetblack_markdown-0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 e22dbe5c4fc02c4c22705042dec205c3c7c4eb8a5b9e4db52a783d91d194d4f7
MD5 5edf25d1ccbd9211ce16e996303734d1
BLAKE2b-256 52e33c2af921b9bbfa818ce8a606bd5b1512edbe2ccc8a3e55ea6633fb079fed

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page