Skip to content

Commit 79e96b5

Browse files
committed
Docs: Show the paths to the files used to generate the Doxygen output
1 parent e0faa5c commit 79e96b5

File tree

3 files changed

+23
-26
lines changed

3 files changed

+23
-26
lines changed

docs/doxygen/Doxyfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ INLINE_INHERITED_MEMB = NO
168168
# shortest path that makes the file name unique will be used
169169
# The default value is: YES.
170170

171-
FULL_PATH_NAMES = NO
171+
FULL_PATH_NAMES = YES
172172

173173
# The STRIP_FROM_PATH tag can be used to strip a user-defined part of the path.
174174
# Stripping is only done if one of the specified strings matches the left-hand
@@ -180,7 +180,7 @@ FULL_PATH_NAMES = NO
180180
# will be relative from the directory where Doxygen is started.
181181
# This tag requires that the tag FULL_PATH_NAMES is set to YES.
182182

183-
STRIP_FROM_PATH =
183+
STRIP_FROM_PATH = ../../modules
184184

185185
# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of the
186186
# path mentioned in the documentation of a class, which tells the reader which
@@ -709,7 +709,7 @@ FORCE_LOCAL_INCLUDES = NO
709709
# documentation for inline members.
710710
# The default value is: YES.
711711

712-
INLINE_INFO = NO
712+
INLINE_INFO = YES
713713

714714
# If the SORT_MEMBER_DOCS tag is set to YES then Doxygen will sort the
715715
# (detailed) documentation of file and class members alphabetically by member
@@ -812,7 +812,7 @@ MAX_INITIALIZER_LINES = 32
812812
# list will mention the files that were used to generate the documentation.
813813
# The default value is: YES.
814814

815-
SHOW_USED_FILES = NO
815+
SHOW_USED_FILES = YES
816816

817817
# Set the SHOW_FILES tag to NO to disable the generation of the Files page. This
818818
# will remove the Files entry from the Quick Index and from the Folder Tree View
@@ -2891,7 +2891,7 @@ PLANTUMLFILE_DIRS =
28912891
# Minimum value: 0, maximum value: 10000, default value: 50.
28922892
# This tag requires that the tag HAVE_DOT is set to YES.
28932893

2894-
DOT_GRAPH_MAX_NODES = 50
2894+
DOT_GRAPH_MAX_NODES = 65
28952895

28962896
# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the graphs
28972897
# generated by dot. A depth value of 3 means that only nodes reachable from the

docs/doxygen/DoxygenLayout.xml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
<class>
5050
<briefdescription visible="no"/>
5151
<detaileddescription visible="yes" title=""/>
52+
<usedfiles visible="$SHOW_USED_FILES"/>
5253
<includes visible="$SHOW_HEADERFILE"/>
5354
<inheritancegraph visible="yes"/>
5455
<collaborationgraph visible="yes"/>
@@ -100,13 +101,13 @@
100101
<events visible="yes" title=""/>
101102
</memberdef>
102103
<allmemberslink visible="yes"/>
103-
<usedfiles visible="$SHOW_USED_FILES"/>
104104
<authorsection visible="yes"/>
105105
</class>
106106

107107
<!-- Layout definition for a namespace page -->
108108
<namespace>
109-
<briefdescription visible="yes"/>
109+
<briefdescription visible="no"/>
110+
<detaileddescription visible="yes" title=""/>
110111
<memberdecl>
111112
<nestednamespaces visible="yes" title=""/>
112113
<constantgroups visible="yes" title=""/>
@@ -124,7 +125,6 @@
124125
<properties visible="yes" title=""/>
125126
<membergroups visible="yes"/>
126127
</memberdecl>
127-
<detaileddescription visible="yes" title=""/>
128128
<memberdef>
129129
<inlineclasses visible="yes" title=""/>
130130
<typedefs visible="yes" title=""/>
@@ -140,16 +140,17 @@
140140

141141
<!-- Layout definition for a concept page -->
142142
<concept>
143-
<briefdescription visible="yes"/>
143+
<briefdescription visible="no"/>
144+
<detaileddescription visible="yes" title=""/>
144145
<includes visible="$SHOW_HEADERFILE"/>
145146
<definition visible="yes" title=""/>
146-
<detaileddescription visible="yes" title=""/>
147147
<authorsection visible="yes"/>
148148
</concept>
149149

150150
<!-- Layout definition for a file page -->
151151
<file>
152-
<briefdescription visible="yes"/>
152+
<briefdescription visible="no"/>
153+
<detaileddescription visible="yes" title=""/>
153154
<includes visible="$SHOW_INCLUDE_FILES"/>
154155
<includegraph visible="yes"/>
155156
<includedbygraph visible="yes"/>
@@ -172,7 +173,6 @@
172173
<properties visible="yes" title=""/>
173174
<membergroups visible="yes"/>
174175
</memberdecl>
175-
<detaileddescription visible="yes" title=""/>
176176
<memberdef>
177177
<inlineclasses visible="yes" title=""/>
178178
<defines visible="yes" title=""/>
@@ -189,7 +189,8 @@
189189

190190
<!-- Layout definition for a group page -->
191191
<group>
192-
<briefdescription visible="yes"/>
192+
<briefdescription visible="no"/>
193+
<detaileddescription visible="yes" title=""/>
193194
<groupgraph visible="yes"/>
194195
<memberdecl>
195196
<nestedgroups visible="yes" title=""/>
@@ -216,7 +217,6 @@
216217
<friends visible="yes" title=""/>
217218
<membergroups visible="yes"/>
218219
</memberdecl>
219-
<detaileddescription visible="yes" title=""/>
220220
<memberdef>
221221
<pagedocs/>
222222
<inlineclasses visible="yes" title=""/>
@@ -241,7 +241,8 @@
241241

242242
<!-- Layout definition for a C++20 module page -->
243243
<module>
244-
<briefdescription visible="yes"/>
244+
<briefdescription visible="no"/>
245+
<detaileddescription visible="yes" title=""/>
245246
<exportedmodules visible="yes"/>
246247
<memberdecl>
247248
<concepts visible="yes" title=""/>
@@ -252,20 +253,19 @@
252253
<variables visible="yes" title=""/>
253254
<membergroups visible="yes" title=""/>
254255
</memberdecl>
255-
<detaileddescription visible="yes" title=""/>
256256
<memberdecl>
257257
<files visible="yes"/>
258258
</memberdecl>
259259
</module>
260260

261261
<!-- Layout definition for a directory page -->
262262
<directory>
263-
<briefdescription visible="yes"/>
263+
<briefdescription visible="no"/>
264+
<detaileddescription visible="yes" title=""/>
264265
<directorygraph visible="yes"/>
265266
<memberdecl>
266267
<dirs visible="yes"/>
267268
<files visible="yes"/>
268269
</memberdecl>
269-
<detaileddescription visible="yes" title=""/>
270270
</directory>
271271
</doxygenlayout>

docs/doxygen/build.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66
from xml.etree.ElementTree import Element
77
import re
88

9-
MODULES_DIR = Path('../../modules')
10-
assert MODULES_DIR.is_dir()
11-
ABS_MODULES_DIR = MODULES_DIR.resolve()
12-
139
def get_module_description(module_header: Path) -> str:
1410
with open(module_header, 'r') as f:
1511
content = f.read()
@@ -29,8 +25,7 @@ def createContentDict() -> dict:
2925
}
3026

3127
def getContentObjectFromPath(root_object: dict, location: str) -> dict:
32-
path_in_modules = Path(location).relative_to(ABS_MODULES_DIR)
33-
path_components = path_in_modules.parts
28+
path_components = Path(location).parts
3429
contents = root_object[path_components[0]]
3530
for path_component in path_components[1:-1]:
3631
if not (path_component in contents['dirs']):
@@ -128,9 +123,11 @@ def write_module_html_recursive(parent: Element, data: dict):
128123
subprocess.run("doxygen", shell=True, check=True)
129124

130125
print('--- Parsing module headers')
126+
modules_dir = Path('../../modules')
127+
assert modules_dir.is_dir()
131128
modules = {}
132-
for module_name in os.listdir(MODULES_DIR):
133-
module_dir = MODULES_DIR / module_name
129+
for module_name in os.listdir(modules_dir):
130+
module_dir = modules_dir / module_name
134131
if not module_dir.is_dir():
135132
continue
136133
module_header = module_dir / f'{module_name}.h'

0 commit comments

Comments
 (0)