From b278279c95c9396432a66ef50499e45389e9ec18 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 17 Aug 2010 14:32:14 +0000 Subject: document rna functions that have the no_self flag set as classmethods --- source/blender/python/doc/sphinx_doc_gen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/python/doc/sphinx_doc_gen.py') diff --git a/source/blender/python/doc/sphinx_doc_gen.py b/source/blender/python/doc/sphinx_doc_gen.py index 3beb17f194e..06d1a9021b8 100644 --- a/source/blender/python/doc/sphinx_doc_gen.py +++ b/source/blender/python/doc/sphinx_doc_gen.py @@ -594,7 +594,7 @@ def rna2sphinx(BASEPATH): for func in struct.functions: args_str = ", ".join([prop.get_arg_default(force=False) for prop in func.args]) - fw(" .. method:: %s(%s)\n\n" % (func.identifier, args_str)) + fw(" .. %s:: %s(%s)\n\n" % ("classmethod" if func.is_classmethod else "method", func.identifier, args_str)) fw(" %s\n\n" % func.description) for prop in func.args: -- cgit v1.2.3