Closed xobs closed 5 years ago
You need to have the *.md
file or a symlink to it (see here) in the same folder as your conf.py
.
When that is done include it in your toctree
as you would a *.rst
file (howto
).
My mistake. I seem to have misunderstood how recommonmark works.
My initial assumption was that it maps filename endings to text processors, and by providing an include
directive that would let me mix markdown and reStructured Text in one file.
It appears as though this isn't how it works, and normally you can't mix formats within a single document.
I've since switched to use m2r which does allow for this.
Background
I'm trying to enable users to write documentation in the more common Markdown format, rather than forcing them to learn reStructured Text. As such, I'd like to use something such as
recommonmark
to enable this.The
AutoStructify
documentation says that "AutoStructify makes it possible to write your documentation in Markdown, and automatically convert this into rST at build time". I'm trying to do this at build time, but this doesn't appear to be happening.Configuration
My configuration is based on the recommended configuration at https://github.com/rtfd/recommonmark/blob/master/docs/conf.py (linked to from https://recommonmark.readthedocs.io/en/latest/index.html#autostructify):
Then in my documentation tree I have the following in a file called
usb.rst
:Issue
This doesn't cause
howto.md
to be rendered as Markdown, despite the fact that.md
files are supposed to be rendered as Markdown. Instead it gets included verbatim, without getting converted at build-time.