Skip to content

Commit 6156756

Browse files
committed
fix(HandlebarsGenerator): relative URLs
1 parent 80b1116 commit 6156756

File tree

147 files changed

+1614
-3474
lines changed

Some content is hidden

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

147 files changed

+1614
-3474
lines changed

docs/modules/ROOT/pages/generators.adoc

Lines changed: 15 additions & 7 deletions

include/mrdocs/Metadata/DomCorpus.hpp

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,17 @@ class MRDOCS_DECL
8484
dom::Object
8585
construct(Info const& I) const;
8686

87+
/** Return a Dom value representing an overload set.
88+
89+
A @ref Generator should override this member
90+
and return suitable @ref dom::Value representing
91+
the overload set.
92+
*/
93+
virtual
94+
dom::Object
95+
construct(
96+
OverloadSet const& os) const;
97+
8798
/** Return a Dom object representing the given symbol.
8899
89100
@return A value containing the symbol
@@ -103,19 +114,7 @@ class MRDOCS_DECL
103114
*/
104115
virtual
105116
dom::Value
106-
getJavadoc(
107-
Javadoc const& jd) const;
108-
109-
/** Return a Dom value representing an overload set.
110-
111-
A @ref Generator should override this member
112-
and return suitable @ref dom::Value representing
113-
the overload set.
114-
*/
115-
virtual
116-
dom::Object
117-
getOverloads(
118-
OverloadSet const& os) const;
117+
getJavadoc(Javadoc const& jd) const;
119118
};
120119

121120
} // mrdocs

share/mrdocs/addons/generator/adoc/layouts/index-overload-set.adoc.hbs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
{{! A page when the symbol type is "overloads" }}
2-
{{#if relfileprefix}}:relfileprefix: {{relfileprefix}}{{/if}}
3-
[#{{sectionref}}]
4-
2+
[#{{symbol.anchor}}]
53
={{#unless @root.config.multipage}}={{/unless}} {{#if symbol.name}}{{>types/nested-name-specifier symbol=symbol.parent includeNamespace=true}}{{symbol.name}}{{else}}Unnamed overload set{{/if}}
64

75
{{#if symbol.members.[0]}}
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
11
{{! The section with a symbol in single page output or the symbol page in multi page output }}
2-
{{#if relfileprefix}}:relfileprefix: {{relfileprefix}}{{/if}}
3-
4-
[#{{{sectionref}}}]
52
{{> symbol symbol=symbol}}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
xref:{{{href}}}[{{> @partial-block }}]
1+
{{#if (starts_with href "#")}}<<{{{href}}},{{> @partial-block }}>>{{else}}xref:{{{href}}}[{{> @partial-block }}]{{/if}}

share/mrdocs/addons/generator/adoc/partials/symbols/alias.adoc.hbs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{{!-- alias --}}
2+
[#{{{symbol.anchor}}}]
23
={{#unless @root.config.multipage}}={{/unless}} {{>types/nested-name-specifier symbol=symbol.parent includeNamespace=true}}{{symbol.name}}
34

45
{{{symbol.doc.brief}}}

share/mrdocs/addons/generator/adoc/partials/symbols/concept.adoc.hbs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{{!-- concept --}}
2+
[#{{{symbol.anchor}}}]
23
= {{>types/nested-name-specifier symbol=symbol.parent includeNamespace=true}}{{symbol.name}}
34

45
{{{symbol.doc.brief}}}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{{!-- enum --}}
2+
[#{{{symbol.anchor}}}]
23
={{#unless @root.config.multipage}}={{/unless}} {{#if symbol.name}}{{>types/nested-name-specifier symbol=symbol.parent includeNamespace=true}}{{symbol.name}}{{else}}Unnamed enum{{/if}}
34

45
{{{symbol.doc.brief}}}
@@ -18,7 +19,7 @@
1819
|===
1920
|Name |Description
2021
{{#each symbol.members}}
21-
|xref:{{{ref}}}[`pass:v[{{>types/declarator-id . nolink=true}}]`] | {{~doc.brief}}
22+
|xref:{{{anchor}}}[`pass:v[{{>types/declarator-id . nolink=true}}]`] | {{~doc.brief}}
2223
{{/each}}
2324
|===
2425
{{/if}}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{{!-- enumerator --}}
2+
[#{{{symbol.anchor}}}]
23
={{#unless @root.config.multipage}}={{/unless}} {{>types/nested-name-specifier symbol=symbol.parent includeNamespace=true}}{{symbol.name}}
34

45
{{{symbol.doc.brief}}}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{{!-- field --}}
2+
[#{{{symbol.anchor}}}]
23
={{#unless @root.config.multipage}}={{/unless}} {{>types/nested-name-specifier symbol=symbol.parent includeNamespace=true}}{{symbol.name}}
34

45
{{{symbol.doc.brief}}}

0 commit comments

Comments
 (0)