Skip to content

Commit e4950a9

Browse files
committed
🔥 Remove /api/ prefix in routes; use relative instead
Fixes #1
1 parent 17e9ce9 commit e4950a9

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

data/templates/vuepress/_struct/class.md.twig

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,23 +57,23 @@
5757
| ---:|:--- |
5858
| **Extends** |
5959
{%- if class.parent -%}
60-
[{{ class.parent.namespace|trim('\\') -}}\\<span style="font-weight: bold;">{{ class.parent.name }}</span>](/api/classes.html#
60+
[{{ class.parent.namespace|trim('\\') -}}\\<span style="font-weight: bold;">{{ class.parent.name }}</span>](classes.html#
6161
{{- class.parent|trim('\\')|lower|replace({'\\': '-'}) }})
6262
{%- else -%}
6363
_Nothing_
6464
{%- endif -%}
6565
|
6666
| **Implements** |
6767
{%- for iname, ishort in interfaces if ishort is not empty -%}
68-
[{{ iname|trim('\\')|split('\\')|slice(0, -1)|join('\\') }}\\<span style="font-weight: bold;">{{ ishort }}</span>](/api/interfaces.html#
68+
[{{ iname|trim('\\')|split('\\')|slice(0, -1)|join('\\') }}\\<span style="font-weight: bold;">{{ ishort }}</span>](interfaces.html#
6969
{{- iname|lower|replace({'\\': '-'}) }}) <br />
7070
{%- else -%}
7171
_Nothing_
7272
{%- endfor -%}
7373
|
7474
| **Uses** |
7575
{%- for tName, tShort in traits if tShort is not empty -%}
76-
[{{ tName|trim('\\')|split('\\')|slice(0, -1)|join('\\') }}\\<span style="font-weight: bold;">{{ tShort }}</span>](/api/traits.html#
76+
[{{ tName|trim('\\')|split('\\')|slice(0, -1)|join('\\') }}\\<span style="font-weight: bold;">{{ tShort }}</span>](traits.html#
7777
{{- tName|trim('\\')|lower|replace({'\\': '-'}) }}) <br />
7878
{%- else -%}
7979
_Nothing_
@@ -111,7 +111,7 @@
111111
{%- set parent_location = 'traits' %}
112112
{%- endif %}
113113

114-
- [{{ method.parent.namespace|trim('\\') -}}\\<span style="font-weight: bold;">{{ method.parent.name }}</span>](/api/{{ parent_location }}.html#
114+
- [{{ method.parent.namespace|trim('\\') -}}\\<span style="font-weight: bold;">{{ method.parent.name }}</span>]({{ parent_location }}.html#
115115
{{- method.parent|trim('\\')|lower|replace({'\\': '-'}) -}}
116116
)::
117117
{{- include('_blocks/anchor-link-method.md.twig', { text: method.name ~ '()' }) -}}
@@ -141,7 +141,7 @@
141141
{%- set parent_location = 'traits' %}
142142
{%- endif %}
143143

144-
- [{{ property.parent.namespace|trim('\\') -}}\\<span style="font-weight: bold;">{{ property.parent.name }}</span>](/api/{{ parent_location }}.html#
144+
- [{{ property.parent.namespace|trim('\\') -}}\\<span style="font-weight: bold;">{{ property.parent.name }}</span>]({{ parent_location }}.html#
145145
{{- property.parent|trim('\\')|lower|replace({'\\': '-'}) -}}
146146
)::
147147
{{- include('_blocks/anchor-link-property.md.twig', { text: '$' ~ property.name }) -}}

data/templates/vuepress/_struct/interface.md.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
| ---:|:--- |
3333
| **Extends** |
3434
{%- for iname, ishort in parents if ishort is not empty -%}
35-
[{{ iname|trim('\\')|split('\\')|slice(0, -1)|join('\\') }}\\<span style="font-weight: bold;">{{ ishort }}</span>](/api/interfaces.html#
35+
[{{ iname|trim('\\')|split('\\')|slice(0, -1)|join('\\') }}\\<span style="font-weight: bold;">{{ ishort }}</span>](interfaces.html#
3636
{{- iname|lower|replace({'\\': '-'}) }}) <br />
3737
{%- else -%}
3838
_Nothing_

data/templates/vuepress/_struct/trait.md.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
| ---:| --- |
3232
| **Uses** {# FIXME #} |
3333
{%- for tName, tShort in usedTraits if tShort is not empty -%}
34-
[{{ tName|trim('\\')|split('\\')|slice(0, -1)|join('\\') }}\\<span style="font-weight: bold;">{{ tShort }}</span>](/api/traits.html#
34+
[{{ tName|trim('\\')|split('\\')|slice(0, -1)|join('\\') }}\\<span style="font-weight: bold;">{{ tShort }}</span>](traits.html#
3535
{{- tName|trim('\\')|lower|replace({'\\': '-'}) }}) <br />
3636
{%- else -%}
3737
_Nothing_

0 commit comments

Comments
 (0)