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
diff options
context:
space:
mode:
authorAaron Carlisle <carlisle.b3d@gmail.com>2022-02-03 22:25:16 +0300
committerAaron Carlisle <carlisle.b3d@gmail.com>2022-02-03 22:25:26 +0300
commit6a2fc3230f5526788f4cac0dd1146a80e15c37d2 (patch)
treeb2f3c569ca6d404e8cd31e24c13d3298bbe39524 /doc/python_api/templates
parent71cd9f9fbb40e6e93e4cbf30184a96b90b772672 (diff)
Py Docs: Implement version switch to switch between versions on the website
This commit adds a version switch similar to the one on the user manual, in the future it would be nice to refactor both of these into a more generic code that works for both. Maybe develop this into a sphinx extension. As part of this change I had to change how the blender hash is displayed. Instead of the version hash in the top left it has been moved to the page footer. This change will also be backported to 2.93 LTS, 2.93 LTS, and 3.0.
Diffstat (limited to 'doc/python_api/templates')
-rw-r--r--doc/python_api/templates/versions.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/python_api/templates/versions.html b/doc/python_api/templates/versions.html
new file mode 100644
index 00000000000..64b47185ba7
--- /dev/null
+++ b/doc/python_api/templates/versions.html
@@ -0,0 +1,17 @@
+<div class="rst-versions" data-toggle="rst-versions" role="note" aria-label="document versions">
+ <ul id="versionwrap" role="presentation">
+ <li role="presentation">
+ <span id="version-popover" class="version-btn" tabindex="0" role="button" aria-label="versions selector" aria-haspopup="true" aria-controls="version-vsnlist" aria-disabled="true">
+ {{ release }}
+ </span>
+ <div class="version-dialog" aria-hidden="true">
+ <div class="version-arrow" aria-hidden="true"></div>
+ <div class="version-title">Versions</div>
+ <ul id="version-vsnlist" class="version-list" role="menu" aria-labelledby="version-popover" aria-hidden="true">
+ <li role="presentation">Loading...</li>
+ </ul>
+ </div>
+ </li>
+ </ul>
+</div>
+ \ No newline at end of file