melissawm / sphinx-tags

A tiny Sphinx extension that implements blog-style tags for documentation.
https://sphinx-tags.readthedocs.io/en/latest/
MIT License
44 stars 11 forks source link

ENH Add reference label for rst #86

Closed lucyleeow closed 8 months ago

lucyleeow commented 9 months ago

closes #85

Adds reference label for .rst. AFAICT for md, you can just use the header to cross reference, so no special label needed.

I do not know how best to test this. Could I add a cross link to test/sources/test-rst/index.rst and then amend the test only for testroot="rst" ?

JWCook commented 8 months ago

It would be nice to have a consistent ref label for both rST and MyST, since some projects (including some of mine) use a mix of both formats. I can add that plus tests in a separate PR.