[Bf-blender-cvs] [03d8bfb1447] master: API Doc link: make releases/RC's point to their own version of the doc.
Bastien Montagne
noreply at git.blender.org
Thu Jul 11 12:13:23 CEST 2019
Commit: 03d8bfb1447593f8460ce9d67ba17eabcb1aec3d
Author: Bastien Montagne
Date: Thu Jul 11 12:04:27 2019 +0200
Branches: master
https://developer.blender.org/rB03d8bfb1447593f8460ce9d67ba17eabcb1aec3d
API Doc link: make releases/RC's point to their own version of the doc.
Sounds kind of stupid to have 2.79 pointing to "current" which is now
2.80 API doc... Let's try to avoid that in future.
===================================================================
M release/scripts/startup/bl_operators/wm.py
===================================================================
diff --git a/release/scripts/startup/bl_operators/wm.py b/release/scripts/startup/bl_operators/wm.py
index b68ef3da6da..5cc4b773b54 100644
--- a/release/scripts/startup/bl_operators/wm.py
+++ b/release/scripts/startup/bl_operators/wm.py
@@ -1023,7 +1023,8 @@ class WM_OT_doc_view(Operator):
doc_id: doc_id
if bpy.app.version_cycle in {"release", "rc"}:
- _prefix = ("https://docs.blender.org/api/current")
+ _prefix = ("https://docs.blender.org/api/%d.%d%s" %
+ (bpy.app.version[0], bpy.app.version[1], bpy.app.version_char))
else:
_prefix = ("https://docs.blender.org/api/master")
More information about the Bf-blender-cvs
mailing list