Skip to main content

A Sphinx extension to add markdown generation support.

Project description

sphinx-markdown-builder

Coverage Status

A Sphinx extension to add markdown generation support.

Install

pip3 install sphinx-markdown-builder==0.6.3

Usage

Add the extension to your conf.py file:

extensions = [
    ...,
    "sphinx_markdown_builder",
    ...,
]

Build markdown files with sphinx-build command

sphinx-build -M markdown ./docs ./build

Configurations

You can add the following configurations to your conf.py file:

  • markdown_anchor_sections/markdown_anchor_signatures: If set to True, then anchors will be added before each section/function/class signature. This allows references to a specific anchor in the document.
  • markdown_docinfo: Adds metadata to the top of each document containing author, copyright, and version.
  • markdown_http_base: If set, all references will link to this prefix address
  • markdown_uri_doc_suffix: If set, all references will link to documents with this suffix.

For example, if your conf.py file have the following configuration:

markdown_http_base = "https://your-domain.com/docs"
markdown_uri_doc_suffix = ".html"

Then a reference to your-doc-name#your-header will be substituted with https://your-domain.com/docs/your-doc-name.html#your-header.

Credits

This project forked from clayrisser/sphinx-markdown-builder, which was developed by Clay Risser under the MIT license.

The original implementation was based on doctree2md by Matthew Brett under the BSD-2 license.

License

MIT

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

sphinx-markdown-builder-0.6.3.tar.gz (19.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sphinx_markdown_builder-0.6.3-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

Details for the file sphinx-markdown-builder-0.6.3.tar.gz.

File metadata

  • Download URL: sphinx-markdown-builder-0.6.3.tar.gz
  • Upload date:
  • Size: 19.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for sphinx-markdown-builder-0.6.3.tar.gz
Algorithm Hash digest
SHA256 f374b17f739fdcae61150d8c4da8820d81b195962e57c6c9b48e69c17200386e
MD5 d7bd1a1c20ac661bb527aad7a1c6d752
BLAKE2b-256 27401346bf788b5f5bbd963b013b16866f45c2862baa2127cd781b69a5fe4f4f

See more details on using hashes here.

File details

Details for the file sphinx_markdown_builder-0.6.3-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinx_markdown_builder-0.6.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e4e1b4eb3ec1909bea35f7a8b2f42f147870f9bfd3a3b70781f25f76bb5c61b7
MD5 0227dd29a6c0aff3cf427492bc54281e
BLAKE2b-256 d4d42ced6c5379bec8e9f4473719f4731b637af7586c126903c5460f637bb944

See more details on using hashes here.

Supported by

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