Use latest/version number for manual links
authorAaron Carlisle <carlisle.b3d@gmail.com>
Thu, 4 Jul 2019 22:24:13 +0000 (18:24 -0400)
committerAaron Carlisle <carlisle.b3d@gmail.com>
Thu, 4 Jul 2019 22:24:36 +0000 (18:24 -0400)
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.

intern/cycles/blender/addon/__init__.py
intern/cycles/device/device_cuda.cpp
release/scripts/startup/bl_operators/uvcalc_follow_active.py
release/scripts/startup/bl_operators/wm.py
release/scripts/templates_py/addon_add_object.py
release/text/readme.html

index 4b838cce281e1d6f6d8e61ff949d28a0b19c6eda..6d6f89603fe21097ac77d114250f1c39aa538cc8 100644 (file)
@@ -22,7 +22,7 @@ bl_info = {
     "blender": (2, 80, 0),
     "description": "Cycles renderer integration",
     "warning": "",
-    "wiki_url": "https://docs.blender.org/manual/en/dev/render/cycles/",
+    "wiki_url": "https://docs.blender.org/manual/en/latest/render/cycles/",
     "tracker_url": "",
     "support": 'OFFICIAL',
     "category": "Render"}
index 7ab823423b5f9d043183ef43f9c7c3197c374a66..4d7d87828c27b8a83cd61f4237c1e8a011dafc02 100644 (file)
@@ -199,7 +199,7 @@ class CUDADevice : public Device {
       fprintf(stderr,
               "\nRefer to the Cycles GPU rendering documentation for possible solutions:\n");
       fprintf(stderr,
-              "https://docs.blender.org/manual/en/dev/render/cycles/gpu_rendering.html\n\n");
+              "https://docs.blender.org/manual/en/latest/render/cycles/gpu_rendering.html\n\n");
       first_error = false;
     }
   }
index d7a86302312dc0668075f8d9263a115aeaf4a00f..7b25491764b914ee648e665d4fc33f85bd5b929f 100644 (file)
@@ -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
index 7a39bd103b01f735cb5ddeb1304e2aa25f48d5a8..e7b9a847120004f7631b6e65431cc70d363b639a 100644 (file)
@@ -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]
index 6e51149e4518187c2e26f754e4b263bf5924eaa2..47997069cbb251d6be1b4e91c447fe4ee0a918cc 100644 (file)
@@ -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
 
index ccffe35b29fab83623b0f95c0a6b0c7c1f472659..3972f137d8ea0f5dd4bc6f5489e0586146734572 100644 (file)
@@ -85,7 +85,7 @@ Release Notes <a href="https://wiki.blender.org/wiki/Reference/Release_Notes/BLE
 <span class="s4">wiki.blender.org/wiki/Reference/Release_Notes/BLENDER_VERSION</span></a><br>
 Tutorials <a href="http://www.blender.org/support/tutorials/">
 <span class="s4">www.blender.org/support/tutorials/</span></a> <br>
-Manual <a href="https://docs.blender.org/manual/en/dev/"><span class="s4">https://docs.blender.org/manual/en/dev/</span></a><br>
+Manual <a href="https://docs.blender.org/manual/en/latest/"><span class="s4">https://docs.blender.org/manual/en/latest/</span></a><br>
 User Forum <a href="http://www.blenderartists.org/">
 <span class="s4">www.blenderartists.org</span></a><br>
 IRC <a href="irc://irc.freenode.net/#blenderchat">