================ @@ -1,19 +1,86 @@ #!/usr/bin/env python3 -from sphinx.application import Sphinx +"""Script to link #GH123 to our github issue tracker. + +We use MyST and reST, so this Sphinx plugin operates on the shared doctree +representation of the documentation, which is effectively a documentation-AST. + +Docutils doctree node reference: +https://docutils.sourceforge.io/docs/ref/doctree.html +""" + import re +from docutils import nodes +from sphinx.application import Sphinx __version__ = "1.0" +GH_LINK_RE = re.compile("#GH([0-9]+)") ---------------- nigham wrote:
Maybe `#GH([1-9][0-9]+)` (since we don't want leading zeros)? https://github.com/llvm/llvm-project/pull/199076 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
