diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-07-01 17:34:10 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-07-01 17:53:41 +0300 |
commit | 69b5a06823ff00c57af8c6b5c3eeafd5fdd5f02a (patch) | |
tree | 659c3a5619df4051ca089f6079899e94df7a848d /release | |
parent | 9197462e07a816f9cd3d99643c4b5fbbf07063c4 (diff) |
Docs: for release builds, link to specific manual version
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/space_topbar.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/space_topbar.py b/release/scripts/startup/bl_ui/space_topbar.py index 7afb417792c..cd0ef52e981 100644 --- a/release/scripts/startup/bl_ui/space_topbar.py +++ b/release/scripts/startup/bl_ui/space_topbar.py @@ -570,9 +570,14 @@ class TOPBAR_MT_help(Menu): show_developer = context.preferences.view.show_developer_ui + if bpy.app.version_cycle in {'rc', 'release'}: + manual_version = '%d.%d' % bpy.app.version[:2] + else: + manual_version = 'dev' + layout.operator( "wm.url_open", text="Manual", icon='HELP', - ).url = "https://docs.blender.org/manual/en/dev/" + ).url = "https://docs.blender.org/manual/en/" + manual_version + "/" layout.operator( "wm.url_open", text="Tutorials", icon='URL', ).url = "https://www.blender.org/tutorials" |