================ @@ -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]+)") +GH_LINK_URL = "https://github.com/llvm/llvm-project/issues/{}" ---------------- nigham wrote:
Nit: GH_LINK_TMPL? https://github.com/llvm/llvm-project/pull/199076 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
