import { useRouter } from 'next/router' import clsx from 'clsx' import {ActivePageMarker, NavLink, TopLevelNavItem, VisibleSectionHighlight} from "@/components/NavigationAPI"; import {AnimatePresence, motion} from "framer-motion"; import {Button} from "@/components/mdx"; export const docsNavigation = [ { title: 'About NetBird', links: [ { title: 'Why WireGuard with NetBird?', href: '/about-netbird/why-wireguard-with-netbird' }, { title: 'How NetBird works', href: '/about-netbird/how-netbird-works' }, { title: 'NetBird vs. traditional VPN', href: '/about-netbird/netbird-vs-traditional-vpn' }, { title: 'Other', href: '/about-netbird/other' }, { title: 'FAQ', href: '/about-netbird/faq' }, ], }, { title: 'How-to guides', links: [ { title: 'Getting started', href: '/how-to/getting-started' }, { title: 'Installation', href: '/how-to/installation' }, { title: 'Use setup keys for automation', href: '/how-to/register-machines-using-setup-keys' }, { title: 'Manage network access', href: '/how-to/manage-network-access' }, { title: 'Add users to your network', href: '/how-to/add-users-to-your-network' }, { title: 'Access NetBird API', href: '/how-to/access-netbird-public-api' }, { title: 'Enforce periodic authentication', href: '/how-to/enforce-periodic-user-authentication' }, { title: 'Monitor system and network activity', href: '/how-to/monitor-system-and-network-activity' }, { title: 'Route traffic to private networks', href: '/how-to/routing-traffic-to-private-networks' }, { title: 'Manage DNS in your network', href: '/how-to/manage-dns-in-your-network' }, { title: 'Examples', href: '/how-to/examples' }, { title: 'CLI', href: '/how-to/cli' }, ], }, { title: 'Self-hosting NetBird', links: [ { title: 'Installation guide', href: '/selfhosted/selfhosted-guide' }, { title: 'Supported IdPs', href: '/selfhosted/identity-providers' }, ], }, ] export function NavigationDocs({className}) { return ( ) } function NavigationGroup({ group, className }) { let router = useRouter() let isActiveGroup = group.links.findIndex((link) => link.href === router.pathname) !== -1 return (