Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

documentation: order methods alphabetically to avoid duplicateds in i…

…ndexes. Closes #35 Closes #26 Closes #13
  • Loading branch information...
commit c93dc6d8e61e3224a81f5a6072a87f3f02639d51 1 parent edd385e
@arturoc arturoc authored
Showing with 11 additions and 0 deletions.
  1. +1 −0  _tools/documentation_method.py
  2. +10 −0 _tools/markdown_file.py
View
1  _tools/documentation_method.py
@@ -3,6 +3,7 @@ def __init__(self,functionid):
self.id = functionid
self.new = 0
self.name = ""
+ self.clazz = ""
self.description = ""
self.returns = ""
self.returns_description = ""
View
10 _tools/markdown_file.py
@@ -99,6 +99,8 @@ def getfunctionsfile(filename):
state = 'description'
elif state == 'description' and line.find('<!----------------------------------------------------------------------------->')==-1 and line!='\n':
function.description = function.description + line
+
+ functionsfile.function_list.sort(key=lambda function: function.name)
return functionsfile
def getclass_list():
@@ -116,6 +118,12 @@ def getclass_list():
f.close()
break
return class_list
+
+def sort_function(function):
+ if (function.name==function.clazz) or (function.name == "~" + function.clazz):
+ return "0"
+ else:
+ return function.name
def getclass(clazz):
var = DocsVar(0)
@@ -203,9 +211,11 @@ def getclass(clazz):
if state == 'vardescription':
documentation_clazz.var_list.append(var)
f.close()
+ documentation_clazz.function_list.sort(key= sort_function)
return documentation_clazz
+ documentation_clazz.function_list.sort(key= sort_function)
return documentation_clazz
Please sign in to comment.
Something went wrong with that request. Please try again.