Skip to content

Commit

Permalink
adoc anchors have no prefix
Browse files Browse the repository at this point in the history
#style
  • Loading branch information
alandefreitas committed Jan 2, 2025
1 parent 9f63e1d commit c43082a
Show file tree
Hide file tree
Showing 96 changed files with 2,403 additions and 2,403 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
https://gitlab.com/antora/antora/-/issues/428
}}
{{#if (starts_with href "#")~}}
<<{{{href}}},{{> @partial-block }}>>
<<{{{remove_prefix href "#"}}},{{> @partial-block }}>>
{{~else if (starts_with href "/")~}}
xref:{{{remove_prefix href "/"}}}[{{> @partial-block }}]
{{~else if (starts_with href ".")~}}
Expand Down
6 changes: 3 additions & 3 deletions test-files/golden-tests/core/libcxx.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
|===
| Name | Description

| <<#std,`std`>>
| <<std,`std`>>
|

|===
Expand All @@ -18,7 +18,7 @@
|===
| Name | Description

| <<#sqrt,`sqrt`>>
| <<sqrt,`sqrt`>>
| Computes the square root of an integral value&period;


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

Expand Down
2 changes: 1 addition & 1 deletion test-files/golden-tests/core/utf-8.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
|===
| Name | Description

| <<#Христос_воскрес,`Христос&lowbar;воскрес`>>
| <<Христос_воскрес,`Христос&lowbar;воскрес`>>
|

|===
Expand Down
6 changes: 3 additions & 3 deletions test-files/golden-tests/filters/file/include-self.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
|===
| Name | Description

| <<#TEST,`TEST`>>
| <<TEST,`TEST`>>
|

|===
Expand All @@ -22,13 +22,13 @@
|===
| Name | Description

| <<#TEST-SUCCESS,`SUCCESS`>>
| <<TEST-SUCCESS,`SUCCESS`>>
|

|===

[#TEST-SUCCESS]
== <<#TEST,TEST>>::SUCCESS
== <<TEST,TEST>>::SUCCESS

=== Synopsis

Expand Down
40 changes: 20 additions & 20 deletions test-files/golden-tests/filters/symbol-name/blacklist_0.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
|===
| Name | Description

| <<#N0,`N0`>>
| <<N0,`N0`>>
|

| <<#N3,`N3`>>
| <<N3,`N3`>>
|

| <<#N4,`N4`>>
| <<N4,`N4`>>
|

| <<#N7,`N7`>>
| <<N7,`N7`>>
|

|===
Expand All @@ -31,13 +31,13 @@
|===
| Name | Description

| <<#N0-f0,`f0`>>
| <<N0-f0,`f0`>>
|

|===

[#N0-f0]
== <<#N0,N0>>::f0
== <<N0,N0>>::f0

=== Synopsis

Expand All @@ -61,29 +61,29 @@ f0();
|===
| Name | Description

| <<#N4-N5,`N5`>>
| <<N4-N5,`N5`>>
|

| <<#N4-N6,`N6`>>
| <<N4-N6,`N6`>>
|

|===

[#N4-N5]
== <<#N4,N4>>::N5
== <<N4,N4>>::N5

=== Functions
[cols=2]
|===
| Name | Description

| <<#N4-N5-f1,`f1`>>
| <<N4-N5-f1,`f1`>>
|

|===

[#N4-N5-f1]
== <<#N4,N4>>::<<#N4-N5,N5>>::f1
== <<N4,N4>>::<<N4-N5,N5>>::f1

=== Synopsis

Expand All @@ -96,20 +96,20 @@ f1();
----

[#N4-N6]
== <<#N4,N4>>::N6
== <<N4,N4>>::N6

=== Functions
[cols=2]
|===
| Name | Description

| <<#N4-N6-f1,`f1`>>
| <<N4-N6-f1,`f1`>>
|

|===

[#N4-N6-f1]
== <<#N4,N4>>::<<#N4-N6,N6>>::f1
== <<N4,N4>>::<<N4-N6,N6>>::f1

=== Synopsis

Expand All @@ -129,33 +129,33 @@ f1();
|===
| Name | Description

| <<#N7-N8,`N8`>>
| <<N7-N8,`N8`>>
|

| <<#N7-N9,`N9`>>
| <<N7-N9,`N9`>>
|

|===

[#N7-N8]
== <<#N7,N7>>::N8
== <<N7,N7>>::N8


[#N7-N9]
== <<#N7,N7>>::N9
== <<N7,N7>>::N9

=== Functions
[cols=2]
|===
| Name | Description

| <<#N7-N9-g0,`g0`>>
| <<N7-N9-g0,`g0`>>
|

|===

[#N7-N9-g0]
== <<#N7,N7>>::<<#N7-N9,N9>>::g0
== <<N7,N7>>::<<N7-N9,N9>>::g0

=== Synopsis

Expand Down
Loading

0 comments on commit c43082a

Please sign in to comment.