Skip to content

Commit 561f213

Browse files
authored
fix: HTML matches Asciidoc templates
1 parent 590b317 commit 561f213

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+732
-336
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{{#if relfileprefix}}<meta name="relfileprefix" content="{{relfileprefix}}">{{/if}}
2+
<div id="{{#if (is_multipage)}}{{symbol.id}}{{else}}{{symbol.ref}}{{/if}}">
3+
4+
<h1>{{#if symbol.name}}Overload set {{>nested-name-specifier symbol=symbol.parent}}{{symbol.name}}{{else}}Unnamed overload set{{/if}}</h1>
5+
6+
<h2>Members</h2>
7+
8+
{{#each symbol.members as |member|}}
9+
10+
<p>{{member.doc.brief}}</p>
11+
12+
<pre><code class="language-cpp">{{> (concat 'signature' '/' (lookup member 'kind')) symbol=member}};</code></pre>
13+
<a href="{{ref}}"><em>» more...</em></a>
14+
15+
{{/each}}
16+
17+
</div>
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
{{#with symbol}}
2-
{{> (lookup . 'kind') symbol=.}}
3-
{{/with}}
1+
{{#if relfileprefix}}:relfileprefix: {{relfileprefix}}{{/if}}
2+
[#{{#if (is_multipage)}}{{symbol.id}}{{else}}{{symbol.ref}}{{/if}}]
3+
4+
{{> (concat 'symbols' '/' (lookup symbol 'kind')) symbol=symbol}}
Lines changed: 13 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,15 @@
1-
{{#if (eq kind "lvalue-reference")~}}
2-
{{#if (or (eq pointee-type.kind "array") (eq pointee-type.kind "function"))~}}){{~/if~}}
3-
{{~>declarator-after pointee-type~}}
4-
{{~else if (eq kind "rvalue-reference")~}}
5-
{{#if (or (eq pointee-type.kind "array") (eq pointee-type.kind "function"))~}}){{~/if~}}
6-
{{~>declarator-after pointee-type~}}
7-
{{~else if (eq kind "pointer")~}}
8-
{{#if (or (eq pointee-type.kind "array") (eq pointee-type.kind "function"))~}}){{~/if~}}
9-
{{~>declarator-after pointee-type~}}
10-
{{~else if (eq kind "member-pointer")~}}
11-
{{#if (or (eq pointee-type.kind "array") (eq pointee-type.kind "function"))~}}){{~/if~}}
12-
{{~>declarator-after pointee-type~}}
13-
{{~else if (eq kind "array")~}}
1+
{{#if pointee-type~}}
2+
{{#if (or (eq pointee-type.kind "array") (eq pointee-type.kind "function"))}}){{/if~}}
3+
{{~>declarator-after pointee-type nolink=nolink~}}
4+
{{else if (eq kind "array")~}}
145
[{{bounds-value}}]
15-
{{~>declarator-after element-type~}}
16-
{{~else if (eq kind "function")~}}
17-
({{~#each param-types~}}
18-
{{~>declarator decl-name="" decl-name-targs=""~}}{{~#unless @last}}, {{/unless~}}
19-
{{~/each~}})
6+
{{~>declarator-after element-type nolink=nolink~}}
7+
{{else if (eq kind "function")~}}
8+
({{#each param-types~}}
9+
{{~>declarator nolink=../nolink~}}{{~#unless @last}}, {{/unless~}}
10+
{{/each~}})
2011
{{~#if cv-qualifiers}} {{cv-qualifiers}}{{/if~}}
21-
{{~#if (eq ref-qualifier "lvalue")}} &{{else if (eq ref-qualifier "rvalue")}} &&{{/if~}}
22-
{{~#if exception-spec}} {{exception-spec}}{{~/if~}}
23-
{{~>declarator-after return-type~}}
24-
{{/if}}
12+
{{#if (eq ref-qualifier "lvalue")}} &{{else if (eq ref-qualifier "rvalue")}} &&{{/if~}}
13+
{{#if exception-spec}} {{exception-spec}}{{/if~}}
14+
{{~>declarator-after return-type nolink=nolink~}}
15+
{{/if}}
Lines changed: 15 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,16 @@
1-
{{#if (eq kind "builtin")~}}
2-
{{#if cv-qualifiers}}{{cv-qualifiers}} {{/if~}}
3-
{{name~}}
4-
{{~else if (eq kind "tag")~}}
5-
{{#if cv-qualifiers}}{{cv-qualifiers}} {{/if~}}
6-
{{#if parent-type~}}{{>declarator parent-type decl-name="" decl-name-targs=""}}::{{/if~}}
7-
{{#if symbol}}{{>xref symbol content=name}}{{else}}{{name~}}{{/if}}
8-
{{~else if (eq kind "specialization")~}}
9-
{{#if cv-qualifiers}}{{cv-qualifiers}} {{/if~}}
10-
{{#if parent-type~}}{{>declarator parent-type decl-name="" decl-name-targs=""}}::{{/if~}}
11-
{{#if symbol}}{{>xref symbol content=name}}{{else}}{{name~}}{{/if}}
12-
{{~>template-args args=args~}}
13-
{{~else if (eq kind "lvalue-reference")~}}
14-
{{~>declarator-before pointee-type~}}
15-
{{#if (or (eq pointee-type.kind "array") (eq pointee-type.kind "function"))~}}({{~/if~}}&
16-
{{~else if (eq kind "rvalue-reference")~}}
17-
{{~>declarator-before pointee-type~}}
18-
{{#if (or (eq pointee-type.kind "array") (eq pointee-type.kind "function"))~}}({{~/if~}}&&
19-
{{~else if (eq kind "pointer")~}}
20-
{{~>declarator-before pointee-type~}}
21-
{{#if (or (eq pointee-type.kind "array") (eq pointee-type.kind "function"))~}}({{~/if~}}*
22-
{{~#if cv-qualifiers}} {{cv-qualifiers}}{{/if~}}
23-
{{~else if (eq kind "member-pointer")~}}
24-
{{~>declarator-before pointee-type~}}
25-
{{#if (or (eq pointee-type.kind "array") (eq pointee-type.kind "function"))~}}({{~/if~}}
26-
{{#if parent-type~}}{{>declarator parent-type decl-name="" decl-name-targs=""}}::*{{/if~}}
27-
{{#if cv-qualifiers}} {{cv-qualifiers}}{{/if~}}
28-
{{~else if (eq kind "array")~}}
29-
{{~>declarator-before element-type~}}
30-
{{~else if (eq kind "function")~}}
31-
{{~>declarator-before return-type~}}
1+
{{#if pointee-type~}}
2+
{{~>declarator-before pointee-type nolink=nolink~}}
3+
{{#if (or (eq pointee-type.kind "array") (eq pointee-type.kind "function"))}}({{/if~}}
4+
{{~/if~}}
5+
{{#if element-type~}}{{~>declarator-before element-type nolink=nolink~}}{{/if~}}
6+
{{#if return-type~}}{{~>declarator-before return-type nolink=nolink~}}{{/if~}}
7+
{{#if (eq kind "lvalue-reference")}}&{{/if~}}
8+
{{#if (eq kind "rvalue-reference")}}&&{{/if~}}
9+
{{#if (eq kind "pointer")}}*{{/if~}}
10+
{{#if (eq kind "member-pointer")}}{{>declarator parent-type nolink=nolink}}::*{{/if~}}
11+
{{#if cv-qualifiers~}}
12+
{{#if pointee-type}} {{cv-qualifiers}}{{else}}{{cv-qualifiers}} {{/if~}}
3213
{{/if~}}
33-
{{~#if is-pack}}...{{/if~}}
14+
{{#if (eq kind "decltype")}}decltype({{operand}}){{/if~}}
15+
{{#if (eq kind "named")}}{{>name-info name nolink=nolink}}{{/if~}}
16+
{{#if is-pack~}}...{{/if}}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{{#if (and (eq kind "function") (eq class "conversion"))~}}
2+
operator {{>declarator return nolink=nolink~}}
3+
{{else if (eq kind "guide")~}}
4+
{{>declarator deduced nolink=nolink~}}
5+
{{else~}}
6+
{{#if (and link.ref (not nolink))}}xref:{{link.ref}}[{{name}}]{{else}}{{name}}{{/if~}}
7+
{{#if (or (eq template.kind "explicit") (eq template.kind "partial"))~}}
8+
{{>template-args args=template.args nolink=nolink~}}
9+
{{/if~}}
10+
{{/if}}
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
<span class="declarator">{{>declarator-before~}}
2-
{{~#if decl-name}} <span class="declarator-name">{{decl-name~}}</span>
3-
{{~#if decl-name-targs~}}{{>template-args args=decl-name-targs}}{{~/if~}}
1+
{{>declarator-before nolink=nolink~}}
2+
{{~#if decl-name}} {{decl-name~}}
3+
{{~#if decl-name-targs~}}{{>template-args args=decl-name-targs nolink=nolink}}{{~/if~}}
44
{{~/if~}}
5-
{{~>declarator-after~}}</span>
5+
{{~>declarator-after nolink=nolink}}

share/mrdocs/addons/generator/html/partials/enum.html.hbs

Lines changed: 0 additions & 65 deletions
This file was deleted.

share/mrdocs/addons/generator/html/partials/enumerator.html.hbs

Lines changed: 0 additions & 1 deletion
This file was deleted.

share/mrdocs/addons/generator/html/partials/field.html.hbs

Lines changed: 0 additions & 1 deletion
This file was deleted.

share/mrdocs/addons/generator/html/partials/friend.html.hbs

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)