PyAPI Docs: Remove BGE related documenation

This commit is contained in:
2018-08-13 17:29:36 -04:00
parent 6218cd3261
commit bee348a388

View File

@@ -231,14 +231,6 @@ else:
EXCLUDE_INFO_DOCS = True EXCLUDE_INFO_DOCS = True
EXCLUDE_MODULES = [ EXCLUDE_MODULES = [
"aud", "aud",
"bge",
"bge.app"
"bge.constraints",
"bge.events",
"bge.logic",
"bge.render",
"bge.texture",
"bge.types",
"bgl", "bgl",
"blf", "blf",
"bmesh", "bmesh",
@@ -340,10 +332,6 @@ EXTRA_SOURCE_FILES = (
"../../../release/scripts/templates_py/operator_simple.py", "../../../release/scripts/templates_py/operator_simple.py",
"../../../release/scripts/templates_py/ui_panel_simple.py", "../../../release/scripts/templates_py/ui_panel_simple.py",
"../../../release/scripts/templates_py/ui_previews_custom_icon.py", "../../../release/scripts/templates_py/ui_previews_custom_icon.py",
"../examples/bge.constraints.py",
"../examples/bge.texture.1.py",
"../examples/bge.texture.2.py",
"../examples/bge.texture.py",
"../examples/bmesh.ops.1.py", "../examples/bmesh.ops.1.py",
"../examples/bpy.app.translations.py", "../examples/bpy.app.translations.py",
"../static/favicon.ico", "../static/favicon.ico",
@@ -1784,19 +1772,6 @@ def write_rst_contents(basepath):
if "bmesh.ops" not in EXCLUDE_MODULES: if "bmesh.ops" not in EXCLUDE_MODULES:
execfile(os.path.join(SCRIPT_DIR, "rst_from_bmesh_opdefines.py")) execfile(os.path.join(SCRIPT_DIR, "rst_from_bmesh_opdefines.py"))
# game engine
if "bge" not in EXCLUDE_MODULES:
fw(title_string("Game Engine Modules", "=", double=True))
fw(".. toctree::\n")
fw(" :maxdepth: 1\n\n")
fw(" bge.types.rst\n\n")
fw(" bge.logic.rst\n\n")
fw(" bge.render.rst\n\n")
fw(" bge.texture.rst\n\n")
fw(" bge.events.rst\n\n")
fw(" bge.constraints.rst\n\n")
fw(" bge.app.rst\n\n")
# rna generated change log # rna generated change log
fw(title_string("API Info", "=", double=True)) fw(title_string("API Info", "=", double=True))
fw(".. toctree::\n") fw(".. toctree::\n")
@@ -1816,7 +1791,7 @@ def write_rst_contents(basepath):
fw(" timeline frames and scene objects\n") fw(" timeline frames and scene objects\n")
fw(" * user interface functions for defining buttons, creation of menus, headers, panels\n") fw(" * user interface functions for defining buttons, creation of menus, headers, panels\n")
fw(" * render engine integration\n") fw(" * render engine integration\n")
fw(" * modules: bgl, mathutils & game engine.\n") fw(" * modules: bgl & mathutils\n")
fw("\n") fw("\n")
file.close() file.close()
@@ -1952,36 +1927,19 @@ def copy_handwritten_rsts(basepath):
# TODO put this docs in Blender's code and use import as per modules above # TODO put this docs in Blender's code and use import as per modules above
handwritten_modules = [ handwritten_modules = [
"bge.logic",
"bge.render",
"bge.texture",
"bge.events",
"bge.constraints",
"bge.app",
"bgl", # "Blender OpenGl wrapper" "bgl", # "Blender OpenGl wrapper"
"gpu", # "GPU Shader Module" "gpu", # "GPU Shader Module"
"bmesh.ops", # generated by rst_from_bmesh_opdefines.py "bmesh.ops", # generated by rst_from_bmesh_opdefines.py
# includes... # includes...
"include__bmesh", "include__bmesh",
] ]
for mod_name in handwritten_modules: for mod_name in handwritten_modules:
if mod_name not in EXCLUDE_MODULES: if mod_name not in EXCLUDE_MODULES:
# copy2 keeps time/date stamps # copy2 keeps time/date stamps
shutil.copy2(os.path.join(RST_DIR, "%s.rst" % mod_name), basepath) shutil.copy2(os.path.join(RST_DIR, "%s.rst" % mod_name), basepath)
if "bge.types" not in EXCLUDE_MODULES:
shutil.copy2(os.path.join(RST_DIR, "bge.types.rst"), basepath)
bge_types_dir = os.path.join(RST_DIR, "bge_types")
for i in os.listdir(bge_types_dir):
if i.startswith("."):
# Avoid things like .svn dir...
continue
shutil.copy2(os.path.join(bge_types_dir, i), basepath)
# changelog # changelog
shutil.copy2(os.path.join(RST_DIR, "change_log.rst"), basepath) shutil.copy2(os.path.join(RST_DIR, "change_log.rst"), basepath)