You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 25, 2022. It is now read-only.
Many Python repositories have a structure similar to:
project/
docs/
conf.py
index.rst
src/
README.md
There is no clear instruction on how to including this README.md formatted as Markdown as part of Sphinx, while this is a common occurrence. Online certain solutions can be found:
Many Python repositories have a structure similar to:
There is no clear instruction on how to including this
README.mdformatted as Markdown as part of Sphinx, while this is a common occurrence. Online certain solutions can be found:.. include:: ../README.mdin areadme_link.rstfile.Problem: Parses the
.mdfile as RSTsys.pathinconf.pylike:sys.path.insert(0, os.path.abspath('..'))Problem: Somehow this doesn't work for me
README.mdProblem: Is not cross-platform (does not work on Windows)
maketime with a function.Problem: Far from ideal, needlessly making files.
.. mdinclude:: ../README.md; Only option working for me.Problem: Using
extensions = ['m2r', 'recommonmark'](or reversed list) gives the error:source_suffix '.md' is already registeredin them2rlibrary... mdincludelike M2R?.. include::first check the extension before parsing?README.mdfrom a parent directory?p.s. Relevant issue in Sphinx's repo: sphinx-doc/sphinx#701