mirror of
https://github.com/netbirdio/docs.git
synced 2026-04-16 07:26:35 +00:00
remove hero pattern from single files
This commit is contained in:
@@ -1,7 +1,4 @@
|
||||
const template = `
|
||||
import {HeroPattern} from "@/components/HeroPattern"; import {Note} from "@/components/mdx";
|
||||
|
||||
<HeroPattern />
|
||||
|
||||
export const title = '<%- tag %>'
|
||||
|
||||
|
||||
@@ -102,10 +102,10 @@ function useTableOfContents(tableOfContents) {
|
||||
let headings = getHeadings(tableOfContents)
|
||||
function onScroll() {
|
||||
let top = window.scrollY
|
||||
let current = headings[0].id
|
||||
let current = headings[0]?.id
|
||||
for (let heading of headings) {
|
||||
if (top >= heading.top) {
|
||||
current = heading.id
|
||||
if (top >= heading?.top) {
|
||||
current = heading?.id
|
||||
} else {
|
||||
break
|
||||
}
|
||||
@@ -147,8 +147,6 @@ export function Layout({ children, title, tableOfContents }) {
|
||||
|
||||
return (
|
||||
<>
|
||||
{/*<Header navigation={navigation} />*/}
|
||||
|
||||
<HeroPattern/>
|
||||
<div className="relative mx-auto flex max-w-8xl justify-center sm:px-2 lg:px-8 xl:px-12 lg:ml-72 xl:ml-80">
|
||||
<motion.header
|
||||
@@ -172,7 +170,7 @@ export function Layout({ children, title, tableOfContents }) {
|
||||
</main>
|
||||
<Footer />
|
||||
</div>
|
||||
{!router.route.startsWith("/ipa/resources") && <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("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">
|
||||
<nav aria-labelledby="on-this-page-title" className="w-56">
|
||||
{tableOfContents.length > 0 && (
|
||||
<>
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
import {Note} from "@/components/mdx"; import {HeroPattern} from "@/components/HeroPattern";
|
||||
|
||||
<HeroPattern />
|
||||
import {Note} from "@/components/mdx";
|
||||
|
||||
export const title = 'FAQ'
|
||||
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
import {HeroPattern} from "@/components/HeroPattern"; import {Note} from "@/components/mdx";
|
||||
|
||||
<HeroPattern />
|
||||
import {Note} from "@/components/mdx";
|
||||
|
||||
export const title = 'How NetBird Works'
|
||||
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
import {HeroPattern} from "@/components/HeroPattern";
|
||||
|
||||
<HeroPattern />
|
||||
|
||||
# NetBird vs. Traditional VPN
|
||||
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
import {Note} from "@/components/mdx"; import {HeroPattern} from "@/components/HeroPattern";
|
||||
|
||||
<HeroPattern />
|
||||
import {Note} from "@/components/mdx";
|
||||
|
||||
export const title = 'Other'
|
||||
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
import {HeroPattern} from "@/components/HeroPattern";
|
||||
|
||||
<HeroPattern />
|
||||
|
||||
# Why Wireguard with NetBird?
|
||||
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
import {HeroPattern} from "@/components/HeroPattern";
|
||||
|
||||
<HeroPattern/>
|
||||
|
||||
# Access Control
|
||||
NetBird allows administrators to restrict access to resources (peers) by creating access rules and
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
import {HeroPattern} from "@/components/HeroPattern";
|
||||
|
||||
<HeroPattern/>
|
||||
|
||||
# Activity
|
||||
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
import {HeroPattern} from "@/components/HeroPattern"; import {Note} from "@/components/mdx";
|
||||
|
||||
<HeroPattern />
|
||||
|
||||
|
||||
# NetBird CLI
|
||||
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
import {HeroPattern} from "@/components/HeroPattern";
|
||||
|
||||
<HeroPattern/>
|
||||
|
||||
# DNS
|
||||
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
import {HeroPattern} from "@/components/HeroPattern";
|
||||
|
||||
<HeroPattern />
|
||||
|
||||
export const title = 'Examples'
|
||||
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
import {HeroPattern} from "@/components/HeroPattern"; import {Note} from "@/components/mdx";
|
||||
|
||||
<HeroPattern />
|
||||
import {Note} from "@/components/mdx";
|
||||
|
||||
export const title = 'Getting Started'
|
||||
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
import {HeroPattern} from "@/components/HeroPattern";
|
||||
|
||||
<HeroPattern/>
|
||||
|
||||
# Network Routes
|
||||
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
import {HeroPattern} from "@/components/HeroPattern";
|
||||
|
||||
<HeroPattern/>
|
||||
|
||||
# Peers
|
||||
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
import {HeroPattern} from "@/components/HeroPattern";
|
||||
|
||||
<HeroPattern/>
|
||||
|
||||
# Settings
|
||||
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
import {HeroPattern} from "@/components/HeroPattern";
|
||||
|
||||
<HeroPattern/>
|
||||
|
||||
# Setup Keys
|
||||
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
import {HeroPattern} from "@/components/HeroPattern";
|
||||
|
||||
<HeroPattern/>
|
||||
|
||||
# Users
|
||||
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import { HeroPattern } from '@/components/HeroPattern'
|
||||
|
||||
import {Note} from "@/components/mdx"
|
||||
import {HowToGuides} from "@/components/How-To-Guides"
|
||||
import {HowNetbirdWorks} from "@/components/How-NetBird-Works"
|
||||
@@ -7,8 +5,6 @@ import {HowNetbirdWorks} from "@/components/How-NetBird-Works"
|
||||
export const description =
|
||||
'Learn everything there is to know about NetBird.'
|
||||
|
||||
<HeroPattern />
|
||||
|
||||
# NetBird Docs
|
||||
|
||||
NetBird is a simple and fast alternative to corporate VPNs built on top of [WireGuard®](https://www.wireguard.com/) making it easy to create secure private networks for your organization or home.
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
import {HeroPattern} from "@/components/HeroPattern"; import {Note} from "@/components/mdx";
|
||||
|
||||
<HeroPattern />
|
||||
import {Note} from "@/components/mdx";
|
||||
|
||||
# Identity Providers
|
||||
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
import {HeroPattern} from "@/components/HeroPattern";
|
||||
|
||||
<HeroPattern/>
|
||||
|
||||
# Self-hosting Guide
|
||||
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
import {HeroPattern} from "@/components/HeroPattern";
|
||||
export const description =
|
||||
'In this guide, we’ll look at how authentication works. NetBird offers two ways to authenticate your API requests: OAuth2 and personal access tokens.'
|
||||
|
||||
<HeroPattern/>
|
||||
|
||||
# Authentication
|
||||
|
||||
You'll need to authenticate your requests to access any of the endpoints in the NetBird API. In this guide, we'll look at how authentication works. Netbird offers two ways to authenticate your API requests: OAuth2 and personal access tokens (PAT). {{ className: 'lead' }}
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
import {HeroPattern} from "@/components/HeroPattern"; import {Note} from "@/components/mdx";
|
||||
import {Note} from "@/components/mdx";
|
||||
export const description =
|
||||
'In this guide, we will talk about what happens when something goes wrong while you work with the API.'
|
||||
|
||||
<HeroPattern/>
|
||||
|
||||
# Errors
|
||||
|
||||
When working with APIs, it's important to understand the different types of HTTP errors that you might encounter. These errors can help you diagnose issues with your API requests and determine how to resolve them. {{ className: 'lead' }}
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
import {HeroPattern} from "@/components/HeroPattern";
|
||||
export const description =
|
||||
'This guide will get you all set up and ready to use the NetBird API. We’ll cover how to get started and how to make your first API request.'
|
||||
|
||||
<HeroPattern/>
|
||||
|
||||
# Quickstart
|
||||
|
||||
|
||||
@@ -1,12 +1,9 @@
|
||||
import { Guides } from '@/components/Guides'
|
||||
import { Resources } from '@/components/Resources'
|
||||
import { HeroPattern } from '@/components/HeroPattern'
|
||||
|
||||
export const description =
|
||||
'Learn everything there is to know about the NetBird Public API.'
|
||||
|
||||
<HeroPattern />
|
||||
|
||||
# NetBird REST API
|
||||
|
||||
Use the NetBird Public API to manage users, peers, network rules and more from inside your application or scripts to automate the setup of your mesh network. {{ className: 'lead' }}
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
import {HeroPattern} from "@/components/HeroPattern"; import {Note} from "@/components/mdx";
|
||||
|
||||
<HeroPattern />
|
||||
|
||||
export const title = 'Accounts'
|
||||
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
import {HeroPattern} from "@/components/HeroPattern"; import {Note} from "@/components/mdx";
|
||||
|
||||
<HeroPattern />
|
||||
|
||||
export const title = 'DNS'
|
||||
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
import {HeroPattern} from "@/components/HeroPattern"; import {Note} from "@/components/mdx";
|
||||
|
||||
<HeroPattern />
|
||||
|
||||
export const title = 'Events'
|
||||
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
import {HeroPattern} from "@/components/HeroPattern"; import {Note} from "@/components/mdx";
|
||||
|
||||
<HeroPattern />
|
||||
|
||||
export const title = 'Groups'
|
||||
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
import {HeroPattern} from "@/components/HeroPattern"; import {Note} from "@/components/mdx";
|
||||
|
||||
<HeroPattern />
|
||||
|
||||
export const title = 'Peers'
|
||||
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
import {HeroPattern} from "@/components/HeroPattern"; import {Note} from "@/components/mdx";
|
||||
|
||||
<HeroPattern />
|
||||
|
||||
export const title = 'Policies'
|
||||
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
import {HeroPattern} from "@/components/HeroPattern"; import {Note} from "@/components/mdx";
|
||||
|
||||
<HeroPattern />
|
||||
|
||||
export const title = 'Routes'
|
||||
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
import {HeroPattern} from "@/components/HeroPattern"; import {Note} from "@/components/mdx";
|
||||
|
||||
<HeroPattern />
|
||||
|
||||
export const title = 'Rules'
|
||||
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
import {HeroPattern} from "@/components/HeroPattern"; import {Note} from "@/components/mdx";
|
||||
|
||||
<HeroPattern />
|
||||
|
||||
export const title = 'Setup Keys'
|
||||
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
import {HeroPattern} from "@/components/HeroPattern"; import {Note} from "@/components/mdx";
|
||||
|
||||
<HeroPattern />
|
||||
|
||||
export const title = 'Tokens'
|
||||
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
import {HeroPattern} from "@/components/HeroPattern"; import {Note} from "@/components/mdx";
|
||||
|
||||
<HeroPattern />
|
||||
|
||||
export const title = 'Users'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user