MCPcopy Create free account
hub / github.com/numpy/numpy / doxy_gen

Function doxy_gen

doc/preprocess.py:10–23  ·  view source on GitHub ↗

Generate Doxygen configuration file.

(root_path)

Source from the content-addressed store, hash-verified

8 doxy_gen(os.path.abspath(os.path.join('..')))
9
10def doxy_gen(root_path):
11 """
12 Generate Doxygen configuration file.
13 """
14 confs = doxy_config(root_path)
15 build_path = os.path.join(root_path, "doc", "build", "doxygen")
16 gen_path = os.path.join(build_path, "Doxyfile")
17 if not os.path.exists(build_path):
18 os.makedirs(build_path)
19 with open(gen_path, 'w') as fd:
20 fd.write("#Please Don't Edit! This config file was autogenerated by ")
21 fd.write(f"doxy_gen({root_path}) in doc/preprocess.py.\n")
22 for c in confs:
23 fd.write(c)
24
25class DoxyTpl(Template):
26 delimiter = '@'

Callers 1

mainFunction · 0.85

Calls 5

doxy_configFunction · 0.85
openFunction · 0.85
joinMethod · 0.45
existsMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected