Closed agoose77 closed 4 weeks ago
Latest commit: caa99a406fc77f9130ca351b34823844ca9bcd9d
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
This styling isn't perfect, but it's simple enough to start with.
In #431 I explored adding pass-through rendering support for Sphinx AST nodes (generated from a separate extension for Sphinx). This PR instead looks for annotations on a canonical MyST AST to make the styling required to improve Sphinx rendering. Currently this is only focused on autodoc nodes.
There are some limitations in our AST right now that make this a bit fiddly, namely that many node types don't support custom classes. Consequently, some of the selectors are more like heuristics, but they are all gated on a parent class starting with
sphinx-
.