Skip to content
Snippets Groups Projects
Commit a8fde676 authored by Aaron Carlisle's avatar Aaron Carlisle
Browse files

RNA Manual Reference: Use correct blender version in URL

parent 85988181
No related branches found
No related tags found
No related merge requests found
...@@ -61,7 +61,11 @@ fw = file.write ...@@ -61,7 +61,11 @@ fw = file.write
fw("# Do not edit this file.") fw("# Do not edit this file.")
fw(" This file is auto generated from rna_manual_reference_updater.py\n\n") fw(" This file is auto generated from rna_manual_reference_updater.py\n\n")
fw("import bpy\n\n") fw("import bpy\n\n")
fw("url_manual_prefix = \"https://docs.blender.org/manual/en/dev/\"\n\n") fw("if bpy.app.version_cycle in {'rc', 'release'}:\n")
fw(" manual_version = '%d.%d' % bpy.app.version[:2]\n")
fw("else:\n")
fw(" manual_version = 'dev'\n\n")
fw("url_manual_prefix = \"https://docs.blender.org/manual/en/\" + manual_version + \"/\"\n\n")
fw("language = \"\"\n") fw("language = \"\"\n")
fw("if bpy.context.preferences.view.use_international_fonts:\n") fw("if bpy.context.preferences.view.use_international_fonts:\n")
fw(" language = bpy.context.preferences.view.language\n") fw(" language = bpy.context.preferences.view.language\n")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment