Initial commit

This commit is contained in:
aaron 2023-08-08 21:33:11 +01:00
commit cb002f4f27
50 changed files with 4666 additions and 0 deletions

57
docs/.vitepress/config.ts Normal file
View file

@ -0,0 +1,57 @@
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/",
themeConfig: {
// 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" }
// ]
}
})

View file

@ -0,0 +1,4 @@
// .vitepress/theme/index.js
import DefaultTheme from 'vitepress/theme'
import './vars.css'
export default DefaultTheme

View file

@ -0,0 +1,7 @@
:root {
--vp-c-brand: #3086ff;
--vp-c-green-lighter: #02a5fd;
--vp-c-green-dark: #2b4efd;
--vp-c-green-darker: #5c2bfd;
}