py docs - gpu module wasn't included in docs.
also added convenience target to build sphinx api docs: make doc_py
This commit is contained in:
parent
7360f64a51
commit
c40b976ea8
14
GNUmakefile
14
GNUmakefile
@ -145,6 +145,9 @@ help:
|
|||||||
@echo " * check_splint - run blenders source through splint (C only)"
|
@echo " * check_splint - run blenders source through splint (C only)"
|
||||||
@echo " * check_sparse - run blenders source through sparse (C only)"
|
@echo " * check_sparse - run blenders source through sparse (C only)"
|
||||||
@echo ""
|
@echo ""
|
||||||
|
@echo "Documentation Targets"
|
||||||
|
@echo " * doc_py - generate sphinx python api docs"
|
||||||
|
@echo ""
|
||||||
|
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
# Packages
|
# Packages
|
||||||
@ -222,6 +225,17 @@ check_sparse:
|
|||||||
cd $(BUILD_DIR) ; python3 $(BLENDER_DIR)/build_files/cmake/cmake_static_check_sparse.py
|
cd $(BUILD_DIR) ; python3 $(BLENDER_DIR)/build_files/cmake/cmake_static_check_sparse.py
|
||||||
|
|
||||||
|
|
||||||
|
# -----------------------------------------------------------------------------
|
||||||
|
# Documentation
|
||||||
|
#
|
||||||
|
|
||||||
|
# Simple version of ./doc/python_api/sphinx_doc_gen.sh with no PDF generation.
|
||||||
|
doc_py:
|
||||||
|
$(BUILD_DIR)/bin/blender --background --factory-startup --python doc/python_api/sphinx_doc_gen.py
|
||||||
|
cd doc/python_api ; sphinx-build -n -b html sphinx-in sphinx-out
|
||||||
|
@echo "docs written into: 'doc/python_api/sphinx-out/index.html'"
|
||||||
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(MAKE) -C $(BUILD_DIR) clean
|
$(MAKE) -C $(BUILD_DIR) clean
|
||||||
|
|
||||||
|
@ -1,7 +1,10 @@
|
|||||||
|
|
||||||
GPU functions (gpu)
|
GPU functions (gpu)
|
||||||
===================
|
===================
|
||||||
|
|
||||||
|
.. module:: gpu
|
||||||
|
|
||||||
|
This module provides access to materials GLSL shaders.
|
||||||
|
|
||||||
*****
|
*****
|
||||||
Intro
|
Intro
|
||||||
*****
|
*****
|
||||||
@ -16,7 +19,6 @@ and in the game engine.
|
|||||||
are are closely related to Blender's internal GLSL code and may change if the GLSL code
|
are are closely related to Blender's internal GLSL code and may change if the GLSL code
|
||||||
is modified (e.g. new uniform type).
|
is modified (e.g. new uniform type).
|
||||||
|
|
||||||
.. module:: gpu
|
|
||||||
|
|
||||||
*********
|
*********
|
||||||
Constants
|
Constants
|
||||||
|
@ -83,6 +83,7 @@ else:
|
|||||||
"aud",
|
"aud",
|
||||||
"bgl",
|
"bgl",
|
||||||
"blf",
|
"blf",
|
||||||
|
"gpu",
|
||||||
"mathutils",
|
"mathutils",
|
||||||
"mathutils.geometry",
|
"mathutils.geometry",
|
||||||
)
|
)
|
||||||
@ -1122,6 +1123,8 @@ def rna2sphinx(BASEPATH):
|
|||||||
fw(" bgl.rst\n\n")
|
fw(" bgl.rst\n\n")
|
||||||
if "blf" not in EXCLUDE_MODULES:
|
if "blf" not in EXCLUDE_MODULES:
|
||||||
fw(" blf.rst\n\n")
|
fw(" blf.rst\n\n")
|
||||||
|
if "gpu" not in EXCLUDE_MODULES:
|
||||||
|
fw(" gpu.rst\n\n")
|
||||||
if "aud" not in EXCLUDE_MODULES:
|
if "aud" not in EXCLUDE_MODULES:
|
||||||
fw(" aud.rst\n\n")
|
fw(" aud.rst\n\n")
|
||||||
if "bpy_extras" not in EXCLUDE_MODULES:
|
if "bpy_extras" not in EXCLUDE_MODULES:
|
||||||
@ -1262,6 +1265,13 @@ def rna2sphinx(BASEPATH):
|
|||||||
import shutil
|
import shutil
|
||||||
shutil.copy2(os.path.join(BASEPATH, "..", "rst", "bgl.rst"), BASEPATH)
|
shutil.copy2(os.path.join(BASEPATH, "..", "rst", "bgl.rst"), BASEPATH)
|
||||||
|
|
||||||
|
if "gpu" not in EXCLUDE_MODULES:
|
||||||
|
#import gpu as module
|
||||||
|
#pymodule2sphinx(BASEPATH, "gpu", module, "GPU Shader Module")
|
||||||
|
#del module
|
||||||
|
import shutil
|
||||||
|
shutil.copy2(os.path.join(BASEPATH, "..", "rst", "gpu.rst"), BASEPATH)
|
||||||
|
|
||||||
if "aud" not in EXCLUDE_MODULES:
|
if "aud" not in EXCLUDE_MODULES:
|
||||||
import aud as module
|
import aud as module
|
||||||
pymodule2sphinx(BASEPATH, "aud", module, "Audio System")
|
pymodule2sphinx(BASEPATH, "aud", module, "Audio System")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user