File tree 2 files changed +312
-8
lines changed
2 files changed +312
-8
lines changed Original file line number Diff line number Diff line change 32
32
"exhale" ,
33
33
"sphinx_rtd_theme" ,
34
34
"sphinx.ext.todo" ,
35
+ "sphinx.ext.extlinks" ,
35
36
]
36
37
37
38
# Add any paths that contain templates here, relative to this directory.
59
60
breathe_projects = {"reactor-cpp" : "../doxygen/xml" }
60
61
breathe_default_project = "reactor-cpp"
61
62
63
+
64
+ def specificationsForKind (kind ):
65
+ '''
66
+ For a given input ``kind``, return the list of reStructuredText
67
+ specifications for the associated Breathe directive.
68
+ '''
69
+ # Change the defaults for .. doxygenclass:: and .. doxygenstruct::
70
+ if kind == "class" or kind == "struct" :
71
+ return [
72
+ ":members:" ,
73
+ ":protected-members:" ,
74
+ ":private-members:" ,
75
+ ":undoc-members:"
76
+ ]
77
+ # An empty list signals to Exhale to use the defaults
78
+ else :
79
+ return []
80
+
81
+
62
82
# Exhale Configuration
83
+ from exhale import utils
63
84
exhale_args = {
64
85
# These arguments are required
65
86
"containmentFolder" : "./api" ,
68
89
"doxygenStripFromPath" : ".." ,
69
90
# Suggested optional arguments
70
91
"createTreeView" : True ,
92
+ # override breathe defaults
93
+ "customSpecificationsMapping" : utils .makeCustomSpecificationsMapping (
94
+ specificationsForKind ),
71
95
}
72
96
73
97
# Tell sphinx what the primary language being documented is.
88
112
89
113
# show todo notes
90
114
todo_include_todos = True
115
+
116
+ # configure external links
117
+ extlinks = {
118
+ 'std-memory' : ('https://en.cppreference.com/w/cpp/memory/%s' , 'std::' ),
119
+ }
You can’t perform that action at this time.
0 commit comments