diff --git a/next.config.mjs b/next.config.mjs index 669e58a8..97a6429b 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -26,11 +26,7 @@ const nextConfig = { return [ { source: '/', - destination: '/docs/introduction', - }, - { - source: '/docs', - destination: '/docs/introduction', + destination: '/introduction', }, { source: '/api', diff --git a/src/components/AboutNetbird.jsx b/src/components/AboutNetbird.jsx index 62c263f4..40103bc3 100644 --- a/src/components/AboutNetbird.jsx +++ b/src/components/AboutNetbird.jsx @@ -3,18 +3,18 @@ import { Heading } from '@/components/Heading' const aboutNetbird = [ { - href: '/docs/about-netbird/how-netbird-works', + href: '/about-netbird/how-netbird-works', name: 'How NetBird works', description: 'Concepts, architecture, protocols, and more.', }, { - href: '/docs/about-netbird/netbird-vs-traditional-vpn', + href: '/about-netbird/netbird-vs-traditional-vpn', name: 'NetBird vs. traditional VPN', description: 'Learn how NetBird compares to traditional VPNs and why it is better.', }, { - href: '/docs/about-netbird/why-wireguard-with-netbird', + href: '/about-netbird/why-wireguard-with-netbird', name: 'Why WireGuard with NetBird', description: 'Learn why and how NetBird uses WireGuard.', diff --git a/src/components/Clients.jsx b/src/components/Clients.jsx index c864932d..04a3065e 100644 --- a/src/components/Clients.jsx +++ b/src/components/Clients.jsx @@ -10,7 +10,7 @@ import { UsersIcon } from '@/components/icons/UsersIcon' const clients = [ { - href: '/docs/client-installation#linux', + href: '/client-installation#linux', name: 'Linux', description: 'Learn how to install the NetBird client on Linux devices.', @@ -24,7 +24,7 @@ const clients = [ }, }, { - href: '/docs/client-installation#mac-os', + href: '/client-installation#mac-os', name: 'MacOS', description: 'Learn how to install the NetBird client on MacOS devices.', @@ -38,7 +38,7 @@ const clients = [ }, }, { - href: '/docs/client-installation#windows', + href: '/client-installation#windows', name: 'Windows', description: 'Learn how to install the NetBird client on Windows devices.', @@ -52,7 +52,7 @@ const clients = [ }, }, { - href: '/docs/client-installation#android', + href: '/client-installation#android', name: 'Android', description: 'Learn how to install the NetBird client on Android devices.', @@ -63,7 +63,7 @@ const clients = [ }, }, { - href: '/docs/client-installation#ios', + href: '/client-installation#ios', name: 'iOS', description: 'Learn how to install the NetBird client on OS devices.', diff --git a/src/components/Footer.jsx b/src/components/Footer.jsx index 7c8ab45a..1f11812a 100644 --- a/src/components/Footer.jsx +++ b/src/components/Footer.jsx @@ -126,7 +126,7 @@ function PageLink({ label, page, previous = false }) { function PageNavigation() { let router = useRouter() - let allPages = router.route.startsWith('/docs') ? docsNavigation.flatMap((group) => group.links) : apiNavigation.flatMap((group) => group.links) + let allPages = !router.route.startsWith('/ipa') ? docsNavigation.flatMap((group) => group.links) : apiNavigation.flatMap((group) => group.links) let currentPageIndex = allPages.findIndex( (page) => page.href === router.pathname ) diff --git a/src/components/Header.jsx b/src/components/Header.jsx index 44ba83d7..69ae0579 100644 --- a/src/components/Header.jsx +++ b/src/components/Header.jsx @@ -69,7 +69,7 @@ export const Header = forwardRef(function Header({ className }, ref) {