how can I add a custom markdown document written myself to a sphinx documentation
- User
how can I add a custom markdown document written myself to a sphinx documentation
Assistant
To add your custom markdown document to Sphinx documentation:
- Install the MyST-Parser extension:
pip install myst-parser- Configure your Sphinx project to use markdown by editing
conf.py:
extensions = [ # ... your other extensions 'myst_parser', ] # Add .md to source suffixes source_suffix = { '.rst': 'restructuredtext', '.md': 'markdown', } # Optional: Configure MyST settings if needed myst_enable_extensions = [ "colon_fence", "deflist", # other extensions you might want ]-
Place your markdown file in your docs source directory (same place as your .rst files)
-
Reference your markdown file in your toctree (in index.rst or another file):
.. toctree:: :maxdepth: 2 :caption: Contents: introduction your-markdown-file other-pages
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.