vide/docs/.vitepress/config.ts
2023-08-09 10:07:41 +01:00

61 lines
2.3 KiB
TypeScript

import { defineConfig } from "vitepress"
// https://vitepress.dev/reference/site-config
export default defineConfig({
title: "Vide",
description: "A declarative and reactive library for Luau.",
base: "/vide/",
head: [["link", { rel: "icon", href: "/vide.svg" }]],
themeConfig: {
logo: "/vide.svg",
// https://vitepress.dev/reference/default-theme-config
nav: [
{ text: "Home", link: "/" },
{ text: "Tutorials", link: "/tut/crash-course/1-introduction" },
{ text: "API", link: "/api/reactivity-core"},
{ text: "GitHub", link: "https://github.com/centau/vide" }
],
sidebar: {
"/api/": [
{
text: "API",
items: [
{ text: "Reactivity: Core", link: "/api/reactivity-core" },
{ text: "Reactivity: Utility", link: "/api/reactivity-utility" },
{ text: "Element Creation", link: "/api/creation" },
{ text: "Animation", link: "/api/animation" },
{ text: "Strict Mode", link: "/api/strict-mode" },
]
}
],
"/tut/": [
{
text: "Crash Course",
items: [
{ text: "Introduction", link: "/tut/crash-course/1-introduction" },
{ text: "Element Creation", link: "/tut/crash-course/2-creation" },
{ text: "Components", link: "/tut/crash-course/3-components" },
{ text: "State", link: "/tut/crash-course/4-state" },
{ text: "Derived State", link: "/tut/crash-course/5-derived-state" },
{ text: "Table State", link: "/tut/crash-course/6-table-state" },
{ text: "Property Groups", link: "/tut/crash-course/7-property-groups" },
]
},
{
text: "Tutorials",
items: [
{ text: "Crash Course", link: "/tut/crash-course/index" },
]
}
],
}
// socialLinks: [
// { icon: "github", link: "https://github.com/centau/vide" }
// ]
}
})