[Bf-extensions-cvs] [e2b5a9e6] master: Replace rna manual reference with auto generated file
Aaron Carlisle
noreply at git.blender.org
Sat Jun 24 00:11:52 CEST 2017
Commit: e2b5a9e68c29a40adeb70d2a108c06064662d93f
Author: Aaron Carlisle
Date: Fri Jun 23 18:11:51 2017 -0400
Branches: master
https://developer.blender.org/rBAe2b5a9e68c29a40adeb70d2a108c06064662d93f
Replace rna manual reference with auto generated file
===================================================================
M modules/rna_manual_reference.py
===================================================================
diff --git a/modules/rna_manual_reference.py b/modules/rna_manual_reference.py
index 1fa26cdc..18e9bce7 100644
--- a/modules/rna_manual_reference.py
+++ b/modules/rna_manual_reference.py
@@ -1,945 +1,727 @@
-# RNA MANUAL REFERENCE
-#
-# This file maps RNA to online URL's for right mouse context menu documentation access
-#
-# To make international, we made a script,
-# pointing the manuals to the proper language,
-# specified in the 'User Preferences Window' by the users
-# Some Languages have their manual page, using a prefix or
-# being preceded by their respective reference, for example
-#
-# manual/ --> manual/ru/
-#
-# The table in the script, contains all of the languages we have in the
-# Blender manual website, for those other languages that still
-# doesn't have a team of translators, and/or don't have a manual for their languages
-# we commented the lines below, you should add them to the language table
-# when they have a proper manual in our Blender manual, or added
-# to the Blender UI translation table
-# The Blender manual uses a list of ISO_639-1 codes to convert languages to manual prefixes
-#
-# URL is the: url_manual_prefix + url_manual_mapping[id]
-
-import bpy
-
-url_manual_prefix = "https://docs.blender.org/manual/en/dev/"
-
-language = ""
-if bpy.context.user_preferences.system.use_international_fonts:
- language = bpy.context.user_preferences.system.language
- if language == 'DEFAULT':
- import os
- language = os.getenv('LANG', '').split('.')[0]
-
-LANG = {
-# "ar_EG": "ar",
-# "bg_BG": "bg",
-# "ca_AD": "ca",
-# "cs_CZ": "cz",
- "de_DE": "de", # German.
-# "el_GR": "el",
- "ru_RU": "ru", # Russian.
-# "sr_RS": "sr",
-# "sv_SE": "sv",
-# "tr_TR": "th",
-# "uk_UA": "uk ",
- "es": "es", # Spanish
-# "fi_FI": "fi",
- "fr_FR": "fr", # French
-# "id_ID": "id",
- "it_IT": "it", # Italian
- "ja_JP": "ja", # Japanese
- "ko_KR": "ko", # Korean
-# "nl_NL": "nl",
-# "pl_PL": "pl",
- "pt_PT": "pt", # Portuguese.
- "pt_BR": "pt", # Portuguese - for until we have a pt_BR version.
- "zh_CN": "zh.cn", # Chinese - Should be changed to "zh_cn" but there is a bug in sphinx-intl.
- "zh_TW": "zh.tw", # Taiwanese Chinese
-}.get(language)
-
-if LANG is not None:
- url_manual_prefix = url_manual_prefix.replace("manual/en", "manual/" + LANG)
-
-# - The first item is a wildcard - typical file system globbing
-# using python module 'fnmatch.fnmatch'
-# - Expressions are evaluated top down (include catch-all expressions last).
-
-url_manual_mapping = (
-
- # *** User Prefs ***
- ("bpy.types.UserPreferences.*", "preferences"),
- ("bpy.types.UserPreferencesView.*", "preferences/interface.html"),
- ("bpy.types.UserPreferencesEdit.*", "preferences/editing.html"),
- ("bpy.types.UserPreferencesInput.*", "preferences/input.html"),
- ("bpy.types.Theme.*", "preferences/themes.html"),
- ("bpy.types.UserPreferencesFilePaths.*", "preferences/file.html"),
- ("bpy.types.UserPreferencesSystem.*", "preferences/system.html"),
- ("bpy.types.UserSolidLight.*", "preferences/system.html"),
- # --- Theme ---
- ("bpy.types.Theme*", "preferences/themes.html"),
- # --- Other ---
- ("bpy.types.Addon*", "preferences/addons.html"),
- ("bpy.types.AddonPreferences.*", "preferences/addons.html#add-on-preferences"),
-
- # *** User Interface ***
- ("bpy.types.Area.*", "interface/window_system/areas.html"),
- ("bpy.types.AreaSpaces.*", "interface/window_system/areas.html"),
- ("bpy.types.ConsoleLine.*", "advanced/command_line"),
- ("bpy.types.Header.*", "interface/window_system/regions.html#header"),
- ("bpy.types.Panel.*", "interface/window_system/tabs_panels.html#panels"),
- ("bpy.types.Region.*", "interface/window_system/regions.html"),
- # ("bpy.types.UILayout.*", ""), # Todo
- # ("bpy.types.UIList.*", ""), # Todo
- ("bpy.types.Menu.*", "interface/controls/buttons/operators_menus.html#menu-buttons"),
- ("bpy.types.UIPieMenu.*", "interface/controls/buttons/operators_menus.html#pie-menus"),
- ("bpy.types.UIPopupMenu.*", "interface/controls/buttons/operators_menus.html#pop-up-menus"),
- ("bpy.types.Window.*", "interface/index.html#window-system"),
- ("bpy.types.WindowManager.*", "interface/index.html#window-system"),
- # --- Spaces ---
- ("bpy.types.SpaceConsole.*", "editors/python_console.html"),
- ("bpy.types.SpaceDopeSheetEditor.*", "editors/dope_sheet"),
- ("bpy.types.SpaceFileBrowser.*", "editors/file_browser/introduction.html"),
- ("bpy.types.SpaceGraphEditor.*", "editors/graph_editor"),
- ("bpy.types.SpaceImageEditor.*", "editors/uv_image"),
- ("bpy.types.SpaceInfo.*", "editors/info"),
- ("bpy.types.SpaceLogicEditor.*", "editors/logic_editor.html"),
- ("bpy.types.SpaceNLA.*", "editors/nla.html"),
- ("bpy.types.SpaceNodeEditor.*", "editors/node_editor"),
- ("bpy.types.SpaceOutliner.*", "editors/outliner.html"),
- ("bpy.types.SpaceProperties.*", "editors/properties_editor.html"),
- ("bpy.types.SpaceSequenceEditor.*", "editors/sequencer"),
- ("bpy.types.SpaceTextEditor.*", "editors/text_editor.html"),
- ("bpy.types.SpaceTimeline.*", "editors/timeline.html"),
- ("bpy.types.SpaceUVEditor.*", "editors/uv_image"),
- ("bpy.types.SpaceUserPreferences.*", "preferences"),
- ("bpy.types.SpaceView3D.show_background_images", "editors/3dview/display/background_images.html"),
- ("bpy.types.SpaceView3D.*", "editors/3dview"), # Catchall
- ("bpy.types.Space.*", "editors"), # Catchall
-
- # *** Modifiers ***
- # --- Intro ---
- ("bpy.types.Modifier.show_*", "modeling/modifiers/introduction.html#the-modifier-stack"),
- ("bpy.types.Modifier.*", "modeling/modifiers"), # Catchall for various generic options
- # --- Modify Modifiers ---
- ("bpy.types.DataTransferModifier.*", "modeling/modifiers/modify/data_transfer.html"),
- ("bpy.types.MeshCacheModifier.*", "modeling/modifiers/modify/mesh_cache.html"),
- ("bpy.types.NormalEditModifier.*", "modeling/modifiers/modify/normal_edit.html"),
- ("bpy.types.UVProjectModifier.*", "modeling/modifiers/modify/uv_project.html"),
- ("bpy.types.UVWarpModifier.*", "modeling/modifiers/modify/uv_warp.html"),
- ("bpy.types.VertexWeightMixModifier.*", "modeling/modifiers/modify/weight_mix.html"),
- ("bpy.types.VertexWeightEditModifier.*", "modeling/modifiers/modify/weight_edit.html"),
- ("bpy.types.VertexWeightProximityModifier.*", "modeling/modifiers/modify/weight_proximity.html"),
- # --- Generate Modifiers ---
- ("bpy.types.ArrayModifier.*", "modeling/modifiers/generate/array.html"),
- ("bpy.types.BevelModifier.*", "modeling/modifiers/generate/bevel.html"),
- ("bpy.types.BooleanModifier.*", "modeling/modifiers/generate/booleans.html"),
- ("bpy.types.BuildModifier.*", "modeling/modifiers/generate/build.html"),
- ("bpy.types.DecimateModifier.*", "modeling/modifiers/generate/decimate.html"),
- ("bpy.types.EdgeSplitModifier.*", "modeling/modifiers/generate/edge_split.html"),
- ("bpy.types.MaskModifier.*", "modeling/modifiers/generate/mask.html"),
- ("bpy.types.MirrorModifier.*", "modeling/modifiers/generate/mirror.html"),
- ("bpy.types.MultiresModifier.*", "modeling/modifiers/generate/multiresolution.html"),
- ("bpy.types.RemeshModifier.*", "modeling/modifiers/generate/remesh.html"),
- ("bpy.types.ScrewModifier.*", "modeling/modifiers/generate/screw.html"),
- ("bpy.types.SkinModifier.*", "modeling/modifiers/generate/skin.html"),
- ("bpy.types.SolidifyModifier.*", "modeling/modifiers/generate/solidify.html"),
- ("bpy.types.SubsurfModifier.*", "modeling/modifiers/generate/subsurf.html"),
- ("bpy.types.TriangulateModifier.*", "modeling/modifiers/generate/triangulate.html"),
- ("bpy.types.WireframeModifier.*", "modeling/modifiers/generate/wireframe.html"),
- # --- Deform Modifiers ---
- ("bpy.types.ArmatureModifier.*", "modeling/modifiers/deform/armature.html"),
- ("bpy.types.CastModifier.*", "modeling/modifiers/deform/cast.html"),
- ("bpy.types.CorrectiveSmoothModifier.*", "modeling/modifiers/deform/corrective_smooth.html"),
- ("bpy.types.CurveModifier.*", "modeling/modifiers/deform/curve.html"),
- ("bpy.types.DisplaceModifier.*", "modeling/modifiers/deform/displace.html"),
- ("bpy.types.HookModifier.*", "modeling/modifiers/deform/hooks.html"),
- ("bpy.types.LaplacianSmoothModifier.*", "modeling/modifiers/deform/laplacian_smooth.html"),
- ("bpy.types.LaplacianDeformModifier.*", "modeling/modifiers/deform/laplacian_deform.html"),
- ("bpy.types.LatticeModifier.*", "modeling/modifiers/deform/lattice.html"),
- ("bpy.types.MeshDeformModifier.*", "modeling/modifiers/deform/mesh_deform.html"),
- ("bpy.types.ShrinkwrapModifier.*", "modeling/modifiers/deform/shrinkwrap.html"),
- ("bpy.types.SimpleDeformModifier.*", "modeling/modifiers/deform/simple_deform.html"),
- ("bpy.types.SmoothModifier.*", "modeling/modifiers/deform/smooth.html"),
- # ("bpy.types.SurfaceModifier.*", "modeling/modifiers/deform/"), # USERS NEVER SEE THIS
- ("bpy.types.WarpModifier.*", "modeling/modifiers/deform/w
@@ Diff output truncated at 10240 characters. @@
More information about the Bf-extensions-cvs
mailing list