@lickle/docs 0.0.0-dev.1
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.
- package/README.md +3 -0
- package/dist/esm/_lib/fs/index.js +20 -0
- package/dist/esm/_lib/fs/index.js.map +1 -0
- package/dist/esm/_lib/fs/watch.js +30 -0
- package/dist/esm/_lib/fs/watch.js.map +1 -0
- package/dist/esm/_lib/index.js +9 -0
- package/dist/esm/_lib/index.js.map +1 -0
- package/dist/esm/_lib/jiti/index.js +16 -0
- package/dist/esm/_lib/jiti/index.js.map +1 -0
- package/dist/esm/_lib/path/index.js +42 -0
- package/dist/esm/_lib/path/index.js.map +1 -0
- package/dist/esm/_lib/pkg/index.js +128 -0
- package/dist/esm/_lib/pkg/index.js.map +1 -0
- package/dist/esm/_lib/repo/index.js +100 -0
- package/dist/esm/_lib/repo/index.js.map +1 -0
- package/dist/esm/_lib/slug/index.js +23 -0
- package/dist/esm/_lib/slug/index.js.map +1 -0
- package/dist/esm/_lib/t.js +2 -0
- package/dist/esm/_lib/t.js.map +1 -0
- package/dist/esm/_lib/tsconfig/index.js +12 -0
- package/dist/esm/_lib/tsconfig/index.js.map +1 -0
- package/dist/esm/_lib/util/index.js +54 -0
- package/dist/esm/_lib/util/index.js.map +1 -0
- package/dist/esm/cli/cmd/dev.js +74 -0
- package/dist/esm/cli/cmd/dev.js.map +1 -0
- package/dist/esm/cli/cmd/index.js +4 -0
- package/dist/esm/cli/cmd/index.js.map +1 -0
- package/dist/esm/cli/cmd/init.js +74 -0
- package/dist/esm/cli/cmd/init.js.map +1 -0
- package/dist/esm/cli/cmd/json.js +28 -0
- package/dist/esm/cli/cmd/json.js.map +1 -0
- package/dist/esm/cli/env.js +5 -0
- package/dist/esm/cli/env.js.map +1 -0
- package/dist/esm/cli/index.js +13 -0
- package/dist/esm/cli/index.js.map +1 -0
- package/dist/esm/cli/vite/client/index.jsx +20 -0
- package/dist/esm/cli/vite/client/index.jsx.map +1 -0
- package/dist/esm/cli/vite/index.js +100 -0
- package/dist/esm/cli/vite/index.js.map +1 -0
- package/dist/esm/cli.js +5 -0
- package/dist/esm/cli.js.map +1 -0
- package/dist/esm/config/defaults.js +32 -0
- package/dist/esm/config/defaults.js.map +1 -0
- package/dist/esm/config/file.js +48 -0
- package/dist/esm/config/file.js.map +1 -0
- package/dist/esm/config/index.js +7 -0
- package/dist/esm/config/index.js.map +1 -0
- package/dist/esm/config/load.js +79 -0
- package/dist/esm/config/load.js.map +1 -0
- package/dist/esm/config/types.js +2 -0
- package/dist/esm/config/types.js.map +1 -0
- package/dist/esm/core/index.js +3 -0
- package/dist/esm/core/index.js.map +1 -0
- package/dist/esm/core/project/debug.js +26 -0
- package/dist/esm/core/project/debug.js.map +1 -0
- package/dist/esm/core/project/index.js +39 -0
- package/dist/esm/core/project/index.js.map +1 -0
- package/dist/esm/core/project/naming.js +39 -0
- package/dist/esm/core/project/naming.js.map +1 -0
- package/dist/esm/core/project/routing.js +173 -0
- package/dist/esm/core/project/routing.js.map +1 -0
- package/dist/esm/core/project/types.js +4 -0
- package/dist/esm/core/project/types.js.map +1 -0
- package/dist/esm/core/reflect/index.js +10 -0
- package/dist/esm/core/reflect/index.js.map +1 -0
- package/dist/esm/core/reflect/indexed.js +195 -0
- package/dist/esm/core/reflect/indexed.js.map +1 -0
- package/dist/esm/core/reflect/resolve.js +157 -0
- package/dist/esm/core/reflect/resolve.js.map +1 -0
- package/dist/esm/core/reflect/scan.js +787 -0
- package/dist/esm/core/reflect/scan.js.map +1 -0
- package/dist/esm/core/reflect/state.js +29 -0
- package/dist/esm/core/reflect/state.js.map +1 -0
- package/dist/esm/core/reflect/types.js +16 -0
- package/dist/esm/core/reflect/types.js.map +1 -0
- package/dist/esm/core/reflect/walk.js +106 -0
- package/dist/esm/core/reflect/walk.js.map +1 -0
- package/dist/esm/solidjs/index.js +2 -0
- package/dist/esm/solidjs/index.js.map +1 -0
- package/dist/esm/solidjs/jsx-runtime.js +2 -0
- package/dist/esm/solidjs/jsx-runtime.js.map +1 -0
- package/dist/esm/ui/App.jsx +71 -0
- package/dist/esm/ui/App.jsx.map +1 -0
- package/dist/esm/ui/components/Breadcrumb.jsx +45 -0
- package/dist/esm/ui/components/Breadcrumb.jsx.map +1 -0
- package/dist/esm/ui/components/Code/index.jsx +89 -0
- package/dist/esm/ui/components/Code/index.jsx.map +1 -0
- package/dist/esm/ui/components/Comment.jsx +176 -0
- package/dist/esm/ui/components/Comment.jsx.map +1 -0
- package/dist/esm/ui/components/Declaration.jsx +147 -0
- package/dist/esm/ui/components/Declaration.jsx.map +1 -0
- package/dist/esm/ui/components/Header.jsx +66 -0
- package/dist/esm/ui/components/Header.jsx.map +1 -0
- package/dist/esm/ui/components/Layout.jsx +44 -0
- package/dist/esm/ui/components/Layout.jsx.map +1 -0
- package/dist/esm/ui/components/Link.jsx +34 -0
- package/dist/esm/ui/components/Link.jsx.map +1 -0
- package/dist/esm/ui/components/LivePreview/Example.jsx +76 -0
- package/dist/esm/ui/components/LivePreview/Example.jsx.map +1 -0
- package/dist/esm/ui/components/LivePreview/Sandbox.jsx +25 -0
- package/dist/esm/ui/components/LivePreview/Sandbox.jsx.map +1 -0
- package/dist/esm/ui/components/LivePreview/index.js +4 -0
- package/dist/esm/ui/components/LivePreview/index.js.map +1 -0
- package/dist/esm/ui/components/LivePreview/transform.js +16 -0
- package/dist/esm/ui/components/LivePreview/transform.js.map +1 -0
- package/dist/esm/ui/components/Markdown.jsx +14 -0
- package/dist/esm/ui/components/Markdown.jsx.map +1 -0
- package/dist/esm/ui/components/Page.jsx +121 -0
- package/dist/esm/ui/components/Page.jsx.map +1 -0
- package/dist/esm/ui/components/References.jsx +32 -0
- package/dist/esm/ui/components/References.jsx.map +1 -0
- package/dist/esm/ui/components/SearchPalette.jsx +178 -0
- package/dist/esm/ui/components/SearchPalette.jsx.map +1 -0
- package/dist/esm/ui/components/Sidebar.jsx +63 -0
- package/dist/esm/ui/components/Sidebar.jsx.map +1 -0
- package/dist/esm/ui/components/Syntax.jsx +10 -0
- package/dist/esm/ui/components/Syntax.jsx.map +1 -0
- package/dist/esm/ui/components/ThemeToggle.jsx +25 -0
- package/dist/esm/ui/components/ThemeToggle.jsx.map +1 -0
- package/dist/esm/ui/components/Type.jsx +444 -0
- package/dist/esm/ui/components/Type.jsx.map +1 -0
- package/dist/esm/ui/components/index.js +16 -0
- package/dist/esm/ui/components/index.js.map +1 -0
- package/dist/esm/ui/context/components.jsx +30 -0
- package/dist/esm/ui/context/components.jsx.map +1 -0
- package/dist/esm/ui/context/global.js +15 -0
- package/dist/esm/ui/context/global.js.map +1 -0
- package/dist/esm/ui/context/index.js +5 -0
- package/dist/esm/ui/context/index.js.map +1 -0
- package/dist/esm/ui/context/markup/index.jsx +25 -0
- package/dist/esm/ui/context/markup/index.jsx.map +1 -0
- package/dist/esm/ui/context/markup/markdown.js +34 -0
- package/dist/esm/ui/context/markup/markdown.js.map +1 -0
- package/dist/esm/ui/context/markup/shiki.js +58 -0
- package/dist/esm/ui/context/markup/shiki.js.map +1 -0
- package/dist/esm/ui/context/markup/util.js +22 -0
- package/dist/esm/ui/context/markup/util.js.map +1 -0
- package/dist/esm/ui/context/project/index.jsx +27 -0
- package/dist/esm/ui/context/project/index.jsx.map +1 -0
- package/dist/esm/ui/context/project/indexed.js +47 -0
- package/dist/esm/ui/context/project/indexed.js.map +1 -0
- package/dist/esm/ui/context/project/types.js +2 -0
- package/dist/esm/ui/context/project/types.js.map +1 -0
- package/dist/esm/ui/context/theme.jsx +36 -0
- package/dist/esm/ui/context/theme.jsx.map +1 -0
- package/dist/esm/ui/hooks/index.js +94 -0
- package/dist/esm/ui/hooks/index.js.map +1 -0
- package/dist/esm/ui/index.js +5 -0
- package/dist/esm/ui/index.js.map +1 -0
- package/dist/esm/ui/renderer.jsx +21 -0
- package/dist/esm/ui/renderer.jsx.map +1 -0
- package/dist/esm/ui/util/comment.js +14 -0
- package/dist/esm/ui/util/comment.js.map +1 -0
- package/dist/esm/ui/util/kind.js +85 -0
- package/dist/esm/ui/util/kind.js.map +1 -0
- package/dist/esm/ui/util/markdown.js +66 -0
- package/dist/esm/ui/util/markdown.js.map +1 -0
- package/dist/esm/ui/util/search.js +75 -0
- package/dist/esm/ui/util/search.js.map +1 -0
- package/dist/ts/_lib/fs/index.d.ts +6 -0
- package/dist/ts/_lib/fs/index.d.ts.map +1 -0
- package/dist/ts/_lib/fs/watch.d.ts +14 -0
- package/dist/ts/_lib/fs/watch.d.ts.map +1 -0
- package/dist/ts/_lib/index.d.ts +10 -0
- package/dist/ts/_lib/index.d.ts.map +1 -0
- package/dist/ts/_lib/jiti/index.d.ts +2 -0
- package/dist/ts/_lib/jiti/index.d.ts.map +1 -0
- package/dist/ts/_lib/path/index.d.ts +12 -0
- package/dist/ts/_lib/path/index.d.ts.map +1 -0
- package/dist/ts/_lib/pkg/index.d.ts +28 -0
- package/dist/ts/_lib/pkg/index.d.ts.map +1 -0
- package/dist/ts/_lib/repo/index.d.ts +30 -0
- package/dist/ts/_lib/repo/index.d.ts.map +1 -0
- package/dist/ts/_lib/slug/index.d.ts +4 -0
- package/dist/ts/_lib/slug/index.d.ts.map +1 -0
- package/dist/ts/_lib/t.d.ts +11 -0
- package/dist/ts/_lib/t.d.ts.map +1 -0
- package/dist/ts/_lib/tsconfig/index.d.ts +8 -0
- package/dist/ts/_lib/tsconfig/index.d.ts.map +1 -0
- package/dist/ts/_lib/util/index.d.ts +9 -0
- package/dist/ts/_lib/util/index.d.ts.map +1 -0
- package/dist/ts/cli/cmd/dev.d.ts +27 -0
- package/dist/ts/cli/cmd/dev.d.ts.map +1 -0
- package/dist/ts/cli/cmd/index.d.ts +4 -0
- package/dist/ts/cli/cmd/index.d.ts.map +1 -0
- package/dist/ts/cli/cmd/init.d.ts +14 -0
- package/dist/ts/cli/cmd/init.d.ts.map +1 -0
- package/dist/ts/cli/cmd/json.d.ts +12 -0
- package/dist/ts/cli/cmd/json.d.ts.map +1 -0
- package/dist/ts/cli/env.d.ts +2 -0
- package/dist/ts/cli/env.d.ts.map +1 -0
- package/dist/ts/cli/index.d.ts +78 -0
- package/dist/ts/cli/index.d.ts.map +1 -0
- package/dist/ts/cli/vite/client/index.d.ts +10 -0
- package/dist/ts/cli/vite/client/index.d.ts.map +1 -0
- package/dist/ts/cli/vite/index.d.ts +12 -0
- package/dist/ts/cli/vite/index.d.ts.map +1 -0
- package/dist/ts/cli.d.ts +3 -0
- package/dist/ts/cli.d.ts.map +1 -0
- package/dist/ts/config/defaults.d.ts +10 -0
- package/dist/ts/config/defaults.d.ts.map +1 -0
- package/dist/ts/config/file.d.ts +3 -0
- package/dist/ts/config/file.d.ts.map +1 -0
- package/dist/ts/config/index.d.ts +6 -0
- package/dist/ts/config/index.d.ts.map +1 -0
- package/dist/ts/config/load.d.ts +36 -0
- package/dist/ts/config/load.d.ts.map +1 -0
- package/dist/ts/config/types.d.ts +56 -0
- package/dist/ts/config/types.d.ts.map +1 -0
- package/dist/ts/core/index.d.ts +3 -0
- package/dist/ts/core/index.d.ts.map +1 -0
- package/dist/ts/core/project/debug.d.ts +3 -0
- package/dist/ts/core/project/debug.d.ts.map +1 -0
- package/dist/ts/core/project/index.d.ts +17 -0
- package/dist/ts/core/project/index.d.ts.map +1 -0
- package/dist/ts/core/project/naming.d.ts +23 -0
- package/dist/ts/core/project/naming.d.ts.map +1 -0
- package/dist/ts/core/project/routing.d.ts +61 -0
- package/dist/ts/core/project/routing.d.ts.map +1 -0
- package/dist/ts/core/project/types.d.ts +56 -0
- package/dist/ts/core/project/types.d.ts.map +1 -0
- package/dist/ts/core/reflect/index.d.ts +22 -0
- package/dist/ts/core/reflect/index.d.ts.map +1 -0
- package/dist/ts/core/reflect/indexed.d.ts +83 -0
- package/dist/ts/core/reflect/indexed.d.ts.map +1 -0
- package/dist/ts/core/reflect/resolve.d.ts +3 -0
- package/dist/ts/core/reflect/resolve.d.ts.map +1 -0
- package/dist/ts/core/reflect/scan.d.ts +218 -0
- package/dist/ts/core/reflect/scan.d.ts.map +1 -0
- package/dist/ts/core/reflect/state.d.ts +44 -0
- package/dist/ts/core/reflect/state.d.ts.map +1 -0
- package/dist/ts/core/reflect/types.d.ts +289 -0
- package/dist/ts/core/reflect/types.d.ts.map +1 -0
- package/dist/ts/core/reflect/walk.d.ts +28 -0
- package/dist/ts/core/reflect/walk.d.ts.map +1 -0
- package/dist/ts/solidjs/index.d.ts +2 -0
- package/dist/ts/solidjs/index.d.ts.map +1 -0
- package/dist/ts/solidjs/jsx-runtime.d.ts +2 -0
- package/dist/ts/solidjs/jsx-runtime.d.ts.map +1 -0
- package/dist/ts/ui/App.d.ts +17 -0
- package/dist/ts/ui/App.d.ts.map +1 -0
- package/dist/ts/ui/components/Breadcrumb.d.ts +4 -0
- package/dist/ts/ui/components/Breadcrumb.d.ts.map +1 -0
- package/dist/ts/ui/components/Code/index.d.ts +17 -0
- package/dist/ts/ui/components/Code/index.d.ts.map +1 -0
- package/dist/ts/ui/components/Comment.d.ts +49 -0
- package/dist/ts/ui/components/Comment.d.ts.map +1 -0
- package/dist/ts/ui/components/Declaration.d.ts +122 -0
- package/dist/ts/ui/components/Declaration.d.ts.map +1 -0
- package/dist/ts/ui/components/Header.d.ts +5 -0
- package/dist/ts/ui/components/Header.d.ts.map +1 -0
- package/dist/ts/ui/components/Layout.d.ts +5 -0
- package/dist/ts/ui/components/Layout.d.ts.map +1 -0
- package/dist/ts/ui/components/Link.d.ts +15 -0
- package/dist/ts/ui/components/Link.d.ts.map +1 -0
- package/dist/ts/ui/components/LivePreview/Example.d.ts +16 -0
- package/dist/ts/ui/components/LivePreview/Example.d.ts.map +1 -0
- package/dist/ts/ui/components/LivePreview/Sandbox.d.ts +20 -0
- package/dist/ts/ui/components/LivePreview/Sandbox.d.ts.map +1 -0
- package/dist/ts/ui/components/LivePreview/index.d.ts +4 -0
- package/dist/ts/ui/components/LivePreview/index.d.ts.map +1 -0
- package/dist/ts/ui/components/LivePreview/transform.d.ts +19 -0
- package/dist/ts/ui/components/LivePreview/transform.d.ts.map +1 -0
- package/dist/ts/ui/components/Markdown.d.ts +11 -0
- package/dist/ts/ui/components/Markdown.d.ts.map +1 -0
- package/dist/ts/ui/components/Page.d.ts +21 -0
- package/dist/ts/ui/components/Page.d.ts.map +1 -0
- package/dist/ts/ui/components/References.d.ts +2 -0
- package/dist/ts/ui/components/References.d.ts.map +1 -0
- package/dist/ts/ui/components/SearchPalette.d.ts +5 -0
- package/dist/ts/ui/components/SearchPalette.d.ts.map +1 -0
- package/dist/ts/ui/components/Sidebar.d.ts +5 -0
- package/dist/ts/ui/components/Sidebar.d.ts.map +1 -0
- package/dist/ts/ui/components/Syntax.d.ts +15 -0
- package/dist/ts/ui/components/Syntax.d.ts.map +1 -0
- package/dist/ts/ui/components/ThemeToggle.d.ts +2 -0
- package/dist/ts/ui/components/ThemeToggle.d.ts.map +1 -0
- package/dist/ts/ui/components/Type.d.ts +82 -0
- package/dist/ts/ui/components/Type.d.ts.map +1 -0
- package/dist/ts/ui/components/index.d.ts +15 -0
- package/dist/ts/ui/components/index.d.ts.map +1 -0
- package/dist/ts/ui/context/components.d.ts +124 -0
- package/dist/ts/ui/context/components.d.ts.map +1 -0
- package/dist/ts/ui/context/global.d.ts +210 -0
- package/dist/ts/ui/context/global.d.ts.map +1 -0
- package/dist/ts/ui/context/index.d.ts +5 -0
- package/dist/ts/ui/context/index.d.ts.map +1 -0
- package/dist/ts/ui/context/markup/index.d.ts +20 -0
- package/dist/ts/ui/context/markup/index.d.ts.map +1 -0
- package/dist/ts/ui/context/markup/markdown.d.ts +4 -0
- package/dist/ts/ui/context/markup/markdown.d.ts.map +1 -0
- package/dist/ts/ui/context/markup/shiki.d.ts +17 -0
- package/dist/ts/ui/context/markup/shiki.d.ts.map +1 -0
- package/dist/ts/ui/context/markup/util.d.ts +11 -0
- package/dist/ts/ui/context/markup/util.d.ts.map +1 -0
- package/dist/ts/ui/context/project/index.d.ts +25 -0
- package/dist/ts/ui/context/project/index.d.ts.map +1 -0
- package/dist/ts/ui/context/project/indexed.d.ts +4 -0
- package/dist/ts/ui/context/project/indexed.d.ts.map +1 -0
- package/dist/ts/ui/context/project/types.d.ts +13 -0
- package/dist/ts/ui/context/project/types.d.ts.map +1 -0
- package/dist/ts/ui/context/theme.d.ts +12 -0
- package/dist/ts/ui/context/theme.d.ts.map +1 -0
- package/dist/ts/ui/hooks/index.d.ts +29 -0
- package/dist/ts/ui/hooks/index.d.ts.map +1 -0
- package/dist/ts/ui/index.d.ts +5 -0
- package/dist/ts/ui/index.d.ts.map +1 -0
- package/dist/ts/ui/renderer.d.ts +200 -0
- package/dist/ts/ui/renderer.d.ts.map +1 -0
- package/dist/ts/ui/util/comment.d.ts +4 -0
- package/dist/ts/ui/util/comment.d.ts.map +1 -0
- package/dist/ts/ui/util/kind.d.ts +15 -0
- package/dist/ts/ui/util/kind.d.ts.map +1 -0
- package/dist/ts/ui/util/markdown.d.ts +8 -0
- package/dist/ts/ui/util/markdown.d.ts.map +1 -0
- package/dist/ts/ui/util/search.d.ts +20 -0
- package/dist/ts/ui/util/search.d.ts.map +1 -0
- package/package.json +89 -0
- package/src/_lib/fs/index.ts +23 -0
- package/src/_lib/fs/watch.ts +40 -0
- package/src/_lib/index.ts +9 -0
- package/src/_lib/jiti/index.ts +18 -0
- package/src/_lib/path/index.ts +44 -0
- package/src/_lib/pkg/index.ts +165 -0
- package/src/_lib/repo/index.ts +138 -0
- package/src/_lib/slug/index.ts +26 -0
- package/src/_lib/t.ts +17 -0
- package/src/_lib/tsconfig/index.ts +20 -0
- package/src/_lib/util/index.ts +53 -0
- package/src/cli/cmd/dev.ts +86 -0
- package/src/cli/cmd/index.ts +3 -0
- package/src/cli/cmd/init.ts +80 -0
- package/src/cli/cmd/json.ts +28 -0
- package/src/cli/env.ts +6 -0
- package/src/cli/index.ts +14 -0
- package/src/cli/vite/client/index.html +27 -0
- package/src/cli/vite/client/index.tsx +30 -0
- package/src/cli/vite/client/public/apple-touch-icon.png +0 -0
- package/src/cli/vite/client/public/favicon-96x96.png +0 -0
- package/src/cli/vite/client/public/favicon.ico +0 -0
- package/src/cli/vite/client/public/favicon.svg +1 -0
- package/src/cli/vite/client/public/site.webmanifest +21 -0
- package/src/cli/vite/client/public/web-app-manifest-192x192.png +0 -0
- package/src/cli/vite/client/public/web-app-manifest-512x512.png +0 -0
- package/src/cli/vite/index.ts +115 -0
- package/src/cli.ts +6 -0
- package/src/config/defaults.ts +36 -0
- package/src/config/file.ts +53 -0
- package/src/config/index.ts +11 -0
- package/src/config/load.ts +95 -0
- package/src/config/types.ts +59 -0
- package/src/core/index.ts +2 -0
- package/src/core/project/debug.ts +30 -0
- package/src/core/project/index.ts +58 -0
- package/src/core/project/naming.ts +49 -0
- package/src/core/project/routing.ts +234 -0
- package/src/core/project/types.ts +47 -0
- package/src/core/reflect/index.ts +18 -0
- package/src/core/reflect/indexed.ts +242 -0
- package/src/core/reflect/resolve.ts +159 -0
- package/src/core/reflect/scan.ts +816 -0
- package/src/core/reflect/state.ts +75 -0
- package/src/core/reflect/types.ts +164 -0
- package/src/core/reflect/walk.ts +121 -0
- package/src/solidjs/index.ts +1 -0
- package/src/solidjs/jsx-runtime.ts +1 -0
- package/src/ui/App.tsx +115 -0
- package/src/ui/components/Breadcrumb.tsx +53 -0
- package/src/ui/components/Code/index.tsx +112 -0
- package/src/ui/components/Comment.tsx +221 -0
- package/src/ui/components/Declaration.tsx +210 -0
- package/src/ui/components/Header.tsx +99 -0
- package/src/ui/components/Layout.tsx +62 -0
- package/src/ui/components/Link.tsx +43 -0
- package/src/ui/components/LivePreview/Example.tsx +104 -0
- package/src/ui/components/LivePreview/Sandbox.tsx +36 -0
- package/src/ui/components/LivePreview/index.ts +3 -0
- package/src/ui/components/LivePreview/transform.ts +28 -0
- package/src/ui/components/Markdown.tsx +16 -0
- package/src/ui/components/Page.tsx +162 -0
- package/src/ui/components/References.tsx +34 -0
- package/src/ui/components/SearchPalette.tsx +266 -0
- package/src/ui/components/Sidebar.tsx +107 -0
- package/src/ui/components/Syntax.tsx +10 -0
- package/src/ui/components/ThemeToggle.tsx +50 -0
- package/src/ui/components/Type.tsx +583 -0
- package/src/ui/components/index.ts +15 -0
- package/src/ui/context/components.tsx +103 -0
- package/src/ui/context/global.ts +33 -0
- package/src/ui/context/index.ts +4 -0
- package/src/ui/context/markup/index.tsx +39 -0
- package/src/ui/context/markup/markdown.ts +37 -0
- package/src/ui/context/markup/shiki.ts +72 -0
- package/src/ui/context/markup/util.ts +20 -0
- package/src/ui/context/project/index.tsx +47 -0
- package/src/ui/context/project/indexed.ts +52 -0
- package/src/ui/context/project/types.ts +14 -0
- package/src/ui/context/theme.tsx +45 -0
- package/src/ui/hooks/index.ts +116 -0
- package/src/ui/index.ts +4 -0
- package/src/ui/renderer.tsx +31 -0
- package/src/ui/util/comment.ts +12 -0
- package/src/ui/util/kind.ts +120 -0
- package/src/ui/util/markdown.ts +74 -0
- package/src/ui/util/search.ts +84 -0
- package/theme.css +301 -0
- package/tsconfig.client.json +12 -0
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* String discriminants for everything we render. Server-side normalisation
|
|
3
|
+
* (in `scan.ts`) collapses callable variables to `function`, so the client
|
|
4
|
+
* can read `decl.kind` directly without runtime adjustment.
|
|
5
|
+
*
|
|
6
|
+
* Members like `'enum-member'`, `'property'`, … are not declarations but
|
|
7
|
+
* still appear in member listings and search hits.
|
|
8
|
+
*/
|
|
9
|
+
export type Kind =
|
|
10
|
+
| 'module'
|
|
11
|
+
| 'namespace'
|
|
12
|
+
| 'export'
|
|
13
|
+
| 'variable'
|
|
14
|
+
| 'function'
|
|
15
|
+
| 'class'
|
|
16
|
+
| 'interface'
|
|
17
|
+
| 'type-alias'
|
|
18
|
+
| 'enum'
|
|
19
|
+
| 'enum-member'
|
|
20
|
+
| 'property'
|
|
21
|
+
| 'method'
|
|
22
|
+
| 'parameter'
|
|
23
|
+
| 'signature'
|
|
24
|
+
| 'index-signature'
|
|
25
|
+
| 'record'
|
|
26
|
+
| 'unknown'
|
|
27
|
+
|
|
28
|
+
const LABELS: Record<Kind, string> = {
|
|
29
|
+
module: 'module',
|
|
30
|
+
namespace: 'namespace',
|
|
31
|
+
export: 'export',
|
|
32
|
+
variable: 'variable',
|
|
33
|
+
function: 'function',
|
|
34
|
+
class: 'class',
|
|
35
|
+
interface: 'interface',
|
|
36
|
+
'type-alias': 'type',
|
|
37
|
+
enum: 'enum',
|
|
38
|
+
'enum-member': 'member',
|
|
39
|
+
property: 'property',
|
|
40
|
+
method: 'method',
|
|
41
|
+
parameter: 'parameter',
|
|
42
|
+
signature: 'signature',
|
|
43
|
+
'index-signature': 'index signature',
|
|
44
|
+
record: 'object',
|
|
45
|
+
unknown: 'unknown',
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export const labelOf = (kind: Kind | string): string => LABELS[kind as Kind] ?? 'symbol'
|
|
49
|
+
|
|
50
|
+
const SHORTS: Partial<Record<Kind, string>> = {
|
|
51
|
+
module: 'M',
|
|
52
|
+
namespace: 'N',
|
|
53
|
+
variable: 'V',
|
|
54
|
+
function: 'ƒ',
|
|
55
|
+
class: 'C',
|
|
56
|
+
interface: 'I',
|
|
57
|
+
'type-alias': 'T',
|
|
58
|
+
enum: 'E',
|
|
59
|
+
property: 'p',
|
|
60
|
+
method: 'm',
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export const shortOf = (kind: Kind | string): string => SHORTS[kind as Kind] ?? '·'
|
|
64
|
+
|
|
65
|
+
const ROUTABLE: ReadonlySet<Kind> = new Set([
|
|
66
|
+
'module',
|
|
67
|
+
'namespace',
|
|
68
|
+
'class',
|
|
69
|
+
'interface',
|
|
70
|
+
'function',
|
|
71
|
+
'variable',
|
|
72
|
+
'enum',
|
|
73
|
+
'type-alias',
|
|
74
|
+
])
|
|
75
|
+
|
|
76
|
+
export const isRoutable = (kind: Kind | string): boolean => ROUTABLE.has(kind as Kind)
|
|
77
|
+
|
|
78
|
+
const PLURAL: Record<Kind, string> = {
|
|
79
|
+
module: 'modules',
|
|
80
|
+
namespace: 'namespaces',
|
|
81
|
+
export: 'exports',
|
|
82
|
+
variable: 'variables',
|
|
83
|
+
function: 'functions',
|
|
84
|
+
class: 'classes',
|
|
85
|
+
interface: 'interfaces',
|
|
86
|
+
'type-alias': 'types',
|
|
87
|
+
enum: 'enums',
|
|
88
|
+
'enum-member': 'members',
|
|
89
|
+
property: 'properties',
|
|
90
|
+
method: 'methods',
|
|
91
|
+
parameter: 'parameters',
|
|
92
|
+
signature: 'signatures',
|
|
93
|
+
'index-signature': 'index signatures',
|
|
94
|
+
record: 'objects',
|
|
95
|
+
unknown: 'unknown',
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export const pluralLabel = (kind: Kind | string): string => PLURAL[kind as Kind] ?? `${labelOf(kind)}s`
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Canonical group ordering: functions → variables → types → everything else.
|
|
102
|
+
* Unknown titles sort to the end.
|
|
103
|
+
*/
|
|
104
|
+
const GROUP_ORDER = [
|
|
105
|
+
'modules',
|
|
106
|
+
'namespaces',
|
|
107
|
+
'functions',
|
|
108
|
+
'variables',
|
|
109
|
+
'types',
|
|
110
|
+
'classes',
|
|
111
|
+
'interfaces',
|
|
112
|
+
'enums',
|
|
113
|
+
'properties',
|
|
114
|
+
'methods',
|
|
115
|
+
]
|
|
116
|
+
|
|
117
|
+
export const groupOrder = (title: string): number => {
|
|
118
|
+
const i = GROUP_ORDER.indexOf(title.trim().toLowerCase())
|
|
119
|
+
return i < 0 ? GROUP_ORDER.length : i
|
|
120
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import type { Highlighter } from 'shiki'
|
|
2
|
+
import { Marked } from 'marked'
|
|
3
|
+
|
|
4
|
+
let highlighterPromise: Promise<Highlighter> | null = null
|
|
5
|
+
|
|
6
|
+
const LANGS = ['ts', 'tsx', 'js', 'jsx', 'json', 'bash', 'html', 'css', 'md']
|
|
7
|
+
|
|
8
|
+
export const getHighlighter = (): Promise<Highlighter> => {
|
|
9
|
+
if (!highlighterPromise) {
|
|
10
|
+
highlighterPromise = import('shiki').then((s) =>
|
|
11
|
+
s.createHighlighter({ themes: ['github-light', 'github-dark'], langs: LANGS }),
|
|
12
|
+
)
|
|
13
|
+
}
|
|
14
|
+
return highlighterPromise
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
const escape = (s: string) =>
|
|
18
|
+
s.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"')
|
|
19
|
+
|
|
20
|
+
export const langOf = (info: string | undefined) => {
|
|
21
|
+
const raw = (info ?? '').trim().split(/\s+/)[0]?.toLowerCase() ?? ''
|
|
22
|
+
if (!raw) return 'text'
|
|
23
|
+
if (LANGS.includes(raw)) return raw
|
|
24
|
+
if (raw === 'sh' || raw === 'zsh') return 'bash'
|
|
25
|
+
if (raw === 'typescript') return 'ts'
|
|
26
|
+
if (raw === 'javascript') return 'js'
|
|
27
|
+
return 'text'
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/** Lookup for inline-code auto-linking. Receives the raw `code` text, returns a slug or undefined. */
|
|
31
|
+
export type CodespanLookup = (raw: string) => string | undefined
|
|
32
|
+
|
|
33
|
+
const ID = /^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*)*$/
|
|
34
|
+
|
|
35
|
+
const buildMarked = (h: Highlighter | null, lookup?: CodespanLookup) => {
|
|
36
|
+
const m = new Marked({
|
|
37
|
+
gfm: true,
|
|
38
|
+
breaks: false,
|
|
39
|
+
renderer: {
|
|
40
|
+
code({ text, lang }) {
|
|
41
|
+
const language = langOf(lang)
|
|
42
|
+
if (h && language !== 'text') {
|
|
43
|
+
try {
|
|
44
|
+
return h.codeToHtml(text, {
|
|
45
|
+
lang: language,
|
|
46
|
+
themes: { light: 'github-light', dark: 'github-dark' },
|
|
47
|
+
defaultColor: false,
|
|
48
|
+
})
|
|
49
|
+
} catch {
|
|
50
|
+
/* fall through */
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
return `<pre class="codeblock"><code>${escape(text)}</code></pre>`
|
|
54
|
+
},
|
|
55
|
+
codespan({ text }) {
|
|
56
|
+
if (lookup && ID.test(text)) {
|
|
57
|
+
const slug = lookup(text)
|
|
58
|
+
if (slug) return `<a href="/${slug}" class="codelink"><code>${text}</code></a>`
|
|
59
|
+
}
|
|
60
|
+
return `<code>${text}</code>`
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
})
|
|
64
|
+
return m
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export const renderMarkdown = async (src: string, lookup?: CodespanLookup): Promise<string> => {
|
|
68
|
+
const h = await getHighlighter().catch(() => null)
|
|
69
|
+
return buildMarked(h, lookup).parse(src) as string
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export const renderMarkdownSync = (src: string, lookup?: CodespanLookup): string => {
|
|
73
|
+
return buildMarked(null, lookup).parse(src) as string
|
|
74
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { create, insert, search } from '@orama/orama'
|
|
2
|
+
|
|
3
|
+
import { type Types } from '../context/index.ts'
|
|
4
|
+
import { type Kind } from './kind.ts'
|
|
5
|
+
|
|
6
|
+
export type SearchHit = { name: string; qualified: string; kind: Kind; slug: string; file: string }
|
|
7
|
+
|
|
8
|
+
export type SearchEngine = { query: (term: string, limit?: number) => Promise<SearchHit[]> }
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Build an in-browser Orama index over every routed page in `project`.
|
|
12
|
+
* Names are boosted above qualified paths so exact-name hits rank first;
|
|
13
|
+
* `tolerance: 1` allows one-character typos. Each declaration is indexed once
|
|
14
|
+
* — re-export routes share a declaration id, so they're de-duplicated here.
|
|
15
|
+
*/
|
|
16
|
+
export const createSearchEngine = async (project: Types.Project): Promise<SearchEngine> => {
|
|
17
|
+
const db = await create({
|
|
18
|
+
// `terms` holds the name/qualified split into sub-words so `provider`
|
|
19
|
+
// matches `ProjectProvider` and `render error` matches `renderError`.
|
|
20
|
+
schema: { name: 'string', qualified: 'string', kind: 'string', slug: 'string', file: 'string', terms: 'string' },
|
|
21
|
+
components: { tokenizer: { stemming: false } },
|
|
22
|
+
})
|
|
23
|
+
|
|
24
|
+
const seen = new Set<number>()
|
|
25
|
+
const walk = async (routes: Types.RouteNode[]): Promise<void> => {
|
|
26
|
+
for (const r of routes) {
|
|
27
|
+
if (r.page.kind !== 'markdown' && !seen.has(r.page.id)) {
|
|
28
|
+
seen.add(r.page.id)
|
|
29
|
+
const decl = project.byId(r.page.id)
|
|
30
|
+
const kind = (decl?.kind ?? 'module') as Kind
|
|
31
|
+
await insert(db, {
|
|
32
|
+
name: r.label,
|
|
33
|
+
qualified: r.page.qualified,
|
|
34
|
+
kind,
|
|
35
|
+
slug: r.slug,
|
|
36
|
+
file: decl?.sources?.[0]?.file ?? '',
|
|
37
|
+
terms: termsOf(r.label, r.page.qualified),
|
|
38
|
+
})
|
|
39
|
+
}
|
|
40
|
+
await walk(r.children)
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
await walk(project.routes)
|
|
44
|
+
|
|
45
|
+
return {
|
|
46
|
+
query: async (term, limit = 20) => {
|
|
47
|
+
const t = term.trim()
|
|
48
|
+
if (!t) return []
|
|
49
|
+
const res = await search(db, {
|
|
50
|
+
term: t,
|
|
51
|
+
properties: ['name', 'qualified', 'terms'],
|
|
52
|
+
boost: { name: 3, qualified: 2, terms: 1 },
|
|
53
|
+
tolerance: 1,
|
|
54
|
+
limit,
|
|
55
|
+
})
|
|
56
|
+
return res.hits.map((h) => h.document as unknown as SearchHit)
|
|
57
|
+
},
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/** Sub-words of the indexed strings, so partial / multi-word queries match. */
|
|
62
|
+
const termsOf = (...sources: string[]): string => {
|
|
63
|
+
const words = new Set<string>()
|
|
64
|
+
for (const s of sources) for (const w of splitWords(s)) words.add(w)
|
|
65
|
+
return [...words].join(' ')
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Split an identifier into lowercase words on separators and case boundaries:
|
|
70
|
+
* `getHTMLParser` -> `get html parser`, `render-error` -> `render error`,
|
|
71
|
+
* `a.b_c` -> `a b c`.
|
|
72
|
+
*/
|
|
73
|
+
const splitWords = (input: string): string[] =>
|
|
74
|
+
input
|
|
75
|
+
.split(/[\s._/\\-]+/)
|
|
76
|
+
.flatMap((part) =>
|
|
77
|
+
part
|
|
78
|
+
.replace(/([a-z0-9])([A-Z])/g, '$1 $2')
|
|
79
|
+
.replace(/([A-Z]+)([A-Z][a-z])/g, '$1 $2')
|
|
80
|
+
.replace(/([A-Za-z])([0-9])/g, '$1 $2')
|
|
81
|
+
.split(/\s+/),
|
|
82
|
+
)
|
|
83
|
+
.map((w) => w.toLowerCase())
|
|
84
|
+
.filter(Boolean)
|
package/theme.css
ADDED
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
@import 'tailwindcss';
|
|
2
|
+
@source './src';
|
|
3
|
+
|
|
4
|
+
@theme inline {
|
|
5
|
+
--color-bg: var(--color-bg);
|
|
6
|
+
--color-panel: var(--color-panel);
|
|
7
|
+
--color-hover: var(--color-hover);
|
|
8
|
+
--color-line: var(--color-line);
|
|
9
|
+
--color-fg: var(--color-fg);
|
|
10
|
+
--color-mute: var(--color-mute);
|
|
11
|
+
--color-link: var(--color-link);
|
|
12
|
+
--color-accent: var(--color-accent);
|
|
13
|
+
|
|
14
|
+
/* Typography mapping to Tailwind v4 namespaces */
|
|
15
|
+
--font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
16
|
+
--font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
17
|
+
--font-code: var(--font-mono);
|
|
18
|
+
--font-code-size: 0.85em;
|
|
19
|
+
--text-font-size: 15px;
|
|
20
|
+
--leading-line-height: 1.65;
|
|
21
|
+
--tracking-letter-spacing: -0.005em;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
:root {
|
|
25
|
+
--color-bg: #ffffff;
|
|
26
|
+
--color-panel: #fafafa;
|
|
27
|
+
--color-hover: #f0f0f0;
|
|
28
|
+
--color-line: #e8e8e8;
|
|
29
|
+
--color-fg: #0a0a0a;
|
|
30
|
+
--color-mute: #6b6b6b;
|
|
31
|
+
--color-link: #0a0a0a;
|
|
32
|
+
--color-accent: #6f42c1;
|
|
33
|
+
--color-code-bg: #fafafa;
|
|
34
|
+
--color-error: #c5302a;
|
|
35
|
+
--color-error-bg: rgba(197, 48, 42, 0.06);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
:root[data-theme='dark'] {
|
|
39
|
+
--color-bg: #0a0a0a;
|
|
40
|
+
--color-panel: #131313;
|
|
41
|
+
--color-hover: #1f1f1f;
|
|
42
|
+
--color-line: #1f1f1f;
|
|
43
|
+
--color-fg: #fafafa;
|
|
44
|
+
--color-mute: #a3a3a3;
|
|
45
|
+
--color-link: #fafafa;
|
|
46
|
+
--color-accent: #c4a8ff;
|
|
47
|
+
--color-code-bg: #131313;
|
|
48
|
+
--color-error: #fca5a5;
|
|
49
|
+
--color-error-bg: rgba(252, 165, 165, 0.08);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@media (prefers-color-scheme: dark) {
|
|
53
|
+
:root:not([data-theme='light']) {
|
|
54
|
+
--color-bg: #0a0a0a;
|
|
55
|
+
--color-panel: #131313;
|
|
56
|
+
--color-hover: #1f1f1f;
|
|
57
|
+
--color-line: #1f1f1f;
|
|
58
|
+
--color-fg: #fafafa;
|
|
59
|
+
--color-mute: #a3a3a3;
|
|
60
|
+
--color-link: #fafafa;
|
|
61
|
+
--color-accent: #c4a8ff;
|
|
62
|
+
--color-code-bg: #131313;
|
|
63
|
+
--color-error: #fca5a5;
|
|
64
|
+
--color-error-bg: rgba(252, 165, 165, 0.08);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@layer base {
|
|
69
|
+
html,
|
|
70
|
+
body {
|
|
71
|
+
background: var(--color-bg);
|
|
72
|
+
color: var(--color-fg);
|
|
73
|
+
}
|
|
74
|
+
html {
|
|
75
|
+
font-feature-settings: 'cv11', 'ss01', 'ss03';
|
|
76
|
+
}
|
|
77
|
+
body {
|
|
78
|
+
font-family: var(--font-sans);
|
|
79
|
+
-webkit-font-smoothing: antialiased;
|
|
80
|
+
font-size: var(--text-font-size);
|
|
81
|
+
line-height: var(--leading-line-height);
|
|
82
|
+
letter-spacing: var(--tracking-letter-spacing);
|
|
83
|
+
}
|
|
84
|
+
@supports (font-variation-settings: normal) {
|
|
85
|
+
body {
|
|
86
|
+
font-family:
|
|
87
|
+
'Inter var',
|
|
88
|
+
-apple-system,
|
|
89
|
+
BlinkMacSystemFont,
|
|
90
|
+
sans-serif;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
code,
|
|
94
|
+
pre,
|
|
95
|
+
kbd {
|
|
96
|
+
font-family: var(--font-mono);
|
|
97
|
+
font-feature-settings:
|
|
98
|
+
'liga' 0,
|
|
99
|
+
'calt' 0;
|
|
100
|
+
}
|
|
101
|
+
* {
|
|
102
|
+
scrollbar-width: thin;
|
|
103
|
+
scrollbar-color: var(--color-line) transparent;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
@layer components {
|
|
108
|
+
code, pre {
|
|
109
|
+
background: transparent !important;
|
|
110
|
+
padding: 0;
|
|
111
|
+
margin: 0;
|
|
112
|
+
border: 0;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
code {
|
|
116
|
+
font-family: var(--font-code);
|
|
117
|
+
font-size: var(--font-code-size);
|
|
118
|
+
white-space: pre-wrap;
|
|
119
|
+
tab-size: 2;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
code,
|
|
123
|
+
code span {
|
|
124
|
+
color: var(--shiki-light);
|
|
125
|
+
font-style: var(--shiki-light-font-style);
|
|
126
|
+
font-weight: var(--shiki-light-font-weight);
|
|
127
|
+
text-decoration: var(--shiki-light-text-decoration);
|
|
128
|
+
}
|
|
129
|
+
:root[data-theme='dark'] code,
|
|
130
|
+
:root[data-theme='dark'] code span {
|
|
131
|
+
color: var(--shiki-dark) !important;
|
|
132
|
+
font-style: var(--shiki-dark-font-style) !important;
|
|
133
|
+
font-weight: var(--shiki-dark-font-weight) !important;
|
|
134
|
+
text-decoration: var(--shiki-dark-text-decoration) !important;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.codeblock {
|
|
138
|
+
background: var(--color-code-bg);
|
|
139
|
+
border: 1px solid var(--color-line);
|
|
140
|
+
border-radius: 8px;
|
|
141
|
+
padding: 14px 16px;
|
|
142
|
+
}
|
|
143
|
+
.codeblock:focus-within {
|
|
144
|
+
border-color: var(--color-mute);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/* Syntax highlighting */
|
|
149
|
+
@layer components {
|
|
150
|
+
.shiki,
|
|
151
|
+
.shiki span {
|
|
152
|
+
color: var(--shiki-light);
|
|
153
|
+
font-style: var(--shiki-light-font-style);
|
|
154
|
+
font-weight: var(--shiki-light-font-weight);
|
|
155
|
+
text-decoration: var(--shiki-light-text-decoration);
|
|
156
|
+
}
|
|
157
|
+
:root[data-theme='dark'] .shiki,
|
|
158
|
+
:root[data-theme='dark'] .shiki span {
|
|
159
|
+
color: var(--shiki-dark) !important;
|
|
160
|
+
font-style: var(--shiki-dark-font-style) !important;
|
|
161
|
+
font-weight: var(--shiki-dark-font-weight) !important;
|
|
162
|
+
text-decoration: var(--shiki-dark-text-decoration) !important;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
@layer components {
|
|
167
|
+
.markdown {
|
|
168
|
+
color: var(--color-fg);
|
|
169
|
+
}
|
|
170
|
+
.markdown.markdown-tight > :first-child {
|
|
171
|
+
margin-top: 0;
|
|
172
|
+
}
|
|
173
|
+
.markdown.markdown-tight > :last-child {
|
|
174
|
+
margin-bottom: 0;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.markdown h1 {
|
|
178
|
+
font-weight: 600;
|
|
179
|
+
font-size: 1.875rem;
|
|
180
|
+
margin: 0 0 1rem 0;
|
|
181
|
+
letter-spacing: -0.02em;
|
|
182
|
+
}
|
|
183
|
+
.markdown h2 {
|
|
184
|
+
font-weight: 600;
|
|
185
|
+
font-size: 1.4rem;
|
|
186
|
+
margin: 2.5rem 0 0.75rem 0;
|
|
187
|
+
padding-bottom: 0.25rem;
|
|
188
|
+
border-bottom: 1px solid var(--color-line);
|
|
189
|
+
letter-spacing: -0.02em;
|
|
190
|
+
}
|
|
191
|
+
.markdown h3 {
|
|
192
|
+
font-weight: 600;
|
|
193
|
+
font-size: 1.1rem;
|
|
194
|
+
margin: 2rem 0 0.5rem 0;
|
|
195
|
+
letter-spacing: -0.01em;
|
|
196
|
+
}
|
|
197
|
+
.markdown h4 {
|
|
198
|
+
font-weight: 600;
|
|
199
|
+
font-size: 0.78rem;
|
|
200
|
+
margin: 1.5rem 0 0.5rem 0;
|
|
201
|
+
color: var(--color-mute);
|
|
202
|
+
text-transform: uppercase;
|
|
203
|
+
letter-spacing: 0.06em;
|
|
204
|
+
}
|
|
205
|
+
.markdown p {
|
|
206
|
+
margin: 1rem 0;
|
|
207
|
+
}
|
|
208
|
+
.markdown ul {
|
|
209
|
+
list-style: disc;
|
|
210
|
+
padding-left: 1.5rem;
|
|
211
|
+
margin: 1rem 0;
|
|
212
|
+
}
|
|
213
|
+
.markdown ol {
|
|
214
|
+
list-style: decimal;
|
|
215
|
+
padding-left: 1.5rem;
|
|
216
|
+
margin: 1rem 0;
|
|
217
|
+
}
|
|
218
|
+
.markdown li {
|
|
219
|
+
margin: 0.25rem 0;
|
|
220
|
+
}
|
|
221
|
+
.markdown blockquote {
|
|
222
|
+
border-left: 2px solid var(--color-line);
|
|
223
|
+
padding-left: 1rem;
|
|
224
|
+
color: var(--color-mute);
|
|
225
|
+
font-style: italic;
|
|
226
|
+
margin: 1rem 0;
|
|
227
|
+
}
|
|
228
|
+
.markdown a {
|
|
229
|
+
text-decoration: underline;
|
|
230
|
+
text-decoration-color: var(--color-line);
|
|
231
|
+
text-underline-offset: 3px;
|
|
232
|
+
text-decoration-thickness: 1px;
|
|
233
|
+
font-weight: 500;
|
|
234
|
+
transition: opacity 150ms;
|
|
235
|
+
}
|
|
236
|
+
.markdown a:hover {
|
|
237
|
+
opacity: 0.7;
|
|
238
|
+
}
|
|
239
|
+
.markdown :not(pre) > code {
|
|
240
|
+
background: var(--color-code-bg);
|
|
241
|
+
border: 1px solid var(--color-line);
|
|
242
|
+
border-radius: 4px;
|
|
243
|
+
padding: 0 5px;
|
|
244
|
+
font-size: 0.85em;
|
|
245
|
+
}
|
|
246
|
+
.markdown a.codelink {
|
|
247
|
+
text-decoration: none;
|
|
248
|
+
}
|
|
249
|
+
.markdown a.codelink > code {
|
|
250
|
+
border-color: var(--color-mute);
|
|
251
|
+
transition:
|
|
252
|
+
color 150ms,
|
|
253
|
+
border-color 150ms;
|
|
254
|
+
}
|
|
255
|
+
.markdown a.codelink:hover > code {
|
|
256
|
+
color: var(--color-accent);
|
|
257
|
+
border-color: var(--color-accent);
|
|
258
|
+
}
|
|
259
|
+
.markdown pre {
|
|
260
|
+
background: var(--color-code-bg);
|
|
261
|
+
border: 1px solid var(--color-line);
|
|
262
|
+
border-radius: 8px;
|
|
263
|
+
padding: 14px 16px;
|
|
264
|
+
overflow-x: auto;
|
|
265
|
+
margin: 1.25rem 0;
|
|
266
|
+
}
|
|
267
|
+
.markdown pre code {
|
|
268
|
+
background: transparent;
|
|
269
|
+
border: none;
|
|
270
|
+
padding: 0;
|
|
271
|
+
}
|
|
272
|
+
.markdown table {
|
|
273
|
+
font-size: 0.9em;
|
|
274
|
+
margin: 1.25rem 0;
|
|
275
|
+
border-collapse: collapse;
|
|
276
|
+
}
|
|
277
|
+
.markdown th,
|
|
278
|
+
.markdown td {
|
|
279
|
+
border: 1px solid var(--color-line);
|
|
280
|
+
padding: 0.375rem 0.625rem;
|
|
281
|
+
}
|
|
282
|
+
.markdown th {
|
|
283
|
+
background: var(--color-panel);
|
|
284
|
+
font-weight: 600;
|
|
285
|
+
text-align: left;
|
|
286
|
+
}
|
|
287
|
+
.markdown hr {
|
|
288
|
+
border: 0;
|
|
289
|
+
border-top: 1px solid var(--color-line);
|
|
290
|
+
margin: 2rem 0;
|
|
291
|
+
}
|
|
292
|
+
/* Tailwind preflight forces `img { display: block }`; restore inline flow so
|
|
293
|
+
badge rows (shields-style image links separated by whitespace) sit
|
|
294
|
+
side-by-side instead of stacking. */
|
|
295
|
+
.markdown img {
|
|
296
|
+
display: inline-block;
|
|
297
|
+
vertical-align: middle;
|
|
298
|
+
max-width: 100%;
|
|
299
|
+
border-radius: 4px;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"lib": ["DOM"],
|
|
4
|
+
"types": ["@lickle/docs/client"],
|
|
5
|
+
"jsx": "preserve",
|
|
6
|
+
"jsxImportSource": "@lickle/docs/solidjs",
|
|
7
|
+
"module": "ESNext",
|
|
8
|
+
"moduleResolution": "bundler",
|
|
9
|
+
"allowImportingTsExtensions": true,
|
|
10
|
+
"noEmit": true
|
|
11
|
+
}
|
|
12
|
+
}
|