Skip to content

Commit

Permalink
docs: fix header dead link
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylvln committed Oct 23, 2023
1 parent 3a5301e commit 037575b
Showing 1 changed file with 50 additions and 47 deletions.
97 changes: 50 additions & 47 deletions docs/src/.vitepress/config.mts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { defineConfig } from 'vitepress';
import { DefaultTheme } from 'vitepress/types/default-theme';

const websiteUrl = 'https://shulker.jeremylvln.fr';
const repositoryUrl = 'https:/jeremylvln/Shulker';
Expand All @@ -9,6 +10,52 @@ const description =

const renderTitle = (title: string) => titleTemplate.replace(':title', title);

const sidebar = {
'/guide/': [
{
text: 'Introduction',
items: [
{ text: 'What is Shulker?', link: '/guide/' },
{ text: 'Architecture', link: '/guide/architecture' },
],
},
{
text: 'Getting Started',
items: [
{
text: 'Prerequisites',
link: '/guide/getting-started/prerequisites',
},
{
text: 'Installation',
link: '/guide/getting-started/installation',
},
{
text: 'Your First Cluster',
link: '/guide/getting-started/your-first-cluster',
},
],
},
{
text: 'Recipes',
items: [
{
text: 'Adding custom content',
link: '/guide/recipes/adding-custom-content',
},
{
text: 'Enabling proxy protocol',
link: '/guide/recipes/enabling-proxy-protocol',
},
{
text: 'Overriding pod properties',
link: '/guide/recipes/overriding-pod-properties',
},
],
},
],
} satisfies DefaultTheme.SidebarMulti;

export default defineConfig({
title: 'Shulker',
titleTemplate,
Expand Down Expand Up @@ -89,55 +136,11 @@ export default defineConfig({
socialLinks: [{ icon: 'github', link: repositoryUrl }],

nav: [
{ text: 'Getting Started', link: '/guide/getting-started/prerequisites' },
{ text: 'Getting Started', link: sidebar['/guide/'][1].items[0].link },
{ text: 'Guide', link: '/guide/' },
{ text: 'Recipes', link: '/guide/recipes' },
{ text: 'Recipes', link: sidebar['/guide/'][2].items[0].link },
],

sidebar: {
'/guide/': [
{
text: 'Introduction',
items: [
{ text: 'What is Shulker?', link: '/guide/' },
{ text: 'Architecture', link: '/guide/architecture' },
],
},
{
text: 'Getting Started',
items: [
{
text: 'Prerequisites',
link: '/guide/getting-started/prerequisites',
},
{
text: 'Installation',
link: '/guide/getting-started/installation',
},
{
text: 'Your First Cluster',
link: '/guide/getting-started/your-first-cluster',
},
],
},
{
text: 'Recipes',
items: [
{
text: 'Adding custom content',
link: '/guide/recipes/adding-custom-content',
},
{
text: 'Enabling proxy protocol',
link: '/guide/recipes/enabling-proxy-protocol',
},
{
text: 'Overriding pod properties',
link: '/guide/recipes/overriding-pod-properties',
},
],
},
],
},
sidebar,
},
});

0 comments on commit 037575b

Please sign in to comment.