[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [29071] trunk/blender/source/blender/ python/doc/sphinx_doc_gen.py: == Sphinx Doc Gen ==

Alex Sytnik the.smerch at gmail.com
Sun May 30 02:24:32 CEST 2010


Revision: 29071
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=29071
Author:   smerch
Date:     2010-05-30 02:24:32 +0200 (Sun, 30 May 2010)

Log Message:
-----------
== Sphinx Doc Gen ==

Workaround to address attribute description issue. 
In resulting .rst file attribute's descriptions appeared
not indented which sphinx considered as anoter blocks.

Modified Paths:
--------------
    trunk/blender/source/blender/python/doc/sphinx_doc_gen.py

Modified: trunk/blender/source/blender/python/doc/sphinx_doc_gen.py
===================================================================
--- trunk/blender/source/blender/python/doc/sphinx_doc_gen.py	2010-05-29 23:31:11 UTC (rev 29070)
+++ trunk/blender/source/blender/python/doc/sphinx_doc_gen.py	2010-05-30 00:24:32 UTC (rev 29071)
@@ -36,6 +36,7 @@
     make
 '''
 
+# import rpdb2; rpdb2.start_embedded_debugger('test')
 
 import os
 import inspect
@@ -133,7 +134,7 @@
     
     if type(descr) == GetSetDescriptorType:
         fw(ident + ".. attribute:: %s\n\n" % identifier)
-        write_indented_lines(ident, fw, doc, False)
+        write_indented_lines(ident + "   ", fw, doc, False)
     elif type(descr) == MethodDescriptorType: # GetSetDescriptorType, GetSetDescriptorType's are not documented yet
         write_indented_lines(ident, fw, doc, False)
     else:





More information about the Bf-blender-cvs mailing list