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
I'm trying to refactor a part of Sphinx-GitHub-Changelog, a sphinx extension that generates a changelog based on GitHub releases.
I can have either the GFM or the HTML of a GitHub release body (whichever is best). I'd like to use Myst-Parser to turn those into docutils nodes that my sphinx directive should return.
Does Myst-Parser expose an API to do that? I've spent some time on the doc and couldn't find it. There's the MystParser.parse(), but I don't really have a document to provide (my directive is expected to return nodes, not write them on the document directly) and even if I did, it would need to have myst config, which I don't know how to pass. I'm (as usual) confused by the Docutils API.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to refactor a part of Sphinx-GitHub-Changelog, a sphinx extension that generates a changelog based on GitHub releases.
I can have either the GFM or the HTML of a GitHub release body (whichever is best). I'd like to use Myst-Parser to turn those into docutils nodes that my sphinx directive should return.
Does Myst-Parser expose an API to do that? I've spent some time on the doc and couldn't find it. There's the
MystParser.parse()
, but I don't really have adocument
to provide (my directive is expected to return nodes, not write them on the document directly) and even if I did, it would need to have myst config, which I don't know how to pass. I'm (as usual) confused by the Docutils API.Anyone has an idea ?
Beta Was this translation helpful? Give feedback.
All reactions