Skip to content

Commit

Permalink
revert docs
Browse files Browse the repository at this point in the history
  • Loading branch information
galvez committed Feb 19, 2024
1 parent c23c7cc commit 4f605b3
Showing 1 changed file with 1 addition and 72 deletions.
73 changes: 1 addition & 72 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createRequire } from 'module'
import { defineConfig, type DefaultTheme } from 'vitepress'
import { withMermaid } from 'vitepress-plugin-mermaid'
import { withMermaid } from "vitepress-plugin-mermaid";
import { OramaPlugin } from '@orama/plugin-vitepress'

const require = createRequire(import.meta.url)
Expand Down Expand Up @@ -48,7 +48,6 @@ export default withMermaid({

sidebar: {
'/guide/': { base: '/guide/', items: sidebarGuide() },
'/htmx/': { base: '/vue/', items: sidebarHtmx() },
'/vue/': { base: '/vue/', items: sidebarVue() },
'/react/': { base: '/react/', items: sidebarReact() },
'/config/': { base: '/config/', items: sidebarConfig() },
Expand Down Expand Up @@ -103,17 +102,6 @@ function nav(): DefaultTheme.NavItem[] {
function sidebarGuide(): DefaultTheme.SidebarItem[] {
return [
Guide(),
Htmx(true),
Vue(true),
React(true),
...Common(),
]
}

function sidebarHtmx(): DefaultTheme.SidebarItem[] {
return [
Guide(true),
Htmx(),
Vue(true),
React(true),
...Common(),
Expand All @@ -123,7 +111,6 @@ function sidebarHtmx(): DefaultTheme.SidebarItem[] {
function sidebarVue(): DefaultTheme.SidebarItem[] {
return [
Guide(true),
Htmx(true),
Vue(),
React(true),
...Common(),
Expand All @@ -133,7 +120,6 @@ function sidebarVue(): DefaultTheme.SidebarItem[] {
function sidebarReact(): DefaultTheme.SidebarItem[] {
return [
Guide(true),
Htmx(true),
Vue(true),
React(),
...Common(),
Expand Down Expand Up @@ -233,7 +219,6 @@ function Guide (collapsed = false) {
}
}


function Vue (collapsed = false) {
return {
collapsed,
Expand Down Expand Up @@ -290,62 +275,6 @@ function Vue (collapsed = false) {
}
}

function Htmx (collapsed = false) {
return {
collapsed,
text: '@fastify/htmx',
base: '/htmx/',
items: [
{
text: 'Getting Started',
link: 'index',
items: [
{ text: 'Starter templates', link: 'index#starter-templates' },
{ text: 'Runtime requirements', link: 'index#runtime-requirements' },
{ text: 'Known limitations', link: 'index#known-limitations' }
],
},
{
text: 'Project Structure',
link: 'project-structure',
items: [
{ text: 'Essential files', link: 'project-structure#essential-files' },
{ text: 'Smart imports', link: 'project-structure#smart-imports' },
{ text: 'Special directories', link: 'project-structure#special-directories' }
]
},
{
text: 'Router Setup',
link: 'router-setup',
items: [
{ text: 'Routes location', link: 'router-setup#routes-location' },
{ text: 'Dynamic parameters', link: 'router-setup#dynamic-parameters' }
],
},
{
text: 'Route Modules',
link: 'route-modules',
items: [
{ text: 'Data fetching', link: 'route-modules#data-fetching' },
{ text: 'Page metadata', link: 'route-modules#page-metadata' },
{ text: 'The onEnter event', link: 'route-modules#the-onenter-event' }
],
},
{
text: 'Route Context',
link: 'route-context',
items: [
{ text: 'Init module', link: 'route-context#init-module' },
{ text: 'Access hook', link: 'route-context#access-hook' },
{ text: 'Execution order', link: 'route-context#execution-order' }
]
},
{ text: 'Route Layouts', link: 'route-layouts' },
{ text: 'Rendering Modes', link: 'rendering-modes' }
]
}
}

function React (collapsed = false) {
return {
collapsed,
Expand Down

0 comments on commit 4f605b3

Please sign in to comment.