using markdown for docs

This commit is contained in:
vcoppe
2024-07-02 10:07:54 +02:00
parent 8e446ec74a
commit 89382a497c
18 changed files with 366 additions and 5 deletions

View File

@@ -1,9 +1,16 @@
import adapter from '@sveltejs/adapter-static';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
import { mdsvex } from 'mdsvex';
/** @type {import('mdsvex').MdsvexOptions} */
const mdsvexOptions = {
extensions: ['.svx', '.md']
};
/** @type {import('@sveltejs/kit').Config} */
const config = {
preprocess: vitePreprocess(),
extensions: ['.svelte', ...mdsvexOptions.extensions],
preprocess: [vitePreprocess(), mdsvex(mdsvexOptions)],
kit: {
adapter: adapter({
pages: 'build',