set up docs route
This commit is contained in:
parent
18aede91be
commit
fd6664b8e7
3 changed files with 17 additions and 1 deletions
10
web/pw-server/src/routes/docs/doc.svelte
Normal file
10
web/pw-server/src/routes/docs/doc.svelte
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
<div class="container">
|
||||||
|
<slot />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<style scoped lang="scss">
|
||||||
|
.container {
|
||||||
|
width: 800px;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
</style>
|
3
web/pw-server/src/routes/docs/rules.md
Normal file
3
web/pw-server/src/routes/docs/rules.md
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
# Rules
|
||||||
|
|
||||||
|
Hello welcome on the rules page
|
|
@ -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'],
|
||||||
|
|
Loading…
Reference in a new issue