MCPcopy Index your code
hub / github.com/ipython/ipython / write_doc

Function write_doc

docs/autogen_config.py:101–111  ·  view source on GitHub ↗
(name, title, app, preamble=None)

Source from the content-addressed store, hash-verified

99 return res
100
101def write_doc(name, title, app, preamble=None):
102 trait_aliases = reverse_aliases(app)
103 filename = options / (name + ".rst")
104 with open(filename, "w", encoding="utf-8") as f:
105 f.write("\n")
106 if preamble is not None:
107 f.write(preamble + '\n\n')
108
109 for c in app._classes_inc_parents():
110 f.write(class_config_rst_doc(c, trait_aliases))
111 f.write('\n')
112
113
114if __name__ == '__main__':

Callers 1

autogen_config.pyFile · 0.85

Calls 3

reverse_aliasesFunction · 0.85
class_config_rst_docFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…