diff options
author | Aaron Carlisle <carlisle.b3d@gmail.com> | 2019-07-05 01:24:13 +0300 |
---|---|---|
committer | Aaron Carlisle <carlisle.b3d@gmail.com> | 2019-07-05 01:24:36 +0300 |
commit | fdcfc263e97324dd991b7251143e6403c61f3c50 (patch) | |
tree | 63ae0a8cc9b29a23e2501c26dd2ad1e5c8f49ceb /release/scripts | |
parent | 2740bdfff9f38807301fb3ee4d6a4949d8d8bb20 (diff) |
Use latest/version number for manual links
We want users to go to the current version for their current version
when possible if not point to latest.
/dev should really only be for development related work. End users
should not be browsing /dev unless they are reading about upcoming
features ahead of time.
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/startup/bl_operators/uvcalc_follow_active.py | 2 | ||||
-rw-r--r-- | release/scripts/startup/bl_operators/wm.py | 7 | ||||
-rw-r--r-- | release/scripts/templates_py/addon_add_object.py | 6 |
3 files changed, 10 insertions, 5 deletions
diff --git a/release/scripts/startup/bl_operators/uvcalc_follow_active.py b/release/scripts/startup/bl_operators/uvcalc_follow_active.py index d7a86302312..7b25491764b 100644 --- a/release/scripts/startup/bl_operators/uvcalc_follow_active.py +++ b/release/scripts/startup/bl_operators/uvcalc_follow_active.py @@ -19,7 +19,7 @@ # <pep8 compliant> # for full docs see... -# https://docs.blender.org/manual/en/dev/editors/uv_image/uv/editing/unwrapping/mapping_types.html#follow-active-quads +# https://docs.blender.org/manual/en/latest/editors/uv_image/uv/editing/unwrapping/mapping_types.html#follow-active-quads import bpy from bpy.types import Operator diff --git a/release/scripts/startup/bl_operators/wm.py b/release/scripts/startup/bl_operators/wm.py index 7a39bd103b0..e7b9a847120 100644 --- a/release/scripts/startup/bl_operators/wm.py +++ b/release/scripts/startup/bl_operators/wm.py @@ -1753,12 +1753,17 @@ class WM_MT_splash(Menu): if found_recent: col2_title.label(text="Recent Files") else: + if bpy.app.version_cycle in {'rc', 'release'}: + manual_version = '%d.%d' % bpy.app.version[:2] + else: + manual_version = 'dev' + # Links if no recent files col2_title.label(text="Getting Started") col2.operator( "wm.url_open", text="Manual", icon='URL' - ).url = "https://docs.blender.org/manual/en/dev/" + ).url = "https://docs.blender.org/manual/en/" + manual_version + "/" col2.operator( "wm.url_open", text="Release Notes", icon='URL', ).url = "https://www.blender.org/download/releases/%d-%d/" % bpy.app.version[:2] diff --git a/release/scripts/templates_py/addon_add_object.py b/release/scripts/templates_py/addon_add_object.py index 6e51149e451..47997069cbb 100644 --- a/release/scripts/templates_py/addon_add_object.py +++ b/release/scripts/templates_py/addon_add_object.py @@ -68,11 +68,11 @@ def add_object_button(self, context): icon='PLUGIN') -# This allows you to right click on a button and link to the manual +# This allows you to right click on a button and link to documentation def add_object_manual_map(): - url_manual_prefix = "https://docs.blender.org/manual/en/dev/" + url_manual_prefix = "https://docs.blender.org/manual/en/latest/" url_manual_mapping = ( - ("bpy.ops.mesh.add_object", "editors/3dview/object"), + ("bpy.ops.mesh.add_object", "scene_layout/object/types.html"), ) return url_manual_prefix, url_manual_mapping |