Skip to content

Commit 50964cf

Browse files
committed
spellign
1 parent 687a7e4 commit 50964cf

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed
File renamed without changes.

docs/wiki

Submodule wiki updated from b14a1f3 to 2db9c5b

docs/xml2md.py

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,20 @@ def symbol_from_member(member):
121121
def summary_from_member(member):
122122
return member[0].text.strip()
123123

124+
125+
def write_types_list(types_dict, location):
126+
with open(location, 'w') as f:
127+
writer = mg.Writer(f)
128+
for type_name in types_dict:
129+
member = types_dict[type_name].type_member
130+
full_name = symbol_from_member(member)
131+
writer.write_heading(inline_code(f"[[{full_name}|{type_name}]]"), 4)
132+
writer.writeline(summary_from_member(member))
133+
134+
writer.writeline(mg.emphasis(
135+
"Note: This file was automatically generated"))
136+
137+
124138
if __name__ == "__main__":
125139
filepath = sys.argv[1]
126140
tree = ET.parse(filepath)
@@ -155,7 +169,9 @@ def summary_from_member(member):
155169
associated_class = symbol_path[1]
156170
if associated_class in types_dict:
157171
types_dict[associated_class].add_child(symbol_type, child)
172+
173+
write_types_list(types_dict, "wiki/Generated/Classes.md")
158174

159-
for type_doc in types_dict:
160-
types_dict[type_doc].to_md("wiki/Generated")
175+
for type_name in types_dict:
176+
types_dict[type_name].to_md("wiki/Generated")
161177

0 commit comments

Comments
 (0)