Skip to content

Commit 2f2f022

Browse files
committed
feat: navigation button links to enclosing namespace
1 parent 938b673 commit 2f2f022

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

share/mrdocs/addons/generator/adoc/layouts/wrapper.adoc.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
1010
Breadcrumbs are included in the symbol template as an alternative.
1111
}}
12-
= {{> symbol/qualified-name symbol }}
12+
= {{> symbol/enclosing-namespace symbol }}{{> symbol/qualified-name symbol }}
1313
{{!
1414
Antora does not support relative links to pages in
1515
parent directories. Therefore, unlike in HTML templates,
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{{!--
2+
Renders a link to the enclosing namespace with a custom symbol (⬆).
3+
If no enclosing namespace exists, nothing is rendered.
4+
5+
Expected Context: {Symbol Object}
6+
7+
Example:
8+
{{> symbol/enclosing-namespace symbol }}
9+
10+
See: https://mrdocs.com/docs/mrdocs/develop/generators.html#dom_reference
11+
--}}
12+
{{~#if (and parent parent.name)~}}
13+
xref:{{{remove_prefix parent.url "/"}}}[⬆]
14+
{{~/if~}}

0 commit comments

Comments
 (0)