mirror of
https://github.com/netbirdio/docs.git
synced 2026-10-02 19:59:05 +02:00
Move docs to root
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user