Skip to content

Commit 8954e9b

Browse files
authored
fix(website): update header and footer doc links (#2)
1 parent fd717c6 commit 8954e9b

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

website/src/components/Footer.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const footerLinks = {
2222
product: [
2323
{ href: '/features', label: 'Features' },
2424
{ href: '/compare', label: 'Compare' },
25-
{ href: '/docs', label: 'Documentation' },
25+
{ href: '/docs/user-guide/getting-started', label: 'Documentation' },
2626
],
2727
resources: [
2828
{ href: '/docs/user-guide/getting-started', label: 'Getting Started' },

website/src/components/Header.astro

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@ const navItems = [
99
{ href: '/', label: 'Home' },
1010
{ href: '/features', label: 'Features' },
1111
{ href: '/compare', label: 'Compare' },
12-
{ href: '/docs', label: 'Docs' },
12+
{ href: '/docs/user-guide/getting-started', label: 'Documentation' },
1313
];
1414
1515
function isActive(href: string): boolean {
1616
if (href === '/') return currentPath === '/';
17+
if (href.startsWith('/docs/')) return currentPath.startsWith('/docs/');
1718
return currentPath.startsWith(href);
1819
}
1920
---

0 commit comments

Comments
 (0)