[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [30500] branches/soc-2010-nexyon/source/ blender/python/doc: Minor sphinx corrections:

Joerg Mueller nexyon at gmail.com
Mon Jul 19 15:36:11 CEST 2010


Revision: 30500
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=30500
Author:   nexyon
Date:     2010-07-19 15:36:10 +0200 (Mon, 19 Jul 2010)

Log Message:
-----------
Minor sphinx corrections:
* Attributes starting with _ in classes are now ignored
* sphinx.blend updated so that it doesn't have to be edited anymore if the script changes

Modified Paths:
--------------
    branches/soc-2010-nexyon/source/blender/python/doc/sphinx.blend
    branches/soc-2010-nexyon/source/blender/python/doc/sphinx_doc_gen.py

Modified: branches/soc-2010-nexyon/source/blender/python/doc/sphinx.blend
===================================================================
(Binary files differ)

Modified: branches/soc-2010-nexyon/source/blender/python/doc/sphinx_doc_gen.py
===================================================================
--- branches/soc-2010-nexyon/source/blender/python/doc/sphinx_doc_gen.py	2010-07-19 12:37:55 UTC (rev 30499)
+++ branches/soc-2010-nexyon/source/blender/python/doc/sphinx_doc_gen.py	2010-07-19 13:36:10 UTC (rev 30500)
@@ -143,7 +143,9 @@
 
 
 def py_descr2sphinx(ident, fw, descr, module_name, type_name, identifier):    
-
+    if identifier.startswith("_"):
+        return
+    
     doc = descr.__doc__
     if not doc:
         doc = undocumented_message(module_name, type_name, identifier)
@@ -772,7 +774,8 @@
 
     file.close()
 
-if __name__ == '__main__':
+def main():
+    import bpy
     if 'bpy' not in dir():
         print("\nError, this script must run from inside blender2.5")
         print(script_help_msg)
@@ -842,3 +845,6 @@
 
     import sys
     sys.exit()
+
+if __name__ == '__main__':
+    main()





More information about the Bf-blender-cvs mailing list