Extend Sphinx Projects to Declare MyST References
Add richer integration between existing Sphinx projects and the MyST ecosystem
Configure Your Project¶
The Sphinx conf.py for your project should include sphinx-ext-mystmd. If your Sphinx project lives in the working directory, then your conf.py might look like.
conf.py
extensions = [
"sphinx_ext_mystmd"
]
html_extra_path = ["./myst-xrefs"]Build the MyST Metadata¶
sphinx-build -b myst-xref . ./myst-xrefsBuild the HTML Deployment¶
sphinx-build -b html . ./htmlThe published project now includes the xref information in the public directory.