[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [41541] trunk/blender: misc doc edits

Campbell Barton ideasman42 at gmail.com
Sat Nov 5 02:48:11 CET 2011


Revision: 41541
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=41541
Author:   campbellbarton
Date:     2011-11-05 01:48:10 +0000 (Sat, 05 Nov 2011)
Log Message:
-----------
misc doc edits
- remove recently added sphinx reference workaround.
- tested doxygen, correct some warnings, set tab width and added pymathutils group.
- added convenience target 'make doc_doxy'

Modified Paths:
--------------
    trunk/blender/GNUmakefile
    trunk/blender/doc/doxygen/Doxyfile
    trunk/blender/doc/doxygen/doxygen.source
    trunk/blender/doc/python_api/sphinx_doc_gen.py
    trunk/blender/intern/audaspace/intern/AUD_C-API.h
    trunk/blender/intern/ghost/intern/GHOST_Buttons.h
    trunk/blender/intern/ghost/intern/GHOST_DisplayManager.h
    trunk/blender/intern/ghost/intern/GHOST_EventWheel.h
    trunk/blender/source/blender/editors/curve/editcurve.c
    trunk/blender/source/blender/editors/include/ED_view3d.h
    trunk/blender/source/blender/imbuf/intern/moviecache.c
    trunk/blender/source/blender/python/mathutils/mathutils.c
    trunk/blender/source/blender/python/mathutils/mathutils.h
    trunk/blender/source/blender/python/mathutils/mathutils_Color.c
    trunk/blender/source/blender/python/mathutils/mathutils_Color.h
    trunk/blender/source/blender/python/mathutils/mathutils_Euler.c
    trunk/blender/source/blender/python/mathutils/mathutils_Euler.h
    trunk/blender/source/blender/python/mathutils/mathutils_Matrix.c
    trunk/blender/source/blender/python/mathutils/mathutils_Matrix.h
    trunk/blender/source/blender/python/mathutils/mathutils_Quaternion.c
    trunk/blender/source/blender/python/mathutils/mathutils_Quaternion.h
    trunk/blender/source/blender/python/mathutils/mathutils_Vector.c
    trunk/blender/source/blender/python/mathutils/mathutils_Vector.h
    trunk/blender/source/blender/python/mathutils/mathutils_geometry.c
    trunk/blender/source/blender/python/mathutils/mathutils_geometry.h
    trunk/blender/source/blender/render/intern/source/external_engine.c
    trunk/blender/source/gameengine/Ketsji/KX_KetsjiEngine.h

Modified: trunk/blender/GNUmakefile
===================================================================
--- trunk/blender/GNUmakefile	2011-11-05 00:59:50 UTC (rev 41540)
+++ trunk/blender/GNUmakefile	2011-11-05 01:48:10 UTC (rev 41541)
@@ -151,6 +151,7 @@
 	@echo ""
 	@echo "Documentation Targets (not assosiated with building blender)"
 	@echo "  * doc_py   - generate sphinx python api docs"
+	@echo "  * doc_doxy - generate doxygen C/C++ docs"
 	@echo "  * doc_dna  - generate blender file format reference"
 	@echo "  * doc_man  - generate manpage"
 	@echo ""
@@ -238,9 +239,13 @@
 # Simple version of ./doc/python_api/sphinx_doc_gen.sh with no PDF generation.
 doc_py:
 	$(BUILD_DIR)/bin/blender --background -noaudio --factory-startup --python doc/python_api/sphinx_doc_gen.py
-	cd doc/python_api ; sphinx-build -n -b html sphinx-in sphinx-out
+	cd doc/python_api ; sphinx-build -b html sphinx-in sphinx-out
 	@echo "docs written into: '$(BLENDER_DIR)/doc/python_api/sphinx-out/contents.html'"
 
+doc_doxy:
+	cd doc/doxygen; doxygen 
+	@echo "docs written into: '$(BLENDER_DIR)/doc/doxygen/html/index.html'"
+
 doc_dna:
 	$(BUILD_DIR)/bin/blender --background -noaudio --factory-startup --python doc/blender_file_format/BlendFileDnaExporter_25.py
 	@echo "docs written into: '$(BLENDER_DIR)/doc/blender_file_format/dna.html'"

Modified: trunk/blender/doc/doxygen/Doxyfile
===================================================================
--- trunk/blender/doc/doxygen/Doxyfile	2011-11-05 00:59:50 UTC (rev 41540)
+++ trunk/blender/doc/doxygen/Doxyfile	2011-11-05 01:48:10 UTC (rev 41541)
@@ -193,7 +193,7 @@
 # The TAB_SIZE tag can be used to set the number of spaces in a tab. 
 # Doxygen uses this value to replace tabs by spaces in code fragments.
 
-TAB_SIZE               = 8
+TAB_SIZE               = 4
 
 # This tag can be used to specify a number of aliases that acts 
 # as commands in the documentation. An alias has the form "name=value". 

Modified: trunk/blender/doc/doxygen/doxygen.source
===================================================================
--- trunk/blender/doc/doxygen/doxygen.source	2011-11-05 00:59:50 UTC (rev 41540)
+++ trunk/blender/doc/doxygen/doxygen.source	2011-11-05 01:48:10 UTC (rev 41541)
@@ -22,6 +22,10 @@
  *  \ingroup python
  */
 
+/** \defgroup pymathutils Python Mathutils
+ *  \ingroup python
+ */
+
 /** \defgroup pythonintern Python RNA and Operators
  *  \ingroup python
  */

Modified: trunk/blender/doc/python_api/sphinx_doc_gen.py
===================================================================
--- trunk/blender/doc/python_api/sphinx_doc_gen.py	2011-11-05 00:59:50 UTC (rev 41540)
+++ trunk/blender/doc/python_api/sphinx_doc_gen.py	2011-11-05 01:48:10 UTC (rev 41541)
@@ -150,10 +150,6 @@
     return isinstance(value, tuple) and type(tuple) != tuple and hasattr(value, "n_fields")
 
 
-def module_id_as_ref(name):
-    return "mod_" + name.replace(".", "__")
-
-
 def undocumented_message(module_name, type_name, identifier):
     if str(type_name).startswith('<module'):
         preloadtitle = '%s.%s' % (module_name, identifier)
@@ -391,10 +387,6 @@
 
     write_title(fw, "%s (%s)" % (title, module_name), "=")
 
-    # write reference, annoying since we should be able to direct reference the
-    # modules but we cant always!
-    fw(".. _%s:\n\n" % module_id_as_ref(module_name))
-
     fw(".. module:: %s\n\n" % module_name)
 
     if module.__doc__:
@@ -453,21 +445,20 @@
         if type(descr) == MemberDescriptorType:
             if descr.__doc__:
                 value = getattr(module, key, None)
+
                 value_type = type(value)
                 descr_sorted.append((key, descr, value, type(value)))
     # sort by the valye type
     descr_sorted.sort(key=lambda descr_data: str(descr_data[3]))
     for key, descr, value, value_type in descr_sorted:
-        type_name = value_type.__name__
-        py_descr2sphinx("", fw, descr, module_name, type_name, key)
 
+        # must be documented as a submodule
         if is_struct_seq(value):
-            # ack, cant use typical reference because we double up once here
-            # and one fort he module!
-            full_name = "%s.%s" % (module_name, type_name)
-            fw("   :ref:`%s submodule details <%s>`\n\n\n" % (full_name, module_id_as_ref(full_name)))
-            del full_name
+            continue
 
+        type_name = value_type.__name__
+        py_descr2sphinx("", fw, descr, module_name, type_name, key)
+
         attribute_set.add(key)
 
     del key, descr, descr_sorted

Modified: trunk/blender/intern/audaspace/intern/AUD_C-API.h
===================================================================
--- trunk/blender/intern/audaspace/intern/AUD_C-API.h	2011-11-05 00:59:50 UTC (rev 41540)
+++ trunk/blender/intern/audaspace/intern/AUD_C-API.h	2011-11-05 01:48:10 UTC (rev 41541)
@@ -454,7 +454,7 @@
 /**
  * Pauses a playing sound after a specific amount of time.
  * \param handle The handle to the sound.
- * \param time The time in seconds.
+ * \param seconds The time in seconds.
  * \return The silence handle.
  */
 extern AUD_Handle* AUD_pauseAfter(AUD_Handle* handle, float seconds);

Modified: trunk/blender/intern/ghost/intern/GHOST_Buttons.h
===================================================================
--- trunk/blender/intern/ghost/intern/GHOST_Buttons.h	2011-11-05 00:59:50 UTC (rev 41540)
+++ trunk/blender/intern/ghost/intern/GHOST_Buttons.h	2011-11-05 01:48:10 UTC (rev 41541)
@@ -52,15 +52,15 @@
 
 	/**
 	 * Returns the state of a single button.
-	 * @param mask. Key button to return.
+	 * @param mask Key button to return.
 	 * @return The state of the button (pressed == true).
 	 */
 	virtual bool get(GHOST_TButtonMask mask) const;
 
 	/**
 	 * Updates the state of a single button.
-	 * @param mask. Button state to update.
-	 * @param down. The new state of the button.
+	 * @param mask Button state to update.
+	 * @param down The new state of the button.
 	 */
 	virtual void set(GHOST_TButtonMask mask, bool down);
 

Modified: trunk/blender/intern/ghost/intern/GHOST_DisplayManager.h
===================================================================
--- trunk/blender/intern/ghost/intern/GHOST_DisplayManager.h	2011-11-05 00:59:50 UTC (rev 41540)
+++ trunk/blender/intern/ghost/intern/GHOST_DisplayManager.h	2011-11-05 01:48:10 UTC (rev 41541)
@@ -72,7 +72,7 @@
 	/**
 	 * Returns the number of display settings for this display device.
 	 * @param display The index of the display to query with 0 <= display < getNumDisplays().
-	 * @param setting The number of settings of the display device with this index.
+	 * @param numSettings The number of settings of the display device with this index.
 	 * @return Indication of success.
 	 */
 	virtual GHOST_TSuccess getNumDisplaySettings(GHOST_TUns8 display, GHOST_TInt32& numSettings) const;

Modified: trunk/blender/intern/ghost/intern/GHOST_EventWheel.h
===================================================================
--- trunk/blender/intern/ghost/intern/GHOST_EventWheel.h	2011-11-05 00:59:50 UTC (rev 41540)
+++ trunk/blender/intern/ghost/intern/GHOST_EventWheel.h	2011-11-05 01:48:10 UTC (rev 41541)
@@ -26,7 +26,7 @@
  */
 
 /** \file ghost/intern/GHOST_EventWheel.h
- *  \ingroup GHOSTeel.h
+ *  \ingroup GHOST
  * Declaration of GHOST_EventWheel class.
  */
 

Modified: trunk/blender/source/blender/editors/curve/editcurve.c
===================================================================
--- trunk/blender/source/blender/editors/curve/editcurve.c	2011-11-05 00:59:50 UTC (rev 41540)
+++ trunk/blender/source/blender/editors/curve/editcurve.c	2011-11-05 01:48:10 UTC (rev 41541)
@@ -2812,12 +2812,7 @@
 /** Divide the line segments associated with the currently selected
  * curve nodes (Bezier or NURB). If there are no valid segment
  * selections within the current selection, nothing happens.
- *
- * @deffunc subdividenurb subdivideNurb(void)
- * @return Nothing
- * @param  None
-*/
-
+ */
 static void subdividenurb(Object *obedit, int number_cuts)
 {
 	Curve *cu= obedit->data;

Modified: trunk/blender/source/blender/editors/include/ED_view3d.h
===================================================================
--- trunk/blender/source/blender/editors/include/ED_view3d.h	2011-11-05 00:59:50 UTC (rev 41540)
+++ trunk/blender/source/blender/editors/include/ED_view3d.h	2011-11-05 01:48:10 UTC (rev 41541)
@@ -130,7 +130,6 @@
  * In orthographic view the resulting ray_normal will match the view vector.
  * @param ar The region (used for the window width and height).
  * @param v3d The 3d viewport (used for near clipping value).
- * @param out The resulting normalized world-space direction vector.
  * @param mval The area relative 2d location (such as event->mval, converted into float[2]).
  * @param ray_start The world-space starting point of the segment.
  * @param ray_normal The normalized world-space direction of towards mval.
@@ -140,7 +139,7 @@
 /**
  * Calculate a normalized 3d direction vector from the viewpoint towards a global location.
  * In orthographic view the resulting vector will match the view vector.
- * @param ar The region (used for the window width and height).
+ * @param rv3d The region (used for the window width and height).
  * @param coord The world-space location.
  * @param vec The resulting normalized vector.
  */
@@ -171,6 +170,7 @@
  * @param ofs The view offset to be set, normally from RegionView3D.ofs.
  * @param quat The view rotation to be set, quaternion normally from RegionView3D.viewquat.
  * @param dist The view distance from ofs to be set, normally from RegionView3D.dist.
+ * @param lens The view lens angle set for cameras and lamps, normally from View3D.lens.
  */
 void ED_view3d_from_object(struct Object *ob, float ofs[3], float quat[4], float *dist, float *lens);
 

Modified: trunk/blender/source/blender/imbuf/intern/moviecache.c
===================================================================
--- trunk/blender/source/blender/imbuf/intern/moviecache.c	2011-11-05 00:59:50 UTC (rev 41540)
+++ trunk/blender/source/blender/imbuf/intern/moviecache.c	2011-11-05 01:48:10 UTC (rev 41541)
@@ -25,7 +25,7 @@
  * ***** END GPL LICENSE BLOCK *****
  */
 
-/** \file blender/blenkernel/intern/moviecache.c
+/** \file blender/imbuf/intern/moviecache.c
  *  \ingroup bke
  */
 

Modified: trunk/blender/source/blender/python/mathutils/mathutils.c
===================================================================

@@ Diff output truncated at 10240 characters. @@



More information about the Bf-blender-cvs mailing list