Skip to content

Convert domain from rst to myst #794

Answered by chrisjsewell
mosabua asked this question in Q&A
Discussion options

You must be logged in to vote

And related question .. the current setup is basically using the Python domain .. but thats technically wrong. Ideally it could be generic or otherwise a SQL domain .. but not such thing exists as far as I am aware.

Heya, you can use rst2myst convert --default-domain py to specify the default domain, which relates to https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-primary_domain

If your function relate to the Python domain, then you can use rst2myst convert --conversions conv.yml test.rst, where conv.yml looks like:

sphinx.domains.python.PyFunction: direct
sphinx.domains.python.PyVariable: direct
sphinx.domains.python.PyClasslike: direct
sphinx.domains.python.PyMethod

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@mosabua
Comment options

@chrisjsewell
Comment options

Answer selected by mosabua
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants