From b4081bfc7beecf45d58137885c6abac81e3fb27b Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 10 Dec 2010 00:20:32 +0000 Subject: patch [#25027] formatting mathutils.geometry module docs for sphinx from Luka Bonavita See: http://www.blender.org/documentation/250PythonDoc/mathutils.geometry.html --- doc/python_api/sphinx_doc_gen.py | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) (limited to 'doc') diff --git a/doc/python_api/sphinx_doc_gen.py b/doc/python_api/sphinx_doc_gen.py index 1353dcf70d7..ae0bb43d1bc 100644 --- a/doc/python_api/sphinx_doc_gen.py +++ b/doc/python_api/sphinx_doc_gen.py @@ -64,11 +64,16 @@ EXAMPLE_SET_USED = set() _BPY_STRUCT_FAKE = "bpy_struct" _BPY_FULL_REBUILD = False + def undocumented_message(module_name, type_name, identifier): - message = "Undocumented (`contribute " \ - "`_)\n\n" % (module_name, type_name, identifier) + if str(type_name).startswith('`_)\n\n" % preloadtitle return message @@ -405,6 +410,9 @@ def rna2sphinx(BASEPATH): fw(" mathutils.rst\n\n") + fw(" mathutils.geometry.rst\n\n") + # XXX TODO + #fw(" bgl.rst\n\n") fw(" blf.rst\n\n") fw(" aud.rst\n\n") @@ -485,11 +493,20 @@ def rna2sphinx(BASEPATH): import mathutils as module pymodule2sphinx(BASEPATH, "mathutils", module, "Math Types & Utilities (mathutils)") del module + + import mathutils.geometry as module + pymodule2sphinx(BASEPATH, "mathutils.geometry", module, "Geometry Utilities (mathutils.geometry)") + del module import blf as module pymodule2sphinx(BASEPATH, "blf", module, "Font Drawing (blf)") del module + # XXX TODO + #import bgl as module + #pymodule2sphinx(BASEPATH, "bgl", module, "Blender OpenGl wrapper (bgl)") + #del module + import aud as module pymodule2sphinx(BASEPATH, "aud", module, "Audio System (aud)") del module -- cgit v1.2.3