This commit is contained in:
braginini
2023-05-19 19:51:25 +02:00
parent e2550486c4
commit 053fe87b96
13 changed files with 46 additions and 33 deletions

View File

@@ -25,17 +25,17 @@ const nextConfig = {
return [ return [
{ {
source: '/', source: '/',
destination: '/docs/introductions', destination: '/docs/introduction',
permanent: true, permanent: true,
}, },
{ {
source: '/docs', source: '/docs',
destination: '/docs/introductions', destination: '/docs/introduction',
permanent: true, permanent: true,
}, },
{ {
source: '/ipa', source: '/ipa',
destination: '/ipa/introductions', destination: '/ipa/introduction',
permanent: true, permanent: true,
}, },
] ]

View File

@@ -4,20 +4,20 @@ import { Heading } from '@/components/Heading'
const aboutNetbird = [ const aboutNetbird = [
{ {
href: '/docs/about-netbird/how-netbird-works', href: '/docs/about-netbird/how-netbird-works',
name: 'How NetBird Works', name: 'How NetBird works',
description: 'Learn everything there is to know about how NetBird works.', description: 'Concepts, architecture, protocols, and more.',
}, },
{ {
href: '/docs/about-netbird/netbird-vs-traditional-vpn', href: '/docs/about-netbird/netbird-vs-traditional-vpn',
name: 'NetBird vs. traditional VPN', name: 'NetBird vs. traditional VPN',
description: description:
'Read how NetBird compares to traditional VPNs and why it is better.', 'Learn how NetBird compares to traditional VPNs and why it is better.',
}, },
{ {
href: '/docs/about-netbird/why-wireguard-with-netbird', href: '/docs/about-netbird/why-wireguard-with-netbird',
name: 'Why WireGuard with NetBird', name: 'Why WireGuard with NetBird',
description: description:
'Learn why NetBird is using WireGuard and how NetBird simplifies the usage.', 'Learn why and how NetBird uses WireGuard.',
}, },
] ]

View File

@@ -69,8 +69,8 @@ export const Header = forwardRef(function Header({ className }, ref) {
<nav className="hidden md:block"> <nav className="hidden md:block">
<ul role="list" className="flex items-center gap-8"> <ul role="list" className="flex items-center gap-8">
<TopLevelNavItem href="https://netbird.io/">Home</TopLevelNavItem> <TopLevelNavItem href="https://netbird.io/">Home</TopLevelNavItem>
<TopLevelNavItem href="/docs/introductions">Docs</TopLevelNavItem> <TopLevelNavItem href="/docs/introduction">Docs</TopLevelNavItem>
<TopLevelNavItem href="/ipa/introductions">API</TopLevelNavItem> <TopLevelNavItem href="/ipa/introduction">API</TopLevelNavItem>
<TopLevelNavItem href="https://netbird.io/blog/">Blog</TopLevelNavItem> <TopLevelNavItem href="https://netbird.io/blog/">Blog</TopLevelNavItem>
<TopLevelNavItem href="https://github.com/netbirdio/netbird">Github</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> <TopLevelNavItem href="https://join.slack.com/t/netbirdio/shared_invite/zt-vrahf41g-ik1v7fV8du6t0RwxSrJ96A">Support</TopLevelNavItem>

View File

@@ -3,27 +3,38 @@ import { Heading } from '@/components/Heading'
const howToGuides = [ const howToGuides = [
{ {
href: '/docs/how-to/add-users-to-your-network', href: '/docs/how-to/getting-started',
name: 'Add Users to your network', name: 'Quickstart guide',
description: 'Learn how to add users to your network.', description: 'Start using NetBird in under 5 minutes.',
}, },
{ {
href: '/docs/how-to/configure-periodic-user-authentication', href: '/docs/how-to/manage-network-access',
name: 'Configure periodic user authentication', name: 'Manage network access',
description: description:
'Learn how to configure periodic user authentication.', 'Learn how to use access controls to manage access to your machines.',
},
{
href: '/docs/how-to/add-users-to-your-network',
name: 'Add users to your network',
description: 'learn how to add team members to your NetBird network.',
},
{
href: '/docs/how-to/routing-traffic-to-private-networks',
name: 'Route traffic to private networks',
description:
'Learn how to provide access to LANs, VPS, and corporate private networks.',
},
{
href: '/docs/how-to/monitor-system-and-network-activity',
name: 'Log and monitor network activity',
description:
'Learn how to keep track of system and network activities in your account.',
}, },
{ {
href: '/docs/how-to/manage-dns-in-your-network', href: '/docs/how-to/manage-dns-in-your-network',
name: 'Manage DNS in your network', name: 'Manage DNS in your network',
description: description:
'Learn how to configure DNS servers for your network.', 'Learn how to configure name servers in your private network.',
},
{
href: '/docs/how-to/monitor-system-and-network-activity',
name: 'Monitoring system and network activities',
description:
'Learn how to keep track of system and network activities in your account.',
}, },
] ]

View File

@@ -168,7 +168,7 @@ export function Layout({ children, title, tableOfContents }) {
</main> </main>
<Footer /> <Footer />
</div> </div>
{!router.route.startsWith("/ipa/resources") && !router.route.includes("introductions") && <div className="hidden xl:sticky xl:top-[4.5rem] xl:-mr-6 xl:block xl:h-[calc(100vh-4.5rem)] xl:flex-none xl:overflow-y-auto xl:py-16 xl:pr-6"> {!router.route.startsWith("/ipa/resources") && !router.route.includes("introduction") && <div className="hidden xl:sticky xl:top-[4.5rem] xl:-mr-6 xl:block xl:h-[calc(100vh-4.5rem)] xl:flex-none xl:overflow-y-auto xl:py-16 xl:pr-6">
<nav aria-labelledby="on-this-page-title" className="w-56"> <nav aria-labelledby="on-this-page-title" className="w-56">
{tableOfContents.length > 0 && ( {tableOfContents.length > 0 && (
<> <>

View File

@@ -40,8 +40,8 @@ export function NavigationAPI({tableOfContents, className}) {
<nav className={className}> <nav className={className}>
<ul role="list"> <ul role="list">
<TopLevelNavItem href="https://netbird.io/">Home</TopLevelNavItem> <TopLevelNavItem href="https://netbird.io/">Home</TopLevelNavItem>
<TopLevelNavItem href="/docs/introductions">Docs</TopLevelNavItem> <TopLevelNavItem href="/docs/introduction">Docs</TopLevelNavItem>
<TopLevelNavItem href="/ipa/introductions">API</TopLevelNavItem> <TopLevelNavItem href="/ipa/introduction">API</TopLevelNavItem>
<TopLevelNavItem href="https://netbird.io/blog/">Blog</TopLevelNavItem> <TopLevelNavItem href="https://netbird.io/blog/">Blog</TopLevelNavItem>
<TopLevelNavItem href="https://github.com/netbirdio/netbird">Github</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> <TopLevelNavItem href="https://join.slack.com/t/netbirdio/shared_invite/zt-vrahf41g-ik1v7fV8du6t0RwxSrJ96A">Support</TopLevelNavItem>

View File

@@ -46,8 +46,8 @@ export function NavigationDocs({className}) {
<nav className={className}> <nav className={className}>
<ul role="list"> <ul role="list">
<TopLevelNavItem href="https://netbird.io/">Home</TopLevelNavItem> <TopLevelNavItem href="https://netbird.io/">Home</TopLevelNavItem>
<TopLevelNavItem href="/docs/introductions">Docs</TopLevelNavItem> <TopLevelNavItem href="/docs/introduction">Docs</TopLevelNavItem>
<TopLevelNavItem href="/ipa/introductions">API</TopLevelNavItem> <TopLevelNavItem href="/ipa/introduction">API</TopLevelNavItem>
<TopLevelNavItem href="https://netbird.io/blog/">Blog</TopLevelNavItem> <TopLevelNavItem href="https://netbird.io/blog/">Blog</TopLevelNavItem>
<TopLevelNavItem href="https://github.com/netbirdio/netbird">Github</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> <TopLevelNavItem href="https://join.slack.com/t/netbirdio/shared_invite/zt-vrahf41g-ik1v7fV8du6t0RwxSrJ96A">Support</TopLevelNavItem>

View File

@@ -63,7 +63,7 @@ Be aware that once you close the popup it is impossible to see the plain version
### Using access tokens ### Using access tokens
Once you have created an access token, you can use it to authenticate API requests to NetBird. See [NetBird API](/ipa/introductions) documentation for detailed usage. Once you have created an access token, you can use it to authenticate API requests to NetBird. See [NetBird API](/ipa/introduction) documentation for detailed usage.
For example, if you were using the GitHub API, you might include your personal access token like this: For example, if you were using the GitHub API, you might include your personal access token like this:

View File

@@ -21,7 +21,7 @@ Besides accessing machines by their domain names, you can configure NetBird to u
control what nameservers a specific [peer group](/docs/how-to/access-control#concepts) should use, and set up split DNS. control what nameservers a specific [peer group](/docs/how-to/access-control#concepts) should use, and set up split DNS.
<Note> <Note>
Nameservers is available for NetBird [v0.11.0](https://github.com/netbirdio/netbird/releases) or later. Nameservers feature is available in NetBird [v0.11.0](https://github.com/netbirdio/netbird/releases) or later.
</Note> </Note>
## Concepts ## Concepts

View File

@@ -5,7 +5,7 @@ defining what peer groups are permitted to establish connections with one anothe
<div class="videowrapper"> <div class="videowrapper">
<iframe src="https://www.youtube.com/embed/WvbkACjdsHA" allow="fullscreen;" width="800" height="500" style={{boxShadow: '0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19)'}}></iframe> <iframe src="https://www.youtube.com/embed/WvbkACjdsHA" allow="accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture; fullscreen;" style={{boxShadow: '0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19)'}}></iframe>
</div> </div>

View File

@@ -11,7 +11,7 @@ NetBird is a simple and fast alternative to corporate VPNs built on top of [Wire
It requires near zero configuration effort leaving behind the hassle of opening ports, complex firewall rules, vpn gateways, and so forth. {{ className: 'lead' }} It requires near zero configuration effort leaving behind the hassle of opening ports, complex firewall rules, vpn gateways, and so forth. {{ className: 'lead' }}
<Note> <Note>
NetBird is an **open-source** project. NetBird is an **open-source** project and can be self-hosted
</Note> </Note>
There is no centralized VPN server with NetBird - your computers, devices, machines, and servers connect to each other directly over a fast encrypted tunnel. There is no centralized VPN server with NetBird - your computers, devices, machines, and servers connect to each other directly over a fast encrypted tunnel.
@@ -23,6 +23,8 @@ It literally takes less than 5 minutes to deploy a secure peer-to-peer VPN with
<Button href="https://github.com/netbirdio/netbird" variant="outline" children="Explore Github" /> <Button href="https://github.com/netbirdio/netbird" variant="outline" children="Explore Github" />
</div> </div>
<AboutNetbird />
<HowToGuides /> <HowToGuides />
<AboutNetbird />

View File

@@ -19,7 +19,7 @@
clear: both; clear: both;
width: 100%; width: 100%;
position: relative; position: relative;
padding-bottom: 56.25%; padding-bottom: 46.25%;
padding-top: 25px; padding-top: 25px;
height: 0; height: 0;
} }