MCPcopy Index your code
hub / github.com/numpy/numpy / doxy_gen

Function doxy_gen

doc/preprocess.py:9–22  ·  view source on GitHub ↗

Generate Doxygen configuration file.

(root_path)

Source from the content-addressed store, hash-verified

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

Callers 1

mainFunction · 0.85

Calls 5

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

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…