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

Campbell Barton noreply at git.blender.org
Tue Jun 20 17:56:21 CEST 2017


Commit: d8de7724109877ba506340326d72ec0c019443dc
Author: Campbell Barton
Date:   Sun Jun 18 02:33:13 2017 +1000
Branches: id_copy_refactor
https://developer.blender.org/rBd8de7724109877ba506340326d72ec0c019443dc

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