[Bf-blender-cvs] [b94a433ca34] master: Docs: Fix file:line links in generated API docs

Campbell Barton noreply at git.blender.org
Sat Jun 17 18:34:28 CEST 2017


Commit: b94a433ca34d74cfefd2e41042bc001b3f8d20bc
Author: Campbell Barton
Date:   Sun Jun 18 02:33:13 2017 +1000
Branches: master
https://developer.blender.org/rBb94a433ca34d74cfefd2e41042bc001b3f8d20bc

Docs: Fix file:line links in generated API docs

===================================================================

M	doc/python_api/sphinx_doc_gen.py

===================================================================

diff --git a/doc/python_api/sphinx_doc_gen.py b/doc/python_api/sphinx_doc_gen.py
index c8bf0243d2c..3b0e8f52c83 100644
--- a/doc/python_api/sphinx_doc_gen.py
+++ b/doc/python_api/sphinx_doc_gen.py
@@ -1613,10 +1613,8 @@ def pyrna2sphinx(basepath):
                     else:
                         url_base = API_BASEURL
 
-                    fw("   :file: `%s <%s/%s>`_:%d\n\n" % (location[0],
-                                                           url_base,
-                                                           location[0],
-                                                           location[1]))
+                    fw("   :file: `%s\\:%d <%s/%s$%d>`_\n\n" %
+                       (location[0], location[1], url_base, location[0], location[1]))
 
             file.close()




More information about the Bf-blender-cvs mailing list