port docs to sveltekit (very broken)

This commit is contained in:
alyssa 2025-12-19 22:19:23 -05:00
parent 17ee73f264
commit b19c900cc3
39 changed files with 3275 additions and 8052 deletions

18
docs/vite.config.ts Normal file
View file

@ -0,0 +1,18 @@
import { sveltekit } from '@sveltejs/kit/vite';
import { mdsvex } from 'mdsvex';
import { defineConfig } from 'vite';
import { execSync } from "node:child_process"
const hash = execSync("git rev-parse --short HEAD").toString().trim()
export default defineConfig({
plugins: [sveltekit(), mdsvex({ extension: ".md" })],
server: {
fs: {
allow: ["."]
}
},
define: {
__COMMIT_HASH__: JSON.stringify("_" + hash),
},
})