From d6d2e98e5ede42c51598a9676380e14ca4965dd2 Mon Sep 17 00:00:00 2001 From: Aaron Carlisle Date: Tue, 7 Mar 2023 20:02:44 -0500 Subject: [PATCH] PyAPI Docs: Fix Broken link to source files With the move to Gitea the URI for line numbers changed from `$1234` to `#L1234`. The change also removes a superfluous space character from the generated RST syntax. --- doc/python_api/sphinx_doc_gen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/python_api/sphinx_doc_gen.py b/doc/python_api/sphinx_doc_gen.py index f43f91bcc9f..876a8307dcb 100644 --- a/doc/python_api/sphinx_doc_gen.py +++ b/doc/python_api/sphinx_doc_gen.py @@ -1865,7 +1865,7 @@ def pyrna2sphinx(basepath): else: url_base = API_BASEURL - fw(" :file: `%s\\:%d <%s/%s$%d>`_\n\n" % + fw(" :file:`%s\\:%d <%s/%s#L%d>`_\n\n" % (location[0], location[1], url_base, location[0], location[1])) file.close()