@lickle/docs 0.0.0-dev.3 → 0.0.0-dev.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,27 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
6
+ <link rel="icon" type="image/png" href="/favicon-96x96.png" sizes="96x96" />
7
+ <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
8
+ <link rel="shortcut icon" href="/favicon.ico" />
9
+ <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
10
+ <meta name="apple-mobile-web-app-title" content="lickle docs" />
11
+ <link rel="manifest" href="/site.webmanifest" />
12
+
13
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
14
+ <link rel="preconnect" href="https://rsms.me" />
15
+ <link rel="preconnect" href="https://fonts.googleapis.com" />
16
+ <link rel="stylesheet" href="https://rsms.me/inter/inter.css" />
17
+ <link
18
+ rel="stylesheet"
19
+ href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap"
20
+ />
21
+ <title>lickle-docs</title>
22
+ </head>
23
+ <body>
24
+ <div id="root"></div>
25
+ <script type="module" src="./index.tsx"></script>
26
+ </body>
27
+ </html>
@@ -0,0 +1,30 @@
1
+ import { App } from '@lickle/docs/ui'
2
+ import { render } from 'solid-js/web'
3
+
4
+ import { getJson, setJson, getRendered } from '../src/ui/context/global.ts'
5
+
6
+ // @ts-ignore
7
+ import initialDocs from 'virtual:lickle/docs.json'
8
+
9
+ // @ts-ignore
10
+ import '@lickle/docs/theme.css'
11
+
12
+ // @ts-ignore
13
+ import 'virtual:lickle/custom.ts'
14
+ import { createEffect } from 'solid-js'
15
+
16
+ declare global {
17
+ interface ImportMeta {
18
+ hot: {
19
+ on: (event: string, callback: (payload: any) => void) => void
20
+ }
21
+ }
22
+ }
23
+
24
+ if (initialDocs) setJson(initialDocs)
25
+ if (import.meta.hot) import.meta.hot.on('docs-update', (payload) => setJson(payload))
26
+
27
+ createEffect(() => {
28
+ if (getRendered() === false) return render(() => <App json={getJson()} />, document.getElementById('root')!)
29
+ return () => {}
30
+ })
Binary file
Binary file