@@ -10,9 +10,9 @@ A custom string to use as the heading of the root object (i.e. the object specif
1010WARNING: ** Not advised to be used as a global configuration option.** This option is not advised to be used as a global configuration option, as it will override the default heading for all objects. It is recommended to use it only in specific cases where you want to override the heading for a specific object.
1111
1212``` md title="in docs/some_page.md (local configuration)"
13- ::: path.to.module
13+ ::: src/hello.h
1414 options:
15- heading: "My fancy module "
15+ heading: "My fancy code "
1616```
1717
1818[ ] ( ) { #option-heading_level }
@@ -39,37 +39,11 @@ plugins:
3939` ` `
4040
4141` ` ` md title="or in docs/some_page.md (local configuration)"
42- :: : path.to.module
42+ :: : src/hello.h
4343 options :
4444 heading_level : 3
4545` ` `
4646
47- /// admonition | Preview
48- type: preview
49-
50- //// tab | With level 3 and root heading
51- <h3><code>module</code> (3)</h3>
52- <p>Docstring of the module.</p>
53- <h4><code>ClassA</code> (4)</h4>
54- <p>Docstring of class A.</p>
55- <h4><code>ClassB</code> (4)</h4>
56- <p>Docstring of class B.</p>
57- <h5><code>method_1</code> (5)</h5>
58- <p>Docstring of the method.</p>
59- ////
60-
61- //// tab | With level 3, without root heading
62- <p>Docstring of the module.</p>
63- <h3><code>ClassA</code> (3)</h3>
64- <p>Docstring of class A.</p>
65- <h3><code>ClassB</code> (3)</h3>
66- <p>Docstring of class B.</p>
67- <h4><code>method_1</code> (4)</h4>
68- <p>Docstring of the method.</p>
69- ////
70- ///
71-
72-
7347[](){ #option-show_symbol_type_heading }
7448## ` show_symbol_type_heading`
7549
@@ -78,11 +52,10 @@ plugins:
7852Show the symbol type in headings.
7953
8054This option will prefix headings with
81- <code class="doc-symbol doc-symbol-attribute"></code>,
82- <code class="doc-symbol doc-symbol-function"></code>,
83- <code class="doc-symbol doc-symbol-method"></code>,
84- <code class="doc-symbol doc-symbol-class"></code> or
85- <code class="doc-symbol doc-symbol-module"></code> types.
55+ <code class="doc-symbol doc-symbol-c-function"></code>,
56+ <code class="doc-symbol doc-symbol-c-var"></code>,
57+ <code class="doc-symbol doc-symbol-c-macro"></code> or
58+ <code class="doc-symbol doc-symbol-c-typedef"></code> types.
8659See also [`show_symbol_type_toc`][show_symbol_type_toc].
8760
8861To customize symbols, see [Customizing symbol types](../customization.md/#symbol-types).
@@ -97,7 +70,7 @@ plugins:
9770` ` `
9871
9972` ` ` md title="or in docs/some_page.md (local configuration)"
100- ::: package.module
73+ ::: src/hello.h
10174 options:
10275 show_symbol_type_heading: false
10376` ` `
@@ -106,29 +79,17 @@ plugins:
10679 type : preview
10780
10881//// tab | With symbol type in headings
109- <h1><code class="doc-symbol doc-symbol-module"></code> <code>module</code></h1>
110- <p>Docstring of the module.</p>
111- <h2><code class="doc-symbol doc-symbol-attribute"></code> <code>attribute</code></h2>
112- <p>Docstring of the module attribute.</p>
113- <h2><code class="doc-symbol doc-symbol-function"></code> <code>function</code></h2>
114- <p>Docstring of the function.</p>
115- <h2><code class="doc-symbol doc-symbol-class"></code> <code>Class</code></h2>
116- <p>Docstring of the class.</p>
117- <h3><code class="doc-symbol doc-symbol-method"></code> <code>method</code></h3>
118- <p>Docstring of the method.</p>
82+ <h2><code class="doc-symbol doc-symbol-c-function"></code> <code>function</code></h2><p>Docstring of the function.</p>
83+ <h2><code class="doc-symbol doc-symbol-c-var"></code> <code>var</code></h2><p>Docstring of the var.</p>
84+ <h2><code class="doc-symbol doc-symbol-c-macro"></code> <code>macro</code></h2><p>Docstring of the macro.</p>
85+ <h2><code class="doc-symbol doc-symbol-c-typedef"></code> <code>typedef</code></h2><p>Docstring of the typedef.</p>
11986////
12087
12188//// tab | Without symbol type in headings
122- <h1><code>module</code></h1>
123- <p>Docstring of the module.</p>
124- <h2><code>attribute</code></h2>
125- <p>Docstring of the module attribute.</p>
126- <h2><code>function</code></h2>
127- <p>Docstring of the function.</p>
128- <h2><code>Class</code></h2>
129- <p>Docstring of the class.</p>
130- <h3><code>method</code></h3>
131- <p>Docstring of the method.</p>
89+ <h2><code>function</code></h2><p>Docstring of the function.</p>
90+ <h2><code>var</code></h2><p>Docstring of the var.</p>
91+ <h2><code>macro</code></h2><p>Docstring of the macro.</p>
92+ <h2><code>typedef</code></h2><p>Docstring of the typedef.</p>
13293////
13394///
13495
@@ -140,11 +101,10 @@ plugins:
140101Show the symbol type in the Table of Contents.
141102
142103This option will prefix items in the ToC with
143- <code class="doc-symbol doc-symbol-attribute"></code>,
144- <code class="doc-symbol doc-symbol-function"></code>,
145- <code class="doc-symbol doc-symbol-method"></code>,
146- <code class="doc-symbol doc-symbol-class"></code> or
147- <code class="doc-symbol doc-symbol-module"></code> types.
104+ <code class="doc-symbol doc-symbol-c-function"></code>,
105+ <code class="doc-symbol doc-symbol-c-var"></code>,
106+ <code class="doc-symbol doc-symbol-c-macro"></code> or
107+ <code class="doc-symbol doc-symbol-c-typedef"></code> types.
148108See also [`show_symbol_type_heading`][show_symbol_type_heading].
149109
150110To customize symbols, see [Customizing symbol types](../customization.md/#symbol-types).
@@ -159,7 +119,7 @@ plugins:
159119` ` `
160120
161121` ` ` md title="or in docs/some_page.md (local configuration)"
162- ::: package.module
122+ ::: src/hello.h
163123 options:
164124 show_symbol_type_toc: false
165125` ` `
@@ -169,27 +129,19 @@ plugins:
169129
170130//// tab | With symbol type in ToC
171131<ul style="list-style : none;">
172- <li><code class="doc-symbol doc-symbol-module"></code> module</li>
173- <li><code class="doc-symbol doc-symbol-attribute"></code> attribute</li>
174- <li><code class="doc-symbol doc-symbol-function"></code> function</li>
175- <li><code class="doc-symbol doc-symbol-class"></code> Class
176- <ul style="list-style : none;">
177- <li><code class="doc-symbol doc-symbol-method"></code> method</li>
178- </ul>
179- </li>
132+ <li><code class="doc-symbol doc-symbol-c-function"></code> function</li>
133+ <li><code class="doc-symbol doc-symbol-c-var"></code> var</li>
134+ <li><code class="doc-symbol doc-symbol-c-macro"></code> macro</li>
135+ <li><code class="doc-symbol doc-symbol-c-typedef"></code> typedef</li>
180136</ul>
181137////
182138
183139//// tab | Without symbol type in ToC
184140<ul style="list-style : none;">
185- <li>module</li>
186- <li>attribute</li>
187141 <li>function</li>
188- <li>Class
189- <ul style="list-style : none;">
190- <li>method</li>
191- </ul>
192- </li>
142+ <li>var</li>
143+ <li>macro</li>
144+ <li>typedef</li>
193145</ul>
194146////
195147///
@@ -206,7 +158,7 @@ WARNING: **Not advised to be used as a global configuration option.** This optio
206158NOTE : **Use with/without `heading`.** If you use this option without specifying a custom `heading`, the default heading will be used in the page, but the label in the Table of Contents will be the one you specified. By providing both an option for `heading` and `toc_label`, we leave the customization entirely up to you.
207159
208160` ` ` md title="in docs/some_page.md (local configuration)"
209- ::: path.to.module
161+ ::: src/hello.h
210162 options:
211163 heading: "My fancy module"
212164 toc_label: "My fancy module"
0 commit comments