set up docs route

This commit is contained in:
Ilion Beyst 2022-07-28 20:32:10 +02:00
parent 18aede91be
commit fd6664b8e7
3 changed files with 17 additions and 1 deletions

View file

@ -0,0 +1,10 @@
<div class="container">
<slot />
</div>
<style scoped lang="scss">
.container {
width: 800px;
margin: 0 auto;
}
</style>

View file

@ -0,0 +1,3 @@
# Rules
Hello welcome on the rules page

View file

@ -12,7 +12,10 @@ const config = {
preprocess: [ preprocess: [
sveltePreprocess(), sveltePreprocess(),
mdsvex({ mdsvex({
extensions: ['.md'] extensions: ['.md'],
layout: {
docs: 'src/routes/docs/doc.svelte',
}
}), }),
], ],
extensions: ['.svelte', '.md'], extensions: ['.svelte', '.md'],