Global APIs
-
% for api in global_apis:
<% global_name = re.sub(r"Global\.?", "", api.name) %>
- ${global_name} % endfor
Modules
-
% for m in modules:
- ${m.name} % endfor
% # This index.html is mostly for developers who generate the apidocs and want a module index. # Not used for production. def sort_by_name(items): return sorted(items, key=lambda item: item.name) global_apis = [] modules = [] import re for item in data.values(): if item.name == "Global": for m in item.methods: global_apis.append(m) for p in item.properties: global_apis.append(p) elif item.name.startswith("Global"): global_apis.append(item) elif item.typestr == "module": modules.append(item) global_apis = sort_by_name(global_apis) modules = sort_by_name(modules) %>