Skip to content

Commit a7afbe1

Browse files
committed
refactor: promote adoc section levels
1 parent 71dd9f5 commit a7afbe1

11 files changed

+36
-36
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
== Reference
1+
= Reference
22
:mrdocs:
33
{{>symbol}}

share/mrdocs/addons/generator/asciidoc/partials/enum.adoc.hbs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{{!-- enum --}}
2-
== {{#if symbol.name}}Enum {{symbol.name}}{{else}}Unnamed enum{{/if}}
2+
= {{#if symbol.name}}Enum {{symbol.name}}{{else}}Unnamed enum{{/if}}
33

44
{{symbol.doc.brief}}
55

6-
=== Synopsis
6+
== Synopsis
77

88
[source,cpp,subs="verbatim,macros,-callouts"]
99
----
@@ -13,7 +13,7 @@ enum {{symbol.name}};
1313
{{>source dcl=(primary_location symbol)}}
1414
1515
{{#if symbol.members}}
16-
=== Members
16+
== Members
1717
[,cols=2]
1818
|===
1919
|Name |Description
@@ -24,7 +24,7 @@ enum {{symbol.name}};
2424
{{/if}}
2525
2626
{{#if symbol.doc.description}}
27-
=== Description
27+
== Description
2828
2929
{{symbol.doc.description}}
3030
{{/if}}

share/mrdocs/addons/generator/asciidoc/partials/enumerator.adoc.hbs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{{!-- enumerator --}}
2-
== {{symbol.name}}
2+
= {{symbol.name}}
33

44
{{symbol.doc.brief}}
55

6-
=== Synopsis
6+
== Synopsis
77

88
[source,cpp,subs="verbatim,macros,-callouts"]
99
----
@@ -13,7 +13,7 @@
1313
{{>source dcl=(primary_location symbol)}}
1414
1515
{{#if symbol.doc.description}}
16-
=== Description
16+
== Description
1717
1818
{{symbol.doc.description}}
1919

share/mrdocs/addons/generator/asciidoc/partials/field.adoc.hbs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{{!-- field --}}
2-
== {{symbol.name}}
2+
= {{symbol.name}}
33

44
{{symbol.doc.brief}}
55

6-
=== Synopsis
6+
== Synopsis
77

88
[source,cpp,subs="verbatim,macros,-callouts"]
99
----
@@ -18,7 +18,7 @@
1818
{{>source dcl=(primary_location symbol)}}
1919
2020
{{#if symbol.doc.description}}
21-
=== Description
21+
== Description
2222
2323
{{symbol.doc.description}}
2424

share/mrdocs/addons/generator/asciidoc/partials/friend.adoc.hbs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{{!-- friend --}}
2-
== Friend {{#if symbol.symbol}}{{symbol.symbol.name}}{{else}}{{symbol.type.name}}{{/if}}
2+
= Friend {{#if symbol.symbol}}{{symbol.symbol.name}}{{else}}{{symbol.type.name}}{{/if}}
33

44
{{symbol.doc.brief}}
55

6-
=== Synopsis
6+
== Synopsis
77

88
{{#if symbol.type~}}
99
[source,cpp,subs="verbatim,macros,-callouts"]
@@ -19,7 +19,7 @@ friend {{>declarator symbol.type}};
1919
{{>source dcl=(primary_location symbol)}}
2020
2121
{{#if symbol.doc.description}}
22-
=== Description
22+
== Description
2323
2424
{{symbol.doc.description}}
2525

share/mrdocs/addons/generator/asciidoc/partials/function.adoc.hbs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
{{!-- function --}}
2-
== {{symbol.name}}
2+
= {{symbol.name}}
33

44
{{symbol.doc.brief}}
55

6-
=== Synopsis
6+
== Synopsis
77

88
{{>function-decl symbol isFriend=false}}
99

1010
{{>source dcl=(primary_location symbol)}}
1111

1212
{{#if symbol.doc.description}}
13-
=== Description
13+
== Description
1414

1515
{{symbol.doc.description}}
1616

share/mrdocs/addons/generator/asciidoc/partials/namespace.adoc.hbs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{!-- namespace --}}
2-
== {{#if symbol.name}}Namespace {{symbol.name}}{{else if symbol.parent}}Unnamed namespace{{else}}Global namespace{{/if}}
2+
= {{#if symbol.name}}Namespace {{symbol.name}}{{else if symbol.parent}}Unnamed namespace{{else}}Global namespace{{/if}}
33

44
[,cols=2]
55
|===

share/mrdocs/addons/generator/asciidoc/partials/record.adoc.hbs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{{!-- record --}}
2-
== {{#if symbol.name}}Class {{symbol.name}}{{else}}Unnamed class{{/if}}
2+
= {{#if symbol.name}}Class {{symbol.name}}{{else}}Unnamed class{{/if}}
33

44
{{symbol.doc.brief}}
55

6-
=== Synopsis
6+
== Synopsis
77

88
{{>record-decl symbol isFriend=false}}
99

@@ -16,7 +16,7 @@
1616
{{/with}}
1717

1818
{{#if symbol.doc.description}}
19-
=== Description
19+
== Description
2020

2121
{{symbol.doc.description}}
2222

Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
11
{{#if tranche.records}}
2-
==={{label}} Types
2+
=={{label}} Types
33
{{>info-list tranche.records}}
44
{{/if}}
55
{{#if tranche.types}}
66
{{#if label}}
7-
==={{label}} Types
7+
=={{label}} Types
88
{{else}}
9-
=== Types
9+
== Types
1010
{{/if}}
1111
{{>info-list tranche.types}}
1212
{{/if}}
1313
{{#if tranche.functions}}
14-
==={{label}} Member Functions
14+
=={{label}} Member Functions
1515
{{>info-list tranche.functions}}
1616
{{/if}}
1717
{{#if tranche.enums}}
18-
==={{label}} Enums
18+
=={{label}} Enums
1919
{{>info-list tranche.enums}}
2020
{{/if}}
2121
{{#if tranche.fields}}
22-
==={{label}} Data Members
22+
=={{label}} Data Members
2323
{{>info-list tranche.fields}}
2424
{{/if}}
2525
{{#if tranche.staticfunctions}}
26-
==={{label}} Static Member Functions
26+
=={{label}} Static Member Functions
2727
{{>info-list tranche.staticfunctions}}
2828
{{/if}}
2929
{{#if tranche.staticdata}}
30-
==={{label}} Static Data Members
30+
=={{label}} Static Data Members
3131
{{>info-list tranche.staticdata}}
3232
{{/if}}
3333
{{#if tranche.friends}}
34-
==={{label}} Friends
34+
=={{label}} Friends
3535
{{>info-list tranche.friends}}
3636
{{/if}}

share/mrdocs/addons/generator/asciidoc/partials/typedef.adoc.hbs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{{!-- typedef --}}
2-
== {{symbol.name}}
2+
= {{symbol.name}}
33

44
{{symbol.doc.brief}}
55

6-
=== Synopsis
6+
== Synopsis
77

88
[source,cpp,subs="verbatim,macros,-callouts"]
99
----
@@ -20,7 +20,7 @@
2020
{{>source dcl=(primary_location symbol)}}
2121
2222
{{#if symbol.doc.description}}
23-
=== Description
23+
== Description
2424
2525
{{symbol.doc.description}}
2626

share/mrdocs/addons/generator/asciidoc/partials/variable.adoc.hbs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{{!-- variable --}}
2-
== {{symbol.name}}
2+
= {{symbol.name}}
33

44
{{symbol.doc.brief}}
55

6-
=== Synopsis
6+
== Synopsis
77

88
[source,cpp,subs="verbatim,macros,-callouts"]
99
----
@@ -28,7 +28,7 @@
2828
{{>source dcl=(primary_location symbol)}}
2929
3030
{{#if symbol.doc.description}}
31-
=== Description
31+
== Description
3232
3333
{{symbol.doc.description}}
3434

0 commit comments

Comments
 (0)