A Sphinx extension to add markdown generation support.
Project description
sphinx-markdown-builder
A Sphinx extension to add markdown generation support.
Install
pip3 install sphinx-markdown-builder==0.6.9
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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sphinx_markdown_builder-0.6.9.tar.gz.
File metadata
- Download URL: sphinx_markdown_builder-0.6.9.tar.gz
- Upload date:
- Size: 22.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e89dc1b9eb837da430c2c230011fad95a3dfab0345ad503a32e35a31d284a722
|
|
| MD5 |
0ca30f15071b746ec2592979f45444ce
|
|
| BLAKE2b-256 |
d2f67566ba54c8b9744192bdf19ba01e62e1bb6cb1e8526447cdb29feb7cac7c
|
File details
Details for the file sphinx_markdown_builder-0.6.9-py3-none-any.whl.
File metadata
- Download URL: sphinx_markdown_builder-0.6.9-py3-none-any.whl
- Upload date:
- Size: 16.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
35b555760c48d4a38fe4b27813cb5ca636bbd22d8ef0742ac6959043f8000840
|
|
| MD5 |
53590a96941796442723fdd07d3d77fa
|
|
| BLAKE2b-256 |
18ee02f9986d7818be2ccc5bce76d388e73f5a163f604f682d1ad69e6bc0df7c
|