diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-12-25 18:50:53 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-12-25 18:50:53 +0300 |
commit | 693d9fd7714c6f61bbdcc046d5e52eedaca4272a (patch) | |
tree | 18d5be14fe19081199bb9801c228360a6b7b66de /release/scripts/op | |
parent | 4c5a314fef8cb15f1a5990180cf5025597afdd01 (diff) |
sphinx rna api documentation generator to replace epydocs
- view docs menu item opens sphinx URL
- can be searched (even when local)
- uses rna_info module for introspection
- also documents python defined functions and decorator properties (defined in bpy_types.py)
- experemental python file:line references for python operators.
Diffstat (limited to 'release/scripts/op')
-rw-r--r-- | release/scripts/op/wm.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/release/scripts/op/wm.py b/release/scripts/op/wm.py index c0a61017156..ef7386049c3 100644 --- a/release/scripts/op/wm.py +++ b/release/scripts/op/wm.py @@ -304,18 +304,18 @@ class WM_OT_doc_view(bpy.types.Operator): def execute(self, context): id_split = self.properties.doc_id.split('.') if len(id_split) == 1: # rna, class - url = '%s/bpy.types.%s-class.html' % (self._prefix, id_split[0]) + url = '%s/bpy.types.%s.html' % (self._prefix, id_split[0]) elif len(id_split) == 2: # rna, class.prop class_name, class_prop = id_split if hasattr(bpy.types, class_name.upper() + '_OT_' + class_prop): - url = '%s/bpy.ops.%s-module.html#%s' % \ - (self._prefix, class_name, class_prop) + url = '%s/bpy.ops.%s.html#bpy.ops.%s.%s' % \ + (self._prefix, class_name, class_name, class_prop) else: - # It so happens that epydoc nests these - class_name_full = self._nested_class_string(class_name) - url = '%s/bpy.types.%s-class.html#%s' % \ - (self._prefix, class_name_full, class_prop) + # It so happens that epydoc nests these, not sphinx + # class_name_full = self._nested_class_string(class_name) + url = '%s/bpy.types.%s.html#bpy.types.%s.%s' % \ + (self._prefix, class_name, class_name, class_prop) else: return {'PASS_THROUGH'} |