-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathvite.config.ts
More file actions
27 lines (25 loc) · 868 Bytes
/
Copy pathvite.config.ts
File metadata and controls
27 lines (25 loc) · 868 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import { svelteReadme } from "svelte-readme";
import { defineConfig } from "vite";
export default defineConfig({
plugins: [
svelteReadme({
head: `
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Public+Sans:wght@400;500;600;700&display=swap"
rel="stylesheet"
/>
`,
style: `
:root {
--sr-font-sans: "Public Sans", system-ui, sans-serif;
--sr-font-mono: "JetBrains Mono", ui-monospace, monospace;
}
.code-fence li + li { margin: 0; }
.code-fence { min-height: 16rem; }
.code-fence pre { margin-bottom: 0; margin-top: 12px; }
`,
}),
],
});