Skip to content

Commit c43082a

Browse files
committed
adoc anchors have no prefix
#style
1 parent 9f63e1d commit c43082a

File tree

96 files changed

+2403
-2403
lines changed

Some content is hidden

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

96 files changed

+2403
-2403
lines changed

share/mrdocs/addons/generator/adoc/partials/markup/a.adoc.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
https://gitlab.com/antora/antora/-/issues/428
55
}}
66
{{#if (starts_with href "#")~}}
7-
<<{{{href}}},{{> @partial-block }}>>
7+
<<{{{remove_prefix href "#"}}},{{> @partial-block }}>>
88
{{~else if (starts_with href "/")~}}
99
xref:{{{remove_prefix href "/"}}}[{{> @partial-block }}]
1010
{{~else if (starts_with href ".")~}}

test-files/golden-tests/core/libcxx.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
|===
1010
| Name | Description
1111

12-
| <<#std,`std`>>
12+
| <<std,`std`>>
1313
|
1414

1515
|===
@@ -18,7 +18,7 @@
1818
|===
1919
| Name | Description
2020

21-
| <<#sqrt,`sqrt`>>
21+
| <<sqrt,`sqrt`>>
2222
| Computes the square root of an integral value&period;
2323

2424

@@ -43,7 +43,7 @@ Declared in `&lt;libcxx&period;cpp&gt;`
4343
[source,cpp,subs="verbatim,replacements,macros,-callouts"]
4444
----
4545
template&lt;typename T&gt;
46-
<<#std,std>>::T
46+
<<std,std>>::T
4747
sqrt(T value);
4848
----
4949

test-files/golden-tests/core/utf-8.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
|===
1010
| Name | Description
1111

12-
| <<#Христос_воскрес,`Христос&lowbar;воскрес`>>
12+
| <<Христос_воскрес,`Христос&lowbar;воскрес`>>
1313
|
1414

1515
|===

test-files/golden-tests/filters/file/include-self.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
|===
1010
| Name | Description
1111

12-
| <<#TEST,`TEST`>>
12+
| <<TEST,`TEST`>>
1313
|
1414

1515
|===
@@ -22,13 +22,13 @@
2222
|===
2323
| Name | Description
2424

25-
| <<#TEST-SUCCESS,`SUCCESS`>>
25+
| <<TEST-SUCCESS,`SUCCESS`>>
2626
|
2727

2828
|===
2929

3030
[#TEST-SUCCESS]
31-
== <<#TEST,TEST>>::SUCCESS
31+
== <<TEST,TEST>>::SUCCESS
3232

3333
=== Synopsis
3434

test-files/golden-tests/filters/symbol-name/blacklist_0.adoc

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@
99
|===
1010
| Name | Description
1111

12-
| <<#N0,`N0`>>
12+
| <<N0,`N0`>>
1313
|
1414

15-
| <<#N3,`N3`>>
15+
| <<N3,`N3`>>
1616
|
1717

18-
| <<#N4,`N4`>>
18+
| <<N4,`N4`>>
1919
|
2020

21-
| <<#N7,`N7`>>
21+
| <<N7,`N7`>>
2222
|
2323

2424
|===
@@ -31,13 +31,13 @@
3131
|===
3232
| Name | Description
3333

34-
| <<#N0-f0,`f0`>>
34+
| <<N0-f0,`f0`>>
3535
|
3636

3737
|===
3838

3939
[#N0-f0]
40-
== <<#N0,N0>>::f0
40+
== <<N0,N0>>::f0
4141

4242
=== Synopsis
4343

@@ -61,29 +61,29 @@ f0();
6161
|===
6262
| Name | Description
6363

64-
| <<#N4-N5,`N5`>>
64+
| <<N4-N5,`N5`>>
6565
|
6666

67-
| <<#N4-N6,`N6`>>
67+
| <<N4-N6,`N6`>>
6868
|
6969

7070
|===
7171

7272
[#N4-N5]
73-
== <<#N4,N4>>::N5
73+
== <<N4,N4>>::N5
7474

7575
=== Functions
7676
[cols=2]
7777
|===
7878
| Name | Description
7979

80-
| <<#N4-N5-f1,`f1`>>
80+
| <<N4-N5-f1,`f1`>>
8181
|
8282

8383
|===
8484

8585
[#N4-N5-f1]
86-
== <<#N4,N4>>::<<#N4-N5,N5>>::f1
86+
== <<N4,N4>>::<<N4-N5,N5>>::f1
8787

8888
=== Synopsis
8989

@@ -96,20 +96,20 @@ f1();
9696
----
9797

9898
[#N4-N6]
99-
== <<#N4,N4>>::N6
99+
== <<N4,N4>>::N6
100100

101101
=== Functions
102102
[cols=2]
103103
|===
104104
| Name | Description
105105

106-
| <<#N4-N6-f1,`f1`>>
106+
| <<N4-N6-f1,`f1`>>
107107
|
108108

109109
|===
110110

111111
[#N4-N6-f1]
112-
== <<#N4,N4>>::<<#N4-N6,N6>>::f1
112+
== <<N4,N4>>::<<N4-N6,N6>>::f1
113113

114114
=== Synopsis
115115

@@ -129,33 +129,33 @@ f1();
129129
|===
130130
| Name | Description
131131

132-
| <<#N7-N8,`N8`>>
132+
| <<N7-N8,`N8`>>
133133
|
134134

135-
| <<#N7-N9,`N9`>>
135+
| <<N7-N9,`N9`>>
136136
|
137137

138138
|===
139139

140140
[#N7-N8]
141-
== <<#N7,N7>>::N8
141+
== <<N7,N7>>::N8
142142

143143

144144
[#N7-N9]
145-
== <<#N7,N7>>::N9
145+
== <<N7,N7>>::N9
146146

147147
=== Functions
148148
[cols=2]
149149
|===
150150
| Name | Description
151151

152-
| <<#N7-N9-g0,`g0`>>
152+
| <<N7-N9-g0,`g0`>>
153153
|
154154

155155
|===
156156

157157
[#N7-N9-g0]
158-
== <<#N7,N7>>::<<#N7-N9,N9>>::g0
158+
== <<N7,N7>>::<<N7-N9,N9>>::g0
159159

160160
=== Synopsis
161161

0 commit comments

Comments
 (0)