[Bf-blender-cvs] [6d639a606c1] master: Docs: quiet deprecation warning, add missing context members

Campbell Barton noreply at git.blender.org
Tue Jun 23 15:33:01 CEST 2020


Commit: 6d639a606c134d29017cdcb205e6fb119b43d884
Author: Campbell Barton
Date:   Tue Jun 23 23:30:09 2020 +1000
Branches: master
https://developer.blender.org/rB6d639a606c134d29017cdcb205e6fb119b43d884

Docs: quiet deprecation warning, add missing context members

===================================================================

M	doc/python_api/sphinx_doc_gen.py

===================================================================

diff --git a/doc/python_api/sphinx_doc_gen.py b/doc/python_api/sphinx_doc_gen.py
index d76775d749e..c75a2cd73d3 100644
--- a/doc/python_api/sphinx_doc_gen.py
+++ b/doc/python_api/sphinx_doc_gen.py
@@ -1028,6 +1028,7 @@ context_type_map = {
     "gpencil": ("GreasePencil", False),
     "gpencil_data": ("GreasePencil", False),
     "gpencil_data_owner": ("ID", False),
+    "hair": ("Hair", False),
     "image_paint_object": ("Object", False),
     "lattice": ("Lattice", False),
     "light": ("Light", False),
@@ -1044,6 +1045,7 @@ context_type_map = {
     "particle_settings": ("ParticleSettings", False),
     "particle_system": ("ParticleSystem", False),
     "particle_system_editable": ("ParticleSystem", False),
+    "pointcloud": ("PointCloud", False),
     "pose_bone": ("PoseBone", False),
     "pose_object": ("Object", False),
     "scene": ("Scene", False),
@@ -1719,7 +1721,7 @@ class PatchedPythonDomain(PythonDomain):
     # end workaround
 
     fw("def setup(app):\n")
-    fw("    app.add_stylesheet('css/theme_overrides.css')\n")
+    fw("    app.add_css_file('css/theme_overrides.css')\n")
     fw("    app.add_domain(PatchedPythonDomain, override=True)\n\n")
 
     file.close()



More information about the Bf-blender-cvs mailing list