Skip to content

Commit ba3fbfe

Browse files
committed
update default route
1 parent 4cd3cd4 commit ba3fbfe

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

docs/src/components/Navigation.astro

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
import { Icon } from 'astro-icon/components';
33
44
let segments = Astro.url.pathname.match(/\/([0-9]*\.x)\/([a-z\-\_]*)\//) || [
5-
'/4.x/quickstart/',
5+
'/4.x/introduction/overview/',
66
'4.x',
7-
'quickstart',
7+
'introduction',
8+
'overview',
89
]
910
1011
const { navigation } = Astro.props

docs/src/components/VersionSelector.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
import navigation from '../navigation.json'
33
4-
let segments = Astro.url.pathname.match(/\/([0-9]*\.x)\/([a-z\-\_]*)\/([a-z\-\_]*)\/([a-z\-\_]*)/) || ["/4.x/quickstart/", "4.x", "quickstart"];
4+
let segments = Astro.url.pathname.match(/\/([0-9]*\.x)\/([a-z\-\_]*)\/([a-z\-\_]*)\/([a-z\-\_]*)/) || ["/4.x/introduction/overflow/", "4.x", "introduction", "overview"];
55
let currentVersion = segments[1].replaceAll("/", "");
66
let currentSection = segments[2].replaceAll("/", "");
77
let currentPage = (segments[3] ?? null)?.replaceAll("/", "");

docs/src/layouts/BaseLayout.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ let isHomePage = Astro.url.pathname === "/docs";
2828
2929
let tableOfContents = headings.length > 0 ? collectHeadings(headings) : [];
3030
31-
let segments = Astro.url.pathname.match(/\/([0-9]*\.x)\/([a-z\-\_]*)\/([a-z\-\_]*)/) || ["/4.x/quickstart/", "4.x", "quickstart", ""];
31+
let segments = Astro.url.pathname.match(/\/([0-9]*\.x)\/([a-z\-\_]*)\/([a-z\-\_]*)/) || ["/4.x/introduction/overview/", "4.x", "introduction", "overview"];
3232
3333
let currentVersion = segments[1].replaceAll("/", "");
3434
let currentPackage = segments[2].replaceAll("/", "");

0 commit comments

Comments
 (0)