Skip to content

Commit 48f7905

Browse files
ArmandPhilippotsarah11918trueberrylessdelucis
authored
fix(configuration-reference): remove page slug from internal anchor links (#12405)
Co-authored-by: sarah11918 <[email protected]> Co-authored-by: trueberryless <[email protected]> Co-authored-by: delucis <[email protected]>
1 parent 8caa456 commit 48f7905

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/docgen.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ export async function run() {
9595
// Make any links to docs relative instead of absolute.
9696
result = result.replace(/https:\/\/docs\.astro\.build\//g, '/');
9797

98+
// Make self-referencing anchor links relative
99+
result = result.replace(/\/en\/reference\/configuration-reference\/#/g, '#');
100+
98101
console.timeEnd(task);
99102
task = 'Update configuration-reference.mdx';
100103
console.time(task);

0 commit comments

Comments
 (0)