Registry / serialization / sphinx-markdown-builder

sphinx-markdown-builder

JSON →
library0.6.10pypypiunverified

sphinx-markdown-builder is a Sphinx extension that enables the generation of documentation in Markdown format. It extends Sphinx's build capabilities, allowing users to build their existing reStructuredText or MyST Markdown projects into standard Markdown files. The current version is 0.6.10, and it generally follows a release cadence tied to major Sphinx versions and critical bug fixes.

pip install sphinx-markdown-builder
INSTALL
IMPORT
SIG · SPHINX-MARKDOWN-BU
S
sphinx-markdown-builder
serializationpythonv0.6.10
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

To quickly generate Markdown from your Sphinx project, first create a basic Sphinx project (e.g., `sphinx-quickstart docs`). Then, modify `docs/conf.py` to include `sphinx_markdown_builder` in your `extensions` list and set `markdown_builder_uri = '{path}.md'` for correct file extensions. Finally, run `sphinx-build -b markdown docs _build/markdown` from your project's root directory to generate Markdown output.

# Save this as docs/conf.py (after running sphinx-quickstart) import os import sys # Assuming your Sphinx project root is 'docs' sys.path.insert(0, os.path.abspath('.')) project = 'My Markdown Docs' copyright = '2024, AI Assistant' extensions = [ 'sphinx_markdown_builder', # Other Sphinx extensions can go here, e.g., 'sphinx.ext.autodoc' ] # Configure output Markdown file extension markdown_builder_uri = '{path}.md' # Minimal settings for Markdown output # Add other Sphinx standard configurations as needed html_theme = 'alabaster' # A theme is typically required by Sphinx init # Example index.rst content (save as docs/index.rst): # =================== # My Markdown Docs # =================== # # Hello World!
Debug
Known issues
breakingMajor version bumps for Sphinx (e.g., Sphinx 7.x support added in v0.6.0, Sphinx 5.x/6.x in v0.5.0) often require corresponding `sphinx-markdown-builder` updates. Using an incompatible version can lead to build failures.
fix
Upgrade `sphinx-markdown-builder` to a version that explicitly supports your Sphinx version. Check the package's release notes or GitHub page for detailed compatibility information.
affects: Before v0.6.0 (for Sphinx 7.x); before v0.5.0 (for Sphinx 5.x/6.x); generally any version mismatch.
breakingSupport for older Python versions has been dropped in recent releases. For example, Python 3.6 support was removed in v0.6.0.
fix
Ensure your Python environment is 3.7 or newer. Upgrade your Python version if using an older version.
affects: v0.6.0 and later
gotchaBy default, `sphinx-markdown-builder` generates Markdown files with a `.rst` extension in the output directory, which can be confusing if you expect standard `.md` files.
fix
To ensure `.md` extensions, configure `markdown_builder_uri = "{path}.md"` in your `conf.py` file.
affects: All versions
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'sphinx_markdown_builder'
The `sphinx-markdown-builder` package is not installed in your Python environment or is not accessible.
fix
Install the package using pip: `pip install sphinx-markdown-builder`
sphinx-build: error: Builder 'markdown' not registered.
The `sphinx_markdown_builder` extension is not listed in the `extensions` variable in your `conf.py` file, preventing Sphinx from recognizing the 'markdown' builder.
fix
Add `'sphinx_markdown_builder'` to the `extensions` list in your `conf.py`:

```python
# conf.py
extensions = [
    'sphinx_markdown_builder',
    # ... other extensions
]
```
WARNING: unknown config value: markdown_builder_outputdir
A configuration variable for `sphinx-markdown-builder` in your `conf.py` file is misspelled or does not exist, causing Sphinx to issue a warning for an unrecognized setting.
fix
Correct the spelling of the configuration variable in `conf.py` (e.g., `markdown_builder_output_dir` instead of `markdown_builder_outputdir`). Refer to the official documentation for the exact variable names.
Upgrade
Version history
0.6.10latest on PyPI · released Mar 11, 2026
Audit
Dependencies
SphinxrequiredRequired for building documentation as a Sphinx extension, typically Sphinx >= 4.0.0.
Agent activity
8 hits · last 30 days
node
6
OpenAI (training)
1
Resources
sphinx-markdown-builder — pip install sphinx-markdown-builder · libregistry