aboutsummaryrefslogtreecommitdiff
path: root/web/pw-server/svelte.config.js
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-09-04 13:14:43 +0200
committerIlion Beyst <ilion.beyst@gmail.com>2022-09-04 13:14:43 +0200
commitdcb0a2bde871638c1b8813c0eccac25aa556e05c (patch)
tree802cb853a8b7a278f21108e1fb0680bf320ee499 /web/pw-server/svelte.config.js
parent2fec5e4509aeb4520691bce57016707a399dffa6 (diff)
parentfd6664b8e7c49f620047714c4adc9b09fbbd2876 (diff)
downloadplanetwars.dev-dcb0a2bde871638c1b8813c0eccac25aa556e05c.tar.xz
planetwars.dev-dcb0a2bde871638c1b8813c0eccac25aa556e05c.zip
Merge branch 'site-docs'
Diffstat (limited to 'web/pw-server/svelte.config.js')
-rw-r--r--web/pw-server/svelte.config.js15
1 files changed, 12 insertions, 3 deletions
diff --git a/web/pw-server/svelte.config.js b/web/pw-server/svelte.config.js
index 4eddd58..fe396f9 100644
--- a/web/pw-server/svelte.config.js
+++ b/web/pw-server/svelte.config.js
@@ -1,15 +1,24 @@
import adapter from "@sveltejs/adapter-node";
-import preprocess from "svelte-preprocess";
+import sveltePreprocess from "svelte-preprocess";
import { viteCommonjs } from "@originjs/vite-plugin-commonjs";
import wasmPack from "vite-plugin-wasm-pack";
import { isoImport } from "vite-plugin-iso-import";
+import { mdsvex } from "mdsvex";
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
- preprocess: preprocess(),
-
+ preprocess: [
+ sveltePreprocess(),
+ mdsvex({
+ extensions: ['.md'],
+ layout: {
+ docs: 'src/routes/docs/doc.svelte',
+ }
+ }),
+ ],
+ extensions: ['.svelte', '.md'],
kit: {
adapter: adapter(),