Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
AgeCommit message (Collapse)Author
2022-11-04PyDoc: Make rst files more readableAaron Carlisle
This commit reduces the amount of white space generated and keeps parameter documentation of a single line. This makes the resulting rst files easier to read in the case of debugging. This was useful while looking into T97464
2022-11-03PyDocs: Upgrade Theme to 1.1.0Aaron Carlisle
Updates to kbd and breadcrumbs along with some fixes to API docs that should'nt affect us.
2022-11-03PyDocs: Upgrade Sphinx to 5.3.0Aaron Carlisle
Trivial changes, should not affect us in anyway.
2022-10-11Py Docs: Update to sphinx 5.2.3Aaron Carlisle
Notable change is the improvements made to search.
2022-09-23Docs: minor improvements to info_advanced_blender_as_bpy wordingCampbell Barton
2022-09-19PyGPU: call 'GPU_shader_bind' in 'GPUShader.uniform_' methodsGermano Cavalcante
This simplifies python code. When we call a method like shader.uniform_float("color", (1,1,1,1)), we expect the shader's uniform to be updated regardless of whether the shader is bound or not. And `batch.draw()` already calls `GPU_shader_bind` inside. Differential Revision: https://developer.blender.org/D15929
2022-09-16Docs: Update sphinxAaron Carlisle
2022-09-15PyDoc: hide overly long titles from the side-barCampbell Barton
The side-bar included both title and description for documentation pages including quickstart, tips & tricks .. etc. Titles often wrapped and took up a lot of vertical space in the side-bar. Now these pages are linked on the main page, with the side-bar used for top-level Python modules.
2022-09-14Cleanup: remove redundant braces from assert & raiseCampbell Barton
autopep8 v1.7 added a space after assert & raise, remove the braces as they aren't needed.
2022-09-14PyDoc: add an "Advanced" section to document WITH_PYTHON_MODULECampbell Barton
Document the use cases, usage and limitations of using Blender as a Python module.
2022-09-01Py Docs: Document delayed setting of UI dataJulian Eisel
Blender may not apply certain UI data changes immediately when done via BPY. This is a rather typical gotcha, better to have it documented. Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D15614
2022-09-01PyDoc: update the shader creation examples with gpu moduleGermano Cavalcante
The old way of creating shaders is being replaced by using `GPUShaderCreateInfo` for more portability. Reviewed By: fclem Differential Revision: https://developer.blender.org/D14634
2022-08-18Merge branch 'blender-v3.3-release'Luca Rood
2022-08-18Fix T100423: Addon's custom context menu entries get overridden by other addonsLuca Rood
This introduces a new `UI_MT_button_context_menu` class which is registered at startup. Addons can append/prepend draw functions to this class, in order to add their custom context menu entries. The new class replaces the old `WM_MT_button_context` class, thus requiring a small change in addons using this feature. This is done because addons were previously required to register the class themselves, which caused addons to override each other's context menu entries. Now the class registration is handled by Blender, and addons need only append their draw functions. The new class name ensures that addons using the old method don't override menu entries made using the new class. Menu entries added with the legacy `WM_MT_button_context` class are still drawn for backwards compatibility, but this class must not be used going forward, as any addon using it still runs the risk of having its menu entries overridden, and support for the legacy class is subject to removal in a future version. Reviewed By: campbellbarton Maniphest Tasks: T100423 Differential Revision: https://developer.blender.org/D15702
2022-08-12Merge branch 'blender-v3.3-release'Bastien Montagne
2022-08-12Py API doc: Add warning that py-defined property accessor callbacks may be ↵Bastien Montagne
called in threaded context. At least Depsgraph evaluation and liboverride diffing do process IDs in parallel, so python code in py-defined properties should not access any data outside of their owner ID. Ref. T100203.
2022-07-27Blender 3.4 Alpha: Start of new release cycle.Thomas Dinges
2022-07-26Fix T99966: Python API docs fail to generateCampbell Barton
The recent addition of "active_action" [0] required updating in the API docs type information. [0]: cd21022b78fe48c16ab11d04682bb92271873a9c
2022-07-18Fix error indenting new-lines in generated RST API docsCampbell Barton
New-lines in RNA type descriptions caused invalid RST indentation. This resolve the error noted by @nutti in D15481.
2022-06-29Cleanup: formatCampbell Barton
2022-06-28Py API Doc: add runtime changelog generation to `sphinx_doc_gen.py`.Bastien Montagne
Optionally use `sphinx_changelog_gen.py` to dump current version of the API in a JSON file, and use closest previous one listed in given index file to create a changelog RST page for Sphinx. Part of {T97663}.
2022-06-28Py API Doc: refactor changelog generation script.Bastien Montagne
Main change is to make it use JSON format for its dump files, instead of some Python code. It also introduces an index for those API dump files, mapping a blender version to the relevant file path. This is then used to automatically the most recent (version-number wise) previous API dump to compare against current one, when generating the change log RST file. Part of {T97663}.
2022-06-17Revert "TEST COMMIT: API doc generation changes."Bastien Montagne
This reverts commit d86af604290be0507db113dc8c82540bb30d4fd3.
2022-06-17TEST COMMIT: API doc generation changes.Bastien Montagne
This commit is intended to be reverted within a few minutes. commit 50adc860a652508570dbc7102ef288049a9ffed4 Author: Bastien Montagne <bastien@blender.org> Date: Wed Jun 15 15:43:13 2022 +0200 Py API Doc: add runtime changelog generation to `sphinx_doc_gen.py`. Optionally use `sphinx_changelog_gen.py` to dump current version of the API in a JSON file, and use closest previous one listed in given index file to create a changelog RST page for Sphinx. commit 88fc683e78f866f1b3cda379c3b90e1f2916ce00 Author: Bastien Montagne <bastien@blender.org> Date: Wed Jun 15 15:36:19 2022 +0200 Py API Doc: refactor changelog generation script. Main change is to make it use JSON format for its dump files, instead of some Python code. It also introduces an index for those API dump files, mapping a blender version to the relevant file path. This is then used to automatically the most recent (version-number wise) previous API dump to compare against current one, when generating the change log RST file.
2022-06-17Revert "TEST COMMIT: API doc generation changes."Bastien Montagne
This reverts commit 52b93c423dc0db774dbcfb656702ecc01f8d6818.
2022-06-17TEST COMMIT: API doc generation changes.Bastien Montagne
This commit is intended to be reverted within a few minutes. commit 9442d8ef0f255d3c18b610b42aff71229904aaee Author: Bastien Montagne <bastien@blender.org> Date: Wed Jun 15 15:43:13 2022 +0200 Py API Doc: add runtime changelog generation to `sphinx_doc_gen.py`. Optionally use `sphinx_changelog_gen.py` to dump current version of the API in a JSON file, and use closest previous one listed in given index file to create a changelog RST page for Sphinx. commit f7fb537078641d2e2de015c08554f5281ce9debd Author: Bastien Montagne <bastien@blender.org> Date: Wed Jun 15 15:36:19 2022 +0200 Py API Doc: refactor changelog generation script. Main change is to make it use JSON format for its dump files, instead of some Python code. It also introduces an index for those API dump files, mapping a blender version to the relevant file path. This is then used to automatically the most recent (version-number wise) previous API dump to compare against current one, when generating the change log RST file.
2022-06-17Revert "TEST COMMIT: API doc generation changes."Bastien Montagne
This reverts commit 510f3fe9a977798d44e81add078944745c1585bf.
2022-06-17TEST COMMIT: API doc generation changes.Bastien Montagne
This commit is intended to be reverted within a few minutes. commit 088497c870630d9b0d405aaa5fd796c77b380731 Author: Bastien Montagne <bastien@blender.org> Date: Wed Jun 15 15:43:13 2022 +0200 Py API Doc: add runtime changelog generation to `sphinx_doc_gen.py`. Optionally use `sphinx_changelog_gen.py` to dump current version of the API in a JSON file, and use closest previous one listed in given index file to create a changelog RST page for Sphinx. commit 91801f47ad03f4739e97ae4b4edee09687e2cb85 Author: Bastien Montagne <bastien@blender.org> Date: Wed Jun 15 15:36:19 2022 +0200 Py API Doc: refactor changelog generation script. Main change is to make it use JSON format for its dump files, instead of some Python code. It also introduces an index for those API dump files, mapping a blender version to the relevant file path. This is then used to automatically the most recent (version-number wise) previous API dump to compare against current one, when generating the change log RST file.
2022-06-16Revert "Revert "Revert "TEST COMMIT: API doc generation changes."""Bastien Montagne
This reverts commit 5a30fe29ef2e1f424df0403284b3ebba5644403f.
2022-06-16Revert "Revert "TEST COMMIT: API doc generation changes.""Bastien Montagne
This reverts commit 502089f275ded113732c24cad2a96e2a899ecd5c. Enable again temporarily the new test code for API doc generation.
2022-06-15Revert "TEST COMMIT: API doc generation changes."Bastien Montagne
This reverts commit 298372fa06cbe0887534b95c9b23b491e46419d4.
2022-06-15TEST COMMIT: API doc generation changes.Bastien Montagne
This commit is intended to be reverted within a few minutes. commit 39ffb045a52d16994c1c87ccf3249ff3222a8fca Author: Bastien Montagne <bastien@blender.org> Date: Wed Jun 15 15:43:13 2022 +0200 Py API Doc: add runtime changelog generation to `sphinx_doc_gen.py`. Optionally use `sphinx_changelog_gen.py` to dump current version of the API in a JSON file, and use closest previous one listed in given index file to create a changelog RST page for Sphinx. commit fbe354d3fcfa2ad1ed430c3c27e19b99a0266dda Author: Bastien Montagne <bastien@blender.org> Date: Wed Jun 15 15:36:19 2022 +0200 Py API Doc: refactor changelog generation script. Main change is to make it use JSON format for its dump files, instead of some Python code. It also introduces an index for those API dump files, mapping a blender version to the relevant file path. This is then used to automatically the most recent (version-number wise) previous API dump to compare against current one, when generating the change log RST file.
2022-06-06PyDocs: remove sphinx-intlAaron Carlisle
Cop paste mistake from rB3cd283a424ec92ef85e1856d66f0baa4d2253fc5
2022-06-06Py Docs: Update Sphinx and dependenciesAaron Carlisle
- Adds python 3.10 support - Slightly improves performance
2022-06-02Cleanup: remove "<pep8 compliant>" from headersCampbell Barton
It can be assumed that all scripts comply with basic pep8 formatting regarding white-space, indentation etc. Also remove note in best practices page & update `tests/python/pep8.py`. If we want to exclude some scripts from make format, this can be done by adding them to `ignore_files` in: source/tools/utils_maintenance/autopep8_format_paths.py Or using `# nopep8` for to ignore for individual lines. Ref T98554
2022-06-02PyDoc: changes to the generated conf.py fileCampbell Barton
- Set the highlight language to python3 (excludes python2 syntax). - Set the encoding for code highlighting to utf-8 (no need to detect). - Update deprecated variable name. - Remove redundant unicode prefixed string.
2022-06-02PyDoc: remove CSS override for scrolling long enum listsCampbell Barton
Adding a scroll-bar to in-line lists has the down-side that it cuts of text including warnings or notes that can be included, see: T87008. Now enums are referenced [0] this is no longer needed, reverting [1]. [0]: 1c6b66c9cf80b3c9b4542b27948ae232f930a211 [1]: 1e8f2665916c049748a3985a2fce736701925095
2022-06-01Cleanup: minor changes to sphinx_doc_genCampbell Barton
- Remove unused pymethod2sphinx. - Correct exception string formatting. - Define encoding for file reading with execfile(..).
2022-05-31PyDoc: replace in-lined enum references with links where possibleCampbell Barton
Avoid in-lining large enums such as icons and event types, linking to them instead. This mitigates T76453, where long enums took a lot of space in the docs, this was a problem with `UILayout` where each icon argument would list all icons. [0] worked around the issue using CSS to scroll the list. However this has the draw-back where some items are clipped in a way that's not obvious, see: T87008. The reason this isn't a complete solution is that Python defined enums aren't written into their own pages which can be linked to, although currently there are no large Python enums included in the API docs. All in-lined enums are now under 20 items. [0]: 1e8f2665916c049748a3985a2fce736701925095
2022-05-31PyDoc: document static enums from RNA_enum_items.hCampbell Barton
Create a page for every enum in RNA_enum_items.h, which includes the enum values and the doc-string for each item. Each page creates a references which the API reference can be linked to via the same name as the enum, so :ref:`rna_enum_icon_items` links to the list of icons for e.g. This has two main advantages: - No need to manually duplicate enum values in the doc-strings of functions defined in Python's C/API (not RNA defined functions), `bpy.props` for example. - The generated Python API docs can reference these instead of including the enums in-line - resulting in unreasonably long lists in the case if icons and event types (for example). These changes will be made separately.
2022-05-25PyDoc: suppress duplicate object description warningCampbell Barton
RenderEngine.render is both a method and an attribute, while this should be avoided it's not causing a problem in practice so quiet the warning when generating docs. Sphinx now builds docs without any warnings.
2022-05-23PyDoc: quiet output and minor cleanupCampbell Barton
Suppress printing unnecessary output when generating docs.
2022-05-23Fix error in sphinx_doc_gen.py when loggingCampbell Barton
Regression in 45ed325443a3a3afb57da25ad01d636a94bf6cee
2022-05-22PyDoc: resolve/quiet warnings for pylintCampbell Barton
- Duplicate keys in dict. - Redefining names. - Unused arguments. - Use lazy % formatting in logging functions.
2022-05-22PyDoc: cleanup doc-generatorCampbell Barton
- Full sentences for comments. - Use double quotes for strings (which aren't enum ID's). - Reduce right-shift.
2022-05-20Merge branch 'blender-v3.2-release'Campbell Barton
2022-05-19Python API: warn that the bgl module is deprecated in the docsBrecht Van Lommel
This was already mentioned in the release notes but not the API docs. Ref T80730
2022-05-18Merge branch 'blender-v3.2-release'Campbell Barton
2022-05-18Fix T88792: WindowManager.clipboard missing in Python API docsCampbell Barton
Support RNA types using the Py/C-API PyGetSetDef defined properties. Currently `WindowManager.clipboard` is the only instance of this.
2022-05-18Cleanup: remove unused variables, redundant assignmentsCampbell Barton