mirror of
https://github.com/netbirdio/docs.git
synced 2026-04-18 00:16:36 +00:00
move api pages into separate folder
This commit is contained in:
@@ -3,12 +3,12 @@ import { Heading } from '@/components/Heading'
|
||||
|
||||
const guides = [
|
||||
{
|
||||
href: '/authentication',
|
||||
href: '/ipa/authentication',
|
||||
name: 'Authentication',
|
||||
description: 'Learn how to authenticate your API requests.',
|
||||
},
|
||||
{
|
||||
href: '/errors',
|
||||
href: '/ipa/errors',
|
||||
name: 'Errors',
|
||||
description:
|
||||
'Read about the different types of errors returned by the API.',
|
||||
|
||||
@@ -70,7 +70,7 @@ export const Header = forwardRef(function Header({ className }, ref) {
|
||||
<ul role="list" className="flex items-center gap-8">
|
||||
<TopLevelNavItem href="https://netbird.io/">Home</TopLevelNavItem>
|
||||
<TopLevelNavItem href="/docs/introductions">Docs</TopLevelNavItem>
|
||||
<TopLevelNavItem href="/introductions">API</TopLevelNavItem>
|
||||
<TopLevelNavItem href="/ipa/introductions">API</TopLevelNavItem>
|
||||
<TopLevelNavItem href="https://netbird.io/blog/">Blog</TopLevelNavItem>
|
||||
<TopLevelNavItem href="https://github.com/netbirdio/netbird">Github</TopLevelNavItem>
|
||||
<TopLevelNavItem href="https://join.slack.com/t/netbirdio/shared_invite/zt-vrahf41g-ik1v7fV8du6t0RwxSrJ96A">Support</TopLevelNavItem>
|
||||
|
||||
@@ -217,26 +217,26 @@ export const apiNavigation = [
|
||||
{
|
||||
title: 'Guides',
|
||||
links: [
|
||||
{ title: 'Quickstart', href: '/quickstart' },
|
||||
{ title: 'Authentication', href: '/authentication' },
|
||||
{ title: 'Errors', href: '/errors' },
|
||||
{ title: 'Quickstart', href: '/ipa/quickstart' },
|
||||
{ title: 'Authentication', href: '/ipa/authentication' },
|
||||
{ title: 'Errors', href: '/ipa/errors' },
|
||||
// { title: 'Events', href: '/accounts' },
|
||||
],
|
||||
},
|
||||
{
|
||||
title: 'Resources',
|
||||
links: [
|
||||
{ title: 'Accounts', href: '/accounts' },
|
||||
{ title: 'Users', href: '/users' },
|
||||
{ title: 'Tokens', href: '/tokens' },
|
||||
{ title: 'Peers', href: '/peers' },
|
||||
{ title: 'Setup Keys', href: '/setup-keys' },
|
||||
{ title: 'Groups', href: '/groups' },
|
||||
{ title: 'Rules', href: '/rules' },
|
||||
{ title: 'Policies', href: '/policies' },
|
||||
{ title: 'Routes', href: '/routes' },
|
||||
{ title: 'DNS', href: '/dns' },
|
||||
{ title: 'Events', href: '/events' },
|
||||
{ title: 'Accounts', href: '/ipa/accounts' },
|
||||
{ title: 'Users', href: '/ipa/users' },
|
||||
{ title: 'Tokens', href: '/ipa/tokens' },
|
||||
{ title: 'Peers', href: '/ipa/peers' },
|
||||
{ title: 'Setup Keys', href: '/ipa/setup-keys' },
|
||||
{ title: 'Groups', href: '/ipa/groups' },
|
||||
{ title: 'Rules', href: '/ipa/rules' },
|
||||
{ title: 'Policies', href: '/ipa/policies' },
|
||||
{ title: 'Routes', href: '/ipa/routes' },
|
||||
{ title: 'DNS', href: '/ipa/dns' },
|
||||
{ title: 'Events', href: '/ipa/events' },
|
||||
],
|
||||
},
|
||||
]
|
||||
@@ -248,7 +248,7 @@ export function Navigation(props) {
|
||||
<ul role="list">
|
||||
<TopLevelNavItem href="https://netbird.io/">Home</TopLevelNavItem>
|
||||
<TopLevelNavItem href="/docs/introductions">Docs</TopLevelNavItem>
|
||||
<TopLevelNavItem href="/introductions">API</TopLevelNavItem>
|
||||
<TopLevelNavItem href="/ipa/introductions">API</TopLevelNavItem>
|
||||
<TopLevelNavItem href="https://netbird.io/blog/">Blog</TopLevelNavItem>
|
||||
<TopLevelNavItem href="https://github.com/netbirdio/netbird">Github</TopLevelNavItem>
|
||||
<TopLevelNavItem href="https://join.slack.com/t/netbirdio/shared_invite/zt-vrahf41g-ik1v7fV8du6t0RwxSrJ96A">Support</TopLevelNavItem>
|
||||
@@ -260,7 +260,7 @@ export function Navigation(props) {
|
||||
className={groupIndex === 0 && 'md:mt-0'}
|
||||
/>
|
||||
)) ||
|
||||
!router.route.startsWith('/docs') && apiNavigation.map((group, groupIndex) => (
|
||||
router.route.startsWith('/ipa') && apiNavigation.map((group, groupIndex) => (
|
||||
<NavigationGroup
|
||||
key={group.title}
|
||||
group={group}
|
||||
|
||||
@@ -10,7 +10,7 @@ import { UsersIcon } from '@/components/icons/UsersIcon'
|
||||
|
||||
const resources = [
|
||||
{
|
||||
href: '/accounts',
|
||||
href: '/ipa/accounts',
|
||||
name: 'Accounts',
|
||||
description:
|
||||
'Learn how to list and update accounts.',
|
||||
@@ -24,7 +24,7 @@ const resources = [
|
||||
},
|
||||
},
|
||||
{
|
||||
href: '/users',
|
||||
href: '/ipa/users',
|
||||
name: 'Users',
|
||||
description:
|
||||
'Learn how to create, update, delete, and list users.',
|
||||
@@ -38,7 +38,7 @@ const resources = [
|
||||
},
|
||||
},
|
||||
{
|
||||
href: '/tokens',
|
||||
href: '/ipa/tokens',
|
||||
name: 'Tokens',
|
||||
description:
|
||||
'Learn how to create, retrieve, delete, and list tokens.',
|
||||
@@ -52,7 +52,7 @@ const resources = [
|
||||
},
|
||||
},
|
||||
{
|
||||
href: '/peers',
|
||||
href: '/ipa/peers',
|
||||
name: 'Peers',
|
||||
description:
|
||||
'Learn how to retrieve, update, delete, and list peers.',
|
||||
@@ -66,7 +66,7 @@ const resources = [
|
||||
},
|
||||
},
|
||||
{
|
||||
href: '/setup-keys',
|
||||
href: '/ipa/setup-keys',
|
||||
name: 'Setup Keys',
|
||||
description:
|
||||
'Learn how to create, retrieve, update, and list setup keys.',
|
||||
@@ -77,7 +77,7 @@ const resources = [
|
||||
},
|
||||
},
|
||||
{
|
||||
href: '/groups',
|
||||
href: '/ipa/groups',
|
||||
name: 'Groups',
|
||||
description:
|
||||
'Learn how to create, retrieve, update, delete, and list groups.',
|
||||
@@ -88,7 +88,7 @@ const resources = [
|
||||
},
|
||||
},
|
||||
{
|
||||
href: '/rules',
|
||||
href: '/ipa/rules',
|
||||
name: 'Rules',
|
||||
description:
|
||||
'Learn how to create, retrieve, update, delete, and list rules.',
|
||||
@@ -99,7 +99,7 @@ const resources = [
|
||||
},
|
||||
},
|
||||
{
|
||||
href: '/policies',
|
||||
href: '/ipa/policies',
|
||||
name: 'Policies',
|
||||
description:
|
||||
'Learn how to create, retrieve, update, delete, and list policies.',
|
||||
@@ -110,7 +110,7 @@ const resources = [
|
||||
},
|
||||
},
|
||||
{
|
||||
href: '/routes',
|
||||
href: '/ipa/routes',
|
||||
name: 'Routes',
|
||||
description:
|
||||
'Learn about how to create, retrieve, update, delete, and list routes.',
|
||||
@@ -121,7 +121,7 @@ const resources = [
|
||||
},
|
||||
},
|
||||
{
|
||||
href: '/dns',
|
||||
href: '/ipa/dns',
|
||||
name: 'DNS',
|
||||
description:
|
||||
'Learn about how to create, retrieve, update, delete, and list nameserver groups and update and retrieve DNS settings.',
|
||||
@@ -132,7 +132,7 @@ const resources = [
|
||||
},
|
||||
},
|
||||
{
|
||||
href: '/events',
|
||||
href: '/ipa/events',
|
||||
name: 'Events',
|
||||
description:
|
||||
'Learn about how to list events.',
|
||||
|
||||
Reference in New Issue
Block a user