Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

Commit

Permalink
Add default layout that doesn't override the head
Browse files Browse the repository at this point in the history
  • Loading branch information
aabounegm authored and illright committed Sep 2, 2020
1 parent 84a6c0f commit c3869e4
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const preprocess = [
mdsvex({
layout: {
docs: './src/mdsvex/layout.svelte',
_: './src/mdsvex/layout-no-head.svelte',
},
smartypants: {
quotes: false,
Expand Down
29 changes: 29 additions & 0 deletions docs/src/mdsvex/layout-no-head.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<script context="module">
import Heading1 from 'src/mdsvex/h1.svelte';
import Heading2 from 'src/mdsvex/h2.svelte';
import Heading3 from 'src/mdsvex/h3.svelte';
import UnorderedList from 'src/mdsvex/ul.svelte';
import ListItem from 'src/mdsvex/li.svelte';
import Table from 'src/mdsvex/table.svelte';
import TableHead from 'src/mdsvex/th.svelte';
import TableRow from 'src/mdsvex/tr.svelte';
import TableData from 'src/mdsvex/td.svelte';
import Mark from 'src/mdsvex/mark.svelte';
import Paragraph from 'src/mdsvex/p.svelte';
export {
Heading1 as h1,
Heading2 as h2,
Heading3 as h3,
UnorderedList as ul,
ListItem as li,
Table as table,
TableHead as th,
TableRow as tr,
TableData as td,
Mark as mark,
Paragraph as p,
};
</script>

<slot />

0 comments on commit c3869e4

Please sign in to comment.