mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-12 08:40:11 +00:00
port docs to sveltekit (very broken)
This commit is contained in:
parent
17ee73f264
commit
b19c900cc3
39 changed files with 3275 additions and 8052 deletions
18
docs/vite.config.ts
Normal file
18
docs/vite.config.ts
Normal 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),
|
||||
},
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue