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.
This commit is contained in:
Bastien Montagne
2019-07-11 12:04:27 +02:00
parent 7c48b6c84c
commit 03d8bfb144

View File

@@ -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")