sphinx-markdown-builder
A Sphinx extension to add markdown generation support.
Install
pip3 install sphinx-markdown-builder==0.6.8
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 toTrue, 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 addressmarkdown_uri_doc_suffix: If set, all references will link to documents with this suffix.markdown_file_suffix: Sets the file extension for generated markdown files (default:.md).markdown_bullet: Sets the bullet marker.markdown_flavor: If set togithub, output will suit GitHub's flavor of Markdown.
For example, if your conf.py file have the following configuration:
markdown_http_base = "https://your-domain.com/docs"
markdown_uri_doc_suffix = ".html"
markdown_bullet = "*"
Then a reference to your-doc-name#your-header will be substituted with https://your-domain.com/docs/your-doc-name.html#your-header.
Contributing
See the code contribution guidelines for more information.
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
Release files for sphinx-markdown-builder-reloaded 0.6.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sphinx_markdown_builder_reloaded-0.6.9.tar.gz | 22.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sphinx_markdown_builder_reloaded-0.6.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 39.5 kB
Release files / sphinx_markdown_builder_reloaded-0.6.9.tar.gz
| Download URL | sphinx_markdown_builder_reloaded-0.6.9.tar.gz |
|---|---|
| Size | 22.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
936a1001e5ac5b4bd83c29e6ec534ca8586ddcc17c1f87c818344248ef0e8278
|
|
BLAKE2b-256 checksum How to use checksums |
cecaab972434a4ff5b516507f5b5bbc7a3741ae7512aa16573d52092dacc47b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|
Release files / sphinx_markdown_builder_reloaded-0.6.9-py3-none-any.whl
| Download URL | sphinx_markdown_builder_reloaded-0.6.9-py3-none-any.whl |
|---|---|
| Size | 16.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
109dde78f456ebb1873ef309089f02650318a347ec66c24105f80defaff86551
|
|
BLAKE2b-256 checksum How to use checksums |
f44e13b4fa164157a44bf5421ec73fb4415fcbb27412460d8c51ce3c16214f24
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|