livemark 0.0.0-dev
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/LICENSE.md +9 -0
- package/README.md +3 -0
- package/build/actions/config/define.d.ts +6 -0
- package/build/actions/config/define.js +8 -0
- package/build/actions/config/define.unit.d.ts +1 -0
- package/build/actions/config/define.unit.js +34 -0
- package/build/actions/config/load.d.ts +5 -0
- package/build/actions/config/load.js +22 -0
- package/build/actions/config/load.unit.d.ts +1 -0
- package/build/actions/config/load.unit.js +23 -0
- package/build/commands/build.d.ts +5 -0
- package/build/commands/build.js +13 -0
- package/build/commands/preview.d.ts +5 -0
- package/build/commands/preview.js +18 -0
- package/build/commands/start.d.ts +5 -0
- package/build/commands/start.js +19 -0
- package/build/docs/markdown/includes/example.d.ts +9 -0
- package/build/docs/markdown/includes/example.js +5 -0
- package/build/entrypoints/main.d.ts +2 -0
- package/build/entrypoints/main.js +12 -0
- package/build/helpers/program.d.ts +2 -0
- package/build/helpers/program.js +5 -0
- package/build/index.d.ts +1 -0
- package/build/index.js +2 -0
- package/build/livemark.config.d.ts +9 -0
- package/build/livemark.config.js +5 -0
- package/build/models/config.d.ts +33 -0
- package/build/models/config.js +14 -0
- package/build/program.d.ts +2 -0
- package/build/program.js +14 -0
- package/build/vite.config.d.ts +2 -0
- package/build/vite.config.js +48 -0
- package/build/website/client.tsx +10 -0
- package/build/website/components/Abbr.tsx +17 -0
- package/build/website/components/AnsiCode.tsx +15 -0
- package/build/website/components/Banner.tsx +32 -0
- package/build/website/components/Breadcrumbs.tsx +19 -0
- package/build/website/components/Callout.tsx +72 -0
- package/build/website/components/Cards.tsx +66 -0
- package/build/website/components/CodeBlock.tsx +118 -0
- package/build/website/components/CodeTabs.tsx +83 -0
- package/build/website/components/Columns.tsx +17 -0
- package/build/website/components/Content.tsx +7 -0
- package/build/website/components/ContentTab.tsx +7 -0
- package/build/website/components/ContentTabs.tsx +82 -0
- package/build/website/components/DefaultCatchBoundary.tsx +54 -0
- package/build/website/components/DefinitionList.tsx +21 -0
- package/build/website/components/Details.tsx +30 -0
- package/build/website/components/FileTree.tsx +52 -0
- package/build/website/components/Footer.tsx +9 -0
- package/build/website/components/FootnoteRef.tsx +52 -0
- package/build/website/components/Heading.tsx +20 -0
- package/build/website/components/InlineBadge.tsx +9 -0
- package/build/website/components/InlineIcon.tsx +21 -0
- package/build/website/components/InlineToc.tsx +31 -0
- package/build/website/components/Layout.tsx +220 -0
- package/build/website/components/LinkButton.tsx +31 -0
- package/build/website/components/Mermaid.tsx +37 -0
- package/build/website/components/NotFound.tsx +27 -0
- package/build/website/components/PackageTabs.tsx +74 -0
- package/build/website/components/PageToolbar.tsx +65 -0
- package/build/website/components/PrevNext.tsx +52 -0
- package/build/website/components/SearchDialog.tsx +245 -0
- package/build/website/components/Section.tsx +24 -0
- package/build/website/components/SectionHeader.tsx +35 -0
- package/build/website/components/SiteTitle.tsx +16 -0
- package/build/website/components/SortableTable.tsx +81 -0
- package/build/website/components/SoundCloud.tsx +16 -0
- package/build/website/components/Theme.tsx +40 -0
- package/build/website/components/Toc.tsx +99 -0
- package/build/website/components/YouTube.tsx +16 -0
- package/build/website/components/ZoomImage.tsx +30 -0
- package/build/website/content-collections.ts +181 -0
- package/build/website/elements/accordion.tsx +78 -0
- package/build/website/elements/alert-dialog.tsx +185 -0
- package/build/website/elements/alert.tsx +74 -0
- package/build/website/elements/aspect-ratio.tsx +22 -0
- package/build/website/elements/avatar.tsx +107 -0
- package/build/website/elements/badge.tsx +51 -0
- package/build/website/elements/breadcrumb.tsx +120 -0
- package/build/website/elements/button-group.tsx +87 -0
- package/build/website/elements/button.tsx +57 -0
- package/build/website/elements/calendar.tsx +229 -0
- package/build/website/elements/card.tsx +102 -0
- package/build/website/elements/carousel.tsx +240 -0
- package/build/website/elements/chart.tsx +372 -0
- package/build/website/elements/checkbox.tsx +26 -0
- package/build/website/elements/collapsible.tsx +19 -0
- package/build/website/elements/command.tsx +210 -0
- package/build/website/elements/context-menu.tsx +270 -0
- package/build/website/elements/dialog.tsx +152 -0
- package/build/website/elements/direction.tsx +4 -0
- package/build/website/elements/drawer.tsx +127 -0
- package/build/website/elements/dropdown-menu.tsx +260 -0
- package/build/website/elements/empty.tsx +104 -0
- package/build/website/elements/field.tsx +235 -0
- package/build/website/elements/hover-card.tsx +49 -0
- package/build/website/elements/input-group.tsx +171 -0
- package/build/website/elements/input-otp.tsx +84 -0
- package/build/website/elements/input.tsx +18 -0
- package/build/website/elements/item.tsx +199 -0
- package/build/website/elements/kbd.tsx +26 -0
- package/build/website/elements/label.tsx +17 -0
- package/build/website/elements/menubar.tsx +282 -0
- package/build/website/elements/native-select.tsx +56 -0
- package/build/website/elements/navigation-menu.tsx +171 -0
- package/build/website/elements/pagination.tsx +133 -0
- package/build/website/elements/popover.tsx +88 -0
- package/build/website/elements/progress.tsx +81 -0
- package/build/website/elements/radio-group.tsx +36 -0
- package/build/website/elements/resizable.tsx +48 -0
- package/build/website/elements/scroll-area.tsx +51 -0
- package/build/website/elements/select.tsx +200 -0
- package/build/website/elements/separator.tsx +22 -0
- package/build/website/elements/sheet.tsx +130 -0
- package/build/website/elements/sidebar.tsx +717 -0
- package/build/website/elements/skeleton.tsx +13 -0
- package/build/website/elements/slider.tsx +57 -0
- package/build/website/elements/sonner.tsx +40 -0
- package/build/website/elements/spinner.tsx +16 -0
- package/build/website/elements/switch.tsx +30 -0
- package/build/website/elements/table.tsx +112 -0
- package/build/website/elements/tabs.tsx +79 -0
- package/build/website/elements/textarea.tsx +16 -0
- package/build/website/elements/toggle-group.tsx +87 -0
- package/build/website/elements/toggle.tsx +43 -0
- package/build/website/elements/tooltip.tsx +67 -0
- package/build/website/env.d.ts +10 -0
- package/build/website/globals.d.ts +8 -0
- package/build/website/helpers/article-icon.ts +59 -0
- package/build/website/helpers/articles.ts +24 -0
- package/build/website/helpers/resolve-includes.ts +131 -0
- package/build/website/helpers/resolve-includes.unit.ts +126 -0
- package/build/website/helpers/search-text.ts +15 -0
- package/build/website/helpers/style.ts +6 -0
- package/build/website/helpers/theme.ts +27 -0
- package/build/website/helpers/toc-context.ts +10 -0
- package/build/website/helpers/toc.ts +51 -0
- package/build/website/helpers/toc.unit.ts +74 -0
- package/build/website/hooks/in-view.ts +30 -0
- package/build/website/hooks/media.ts +19 -0
- package/build/website/models/article.ts +40 -0
- package/build/website/plugins/rehype-inline-code.ts +107 -0
- package/build/website/plugins/remark-abbr.ts +46 -0
- package/build/website/plugins/remark-abbr.unit.ts +99 -0
- package/build/website/plugins/remark-ansi.ts +247 -0
- package/build/website/plugins/remark-ansi.unit.ts +197 -0
- package/build/website/plugins/remark-badge.ts +50 -0
- package/build/website/plugins/remark-badge.unit.ts +96 -0
- package/build/website/plugins/remark-button.ts +60 -0
- package/build/website/plugins/remark-button.unit.ts +147 -0
- package/build/website/plugins/remark-callout.ts +57 -0
- package/build/website/plugins/remark-card.ts +80 -0
- package/build/website/plugins/remark-code-tabs.ts +87 -0
- package/build/website/plugins/remark-columns.ts +66 -0
- package/build/website/plugins/remark-custom-heading-id.ts +70 -0
- package/build/website/plugins/remark-custom-heading-id.unit.ts +131 -0
- package/build/website/plugins/remark-deflist.ts +36 -0
- package/build/website/plugins/remark-details.ts +49 -0
- package/build/website/plugins/remark-filetree.ts +89 -0
- package/build/website/plugins/remark-filetree.unit.ts +137 -0
- package/build/website/plugins/remark-github-callout.ts +71 -0
- package/build/website/plugins/remark-icon.ts +42 -0
- package/build/website/plugins/remark-image.ts +25 -0
- package/build/website/plugins/remark-media.ts +62 -0
- package/build/website/plugins/remark-media.unit.ts +74 -0
- package/build/website/plugins/remark-mermaid.ts +23 -0
- package/build/website/plugins/remark-npm.ts +52 -0
- package/build/website/plugins/remark-steps.ts +36 -0
- package/build/website/plugins/remark-steps.unit.ts +97 -0
- package/build/website/plugins/remark-tab.ts +100 -0
- package/build/website/plugins/remark-tab.unit.ts +181 -0
- package/build/website/plugins/remark-toc.ts +39 -0
- package/build/website/plugins/remark-toc.unit.ts +82 -0
- package/build/website/plugins/shiki-icon.ts +82 -0
- package/build/website/plugins/shiki-line-highlight.ts +174 -0
- package/build/website/public/logo.svg +72 -0
- package/build/website/routeTree.gen.ts +86 -0
- package/build/website/router.tsx +34 -0
- package/build/website/routes/$.tsx +149 -0
- package/build/website/routes/__root.tsx +84 -0
- package/build/website/routes/index.tsx +13 -0
- package/build/website/server.ts +7 -0
- package/build/website/styles/general.css +347 -0
- package/build/website/vite.config.ts +36 -0
- package/entrypoints/main.ts +12 -0
- package/package.json +120 -0
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
@import "tailwindcss";
|
|
2
|
+
@import "tw-animate-css";
|
|
3
|
+
@import "katex/dist/katex.min.css";
|
|
4
|
+
@plugin "@tailwindcss/typography";
|
|
5
|
+
|
|
6
|
+
@custom-variant dark (&:is(.dark *));
|
|
7
|
+
|
|
8
|
+
:root {
|
|
9
|
+
--background: oklch(1 0 0);
|
|
10
|
+
--foreground: oklch(0.145 0 0);
|
|
11
|
+
--card: oklch(1 0 0);
|
|
12
|
+
--card-foreground: oklch(0.145 0 0);
|
|
13
|
+
--popover: oklch(1 0 0);
|
|
14
|
+
--popover-foreground: oklch(0.145 0 0);
|
|
15
|
+
--primary: oklch(62.3% 0.214 259.815);
|
|
16
|
+
--primary-foreground: oklch(0.985 0 0);
|
|
17
|
+
--secondary: oklch(89.4% 0.057 293.283);
|
|
18
|
+
--secondary-foreground: oklch(0.205 0 0);
|
|
19
|
+
--muted: oklch(0.97 0 0);
|
|
20
|
+
--muted-foreground: oklch(0.556 0 0);
|
|
21
|
+
--accent: oklch(0.97 0 0);
|
|
22
|
+
--accent-foreground: oklch(0.205 0 0);
|
|
23
|
+
--destructive: oklch(0.577 0.245 27.325);
|
|
24
|
+
--destructive-foreground: oklch(0.577 0.245 27.325);
|
|
25
|
+
--border: oklch(0.922 0 0);
|
|
26
|
+
--input: oklch(0.922 0 0);
|
|
27
|
+
--ring: oklch(0.708 0 0);
|
|
28
|
+
--chart-1: oklch(0.646 0.222 41.116);
|
|
29
|
+
--chart-2: oklch(0.6 0.118 184.704);
|
|
30
|
+
--chart-3: oklch(0.398 0.07 227.392);
|
|
31
|
+
--chart-4: oklch(0.828 0.189 84.429);
|
|
32
|
+
--chart-5: oklch(0.769 0.188 70.08);
|
|
33
|
+
--radius: 0.625rem;
|
|
34
|
+
--sidebar: oklch(0.985 0 0);
|
|
35
|
+
--sidebar-foreground: oklch(0.145 0 0);
|
|
36
|
+
--sidebar-primary: oklch(0.205 0 0);
|
|
37
|
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
38
|
+
--sidebar-accent: oklch(0.97 0 0);
|
|
39
|
+
--sidebar-accent-foreground: oklch(0.205 0 0);
|
|
40
|
+
--sidebar-border: oklch(0.922 0 0);
|
|
41
|
+
--sidebar-ring: oklch(0.708 0 0);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.dark {
|
|
45
|
+
--background: oklch(0.145 0 0);
|
|
46
|
+
--foreground: oklch(0.985 0 0);
|
|
47
|
+
--card: oklch(0.145 0 0);
|
|
48
|
+
--card-foreground: oklch(0.985 0 0);
|
|
49
|
+
--popover: oklch(0.145 0 0);
|
|
50
|
+
--popover-foreground: oklch(0.985 0 0);
|
|
51
|
+
--primary: oklch(0.985 0 0);
|
|
52
|
+
--primary-foreground: oklch(0.205 0 0);
|
|
53
|
+
--secondary: oklch(0.269 0 0);
|
|
54
|
+
--secondary-foreground: oklch(0.985 0 0);
|
|
55
|
+
--muted: oklch(0.269 0 0);
|
|
56
|
+
--muted-foreground: oklch(0.708 0 0);
|
|
57
|
+
--accent: oklch(0.269 0 0);
|
|
58
|
+
--accent-foreground: oklch(0.985 0 0);
|
|
59
|
+
--destructive: oklch(0.396 0.141 25.723);
|
|
60
|
+
--destructive-foreground: oklch(0.637 0.237 25.331);
|
|
61
|
+
--border: oklch(0.269 0 0);
|
|
62
|
+
--input: oklch(0.269 0 0);
|
|
63
|
+
--ring: oklch(0.439 0 0);
|
|
64
|
+
--chart-1: oklch(0.488 0.243 264.376);
|
|
65
|
+
--chart-2: oklch(0.696 0.17 162.48);
|
|
66
|
+
--chart-3: oklch(0.769 0.188 70.08);
|
|
67
|
+
--chart-4: oklch(0.627 0.265 303.9);
|
|
68
|
+
--chart-5: oklch(0.645 0.246 16.439);
|
|
69
|
+
--sidebar: oklch(0.205 0 0);
|
|
70
|
+
--sidebar-foreground: oklch(0.985 0 0);
|
|
71
|
+
--sidebar-primary: oklch(0.488 0.243 264.376);
|
|
72
|
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
73
|
+
--sidebar-accent: oklch(0.269 0 0);
|
|
74
|
+
--sidebar-accent-foreground: oklch(0.985 0 0);
|
|
75
|
+
--sidebar-border: oklch(0.269 0 0);
|
|
76
|
+
--sidebar-ring: oklch(0.439 0 0);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@theme inline {
|
|
80
|
+
--color-background: var(--background);
|
|
81
|
+
--color-foreground: var(--foreground);
|
|
82
|
+
--color-card: var(--card);
|
|
83
|
+
--color-card-foreground: var(--card-foreground);
|
|
84
|
+
--color-popover: var(--popover);
|
|
85
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
86
|
+
--color-primary: var(--primary);
|
|
87
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
88
|
+
--color-secondary: var(--secondary);
|
|
89
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
90
|
+
--color-muted: var(--muted);
|
|
91
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
92
|
+
--color-accent: var(--accent);
|
|
93
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
94
|
+
--color-destructive: var(--destructive);
|
|
95
|
+
--color-destructive-foreground: var(--destructive-foreground);
|
|
96
|
+
--color-border: var(--border);
|
|
97
|
+
--color-input: var(--input);
|
|
98
|
+
--color-ring: var(--ring);
|
|
99
|
+
--color-chart-1: var(--chart-1);
|
|
100
|
+
--color-chart-2: var(--chart-2);
|
|
101
|
+
--color-chart-3: var(--chart-3);
|
|
102
|
+
--color-chart-4: var(--chart-4);
|
|
103
|
+
--color-chart-5: var(--chart-5);
|
|
104
|
+
--radius-sm: calc(var(--radius) - 4px);
|
|
105
|
+
--radius-md: calc(var(--radius) - 2px);
|
|
106
|
+
--radius-lg: var(--radius);
|
|
107
|
+
--radius-xl: calc(var(--radius) + 4px);
|
|
108
|
+
--color-sidebar: var(--sidebar);
|
|
109
|
+
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
110
|
+
--color-sidebar-primary: var(--sidebar-primary);
|
|
111
|
+
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
112
|
+
--color-sidebar-accent: var(--sidebar-accent);
|
|
113
|
+
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
114
|
+
--color-sidebar-border: var(--sidebar-border);
|
|
115
|
+
--color-sidebar-ring: var(--sidebar-ring);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
@layer base {
|
|
119
|
+
* {
|
|
120
|
+
@apply border-border outline-ring/50;
|
|
121
|
+
}
|
|
122
|
+
body {
|
|
123
|
+
@apply bg-background text-foreground;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
html {
|
|
127
|
+
scroll-behavior: smooth;
|
|
128
|
+
scrollbar-color: #ddd transparent;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
button:not([disabled]),
|
|
132
|
+
[role="button"]:not([disabled]) {
|
|
133
|
+
cursor: pointer;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
@layer components {
|
|
138
|
+
.prose :is(h1, h2, h3, h4, h5, h6) {
|
|
139
|
+
@apply scroll-mt-20;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.prose :is(h1, h2, h3, h4, h5, h6)[id] {
|
|
143
|
+
position: relative;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.prose :is(h1, h2, h3, h4, h5, h6)[id]::after {
|
|
147
|
+
content: "";
|
|
148
|
+
display: inline-block;
|
|
149
|
+
width: 0.6em;
|
|
150
|
+
height: 0.6em;
|
|
151
|
+
margin-left: 0.4em;
|
|
152
|
+
vertical-align: middle;
|
|
153
|
+
opacity: 0;
|
|
154
|
+
transition: opacity 0.15s;
|
|
155
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E");
|
|
156
|
+
background-size: contain;
|
|
157
|
+
background-repeat: no-repeat;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.prose :is(h1, h2, h3, h4, h5, h6)[id]:hover::after {
|
|
161
|
+
opacity: 0.5;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.prose :is(h1, h2, h3, h4, h5, h6)[id] a,
|
|
165
|
+
.prose :is(h1, h2, h3, h4, h5, h6)[id] a:hover {
|
|
166
|
+
color: inherit !important;
|
|
167
|
+
text-decoration: none !important;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.prose pre code .line {
|
|
171
|
+
@apply px-4;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.prose pre code .line[data-highlighted] {
|
|
175
|
+
@apply bg-primary/10;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.prose pre code .line[data-diff="add"] {
|
|
179
|
+
@apply bg-green-500/15;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.prose pre code .line[data-diff="remove"] {
|
|
183
|
+
@apply bg-red-500/15;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.prose pre code .line[data-diff="add"]::before {
|
|
187
|
+
content: "+";
|
|
188
|
+
@apply text-green-600 absolute left-1;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.prose pre code .line[data-diff="remove"]::before {
|
|
192
|
+
content: "-";
|
|
193
|
+
@apply text-red-600 absolute left-1;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.prose pre code .line[data-line-status="error"] {
|
|
197
|
+
@apply bg-red-500/15;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.prose pre code .line[data-line-status="warning"] {
|
|
201
|
+
@apply bg-yellow-500/15;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.prose pre[data-has-focus] code .line:not([data-focus]) {
|
|
205
|
+
@apply opacity-30;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.prose pre[data-has-focus] code .line[data-focus] {
|
|
209
|
+
@apply opacity-100;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.prose pre code [data-word-highlighted] {
|
|
213
|
+
@apply bg-primary/20 rounded px-0.5 py-0.5;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.prose pre code .line[data-line-number]::before {
|
|
217
|
+
content: attr(data-line-number);
|
|
218
|
+
display: inline-block;
|
|
219
|
+
width: 2rem;
|
|
220
|
+
margin-right: 1rem;
|
|
221
|
+
text-align: right;
|
|
222
|
+
color: var(--color-muted-foreground);
|
|
223
|
+
opacity: 0.5;
|
|
224
|
+
user-select: none;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.prose pre code .twoslash-popup-container {
|
|
228
|
+
@apply absolute z-10 translate-y-1 rounded-md border border-border bg-popover px-3 py-1.5 text-xs shadow-md;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.prose pre code .twoslash-popup-type {
|
|
232
|
+
@apply font-mono text-muted-foreground;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.prose pre code .twoslash-error-line {
|
|
236
|
+
@apply bg-red-500/10;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.prose pre code .twoslash-tag-line {
|
|
240
|
+
@apply opacity-50;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.prose pre code .twoslash-completion-list {
|
|
244
|
+
@apply absolute z-10 translate-y-1 rounded-md border border-border bg-popover p-1 text-xs shadow-md;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.prose pre code .twoslash-completion-list .twoslash-completion-item {
|
|
248
|
+
@apply px-2 py-0.5;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.prose pre code .twoslash-hover .twoslash-popup-container {
|
|
252
|
+
@apply hidden;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.prose pre code .twoslash-hover:hover .twoslash-popup-container {
|
|
256
|
+
@apply block;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.prose :not(pre) > code {
|
|
260
|
+
@apply bg-muted/70 border border-border rounded-md px-1.5 py-0.5 text-sm font-mono;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.prose :not(pre) > code::before,
|
|
264
|
+
.prose :not(pre) > code::after {
|
|
265
|
+
content: none !important;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.prose code.shiki-inline {
|
|
269
|
+
@apply bg-muted/70 border border-border rounded-md px-1.5 py-0.5 text-sm font-mono;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.prose code.shiki-inline .line {
|
|
273
|
+
display: inline;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.dark .shiki span {
|
|
277
|
+
color: var(--shiki-dark) !important;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.katex-display {
|
|
281
|
+
@apply overflow-x-auto overflow-y-hidden;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.katex {
|
|
285
|
+
@apply overflow-x-auto overflow-y-hidden;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.prose ul:has(> li > input[type="checkbox"]) {
|
|
289
|
+
padding-inline-start: 0.5em;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.prose ul > li:has(> input[type="checkbox"]) {
|
|
293
|
+
list-style-type: none;
|
|
294
|
+
padding-left: 0;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.prose [data-footnotes] {
|
|
298
|
+
@apply mt-8 border-t border-border pt-4 text-sm text-muted-foreground;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.prose [data-footnotes] ol {
|
|
302
|
+
@apply list-decimal pl-6;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.prose sup a[data-footnote-ref] {
|
|
306
|
+
@apply ml-0.5 px-0.5 text-primary text-xs no-underline font-medium;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.prose [data-footnotes] a[data-footnote-backref] {
|
|
310
|
+
@apply text-primary no-underline;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.prose dl {
|
|
314
|
+
@apply my-4;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.prose dt {
|
|
318
|
+
@apply font-semibold mt-4 first:mt-0;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.prose dd {
|
|
322
|
+
@apply ml-6 mt-1 text-muted-foreground;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.prose {
|
|
326
|
+
counter-reset: step;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.prose [data-step] {
|
|
330
|
+
counter-increment: step;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.prose [data-step]::before {
|
|
334
|
+
content: counter(step);
|
|
335
|
+
display: inline-flex;
|
|
336
|
+
align-items: center;
|
|
337
|
+
justify-content: center;
|
|
338
|
+
width: 1.5rem;
|
|
339
|
+
height: 1.5rem;
|
|
340
|
+
border-radius: 9999px;
|
|
341
|
+
background: var(--color-primary);
|
|
342
|
+
color: white;
|
|
343
|
+
font-size: 0.75rem;
|
|
344
|
+
font-weight: 600;
|
|
345
|
+
margin-right: 0.5rem;
|
|
346
|
+
}
|
|
347
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { join, relative } from "node:path"
|
|
2
|
+
import contentCollections from "@content-collections/vite"
|
|
3
|
+
import tailwind from "@tailwindcss/vite"
|
|
4
|
+
import { devtools } from "@tanstack/devtools-vite"
|
|
5
|
+
import { tanstackStart } from "@tanstack/react-start/plugin/vite"
|
|
6
|
+
import react from "@vitejs/plugin-react"
|
|
7
|
+
import { defineConfig } from "vite"
|
|
8
|
+
import svgr from "vite-plugin-svgr"
|
|
9
|
+
import { loadConfig } from "../actions/config/load.ts"
|
|
10
|
+
|
|
11
|
+
const config = await loadConfig()
|
|
12
|
+
const websiteDir = import.meta.dirname
|
|
13
|
+
const websiteRelative = relative(config.root, websiteDir)
|
|
14
|
+
|
|
15
|
+
export default defineConfig({
|
|
16
|
+
root: config.root,
|
|
17
|
+
publicDir: join(websiteDir, "public"),
|
|
18
|
+
build: { outDir: ".livemark/build" },
|
|
19
|
+
define: {
|
|
20
|
+
"import.meta.env.SITE_TITLE": JSON.stringify(config.title),
|
|
21
|
+
"import.meta.env.SITE_DESCRIPTION": JSON.stringify(config.description),
|
|
22
|
+
},
|
|
23
|
+
plugins: [
|
|
24
|
+
devtools(),
|
|
25
|
+
tailwind(),
|
|
26
|
+
contentCollections({
|
|
27
|
+
configPath: join(websiteRelative, "content-collections.ts"),
|
|
28
|
+
}),
|
|
29
|
+
tanstackStart({
|
|
30
|
+
srcDirectory: websiteRelative,
|
|
31
|
+
prerender: { enabled: true, crawlLinks: true },
|
|
32
|
+
}),
|
|
33
|
+
react(),
|
|
34
|
+
svgr(),
|
|
35
|
+
],
|
|
36
|
+
})
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
process.removeAllListeners("warning")
|
|
4
|
+
process.on("warning", warning => {
|
|
5
|
+
if (warning.name === "ExperimentalWarning") {
|
|
6
|
+
return
|
|
7
|
+
}
|
|
8
|
+
console.warn(warning)
|
|
9
|
+
})
|
|
10
|
+
|
|
11
|
+
const { program } = await import("../program.ts")
|
|
12
|
+
program.parse()
|
package/package.json
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "livemark",
|
|
3
|
+
"version": "0.0.0-dev",
|
|
4
|
+
"description": "Livemark description",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "Evgeny Karev",
|
|
7
|
+
"repository": "https://github.com/datisthq/livemark",
|
|
8
|
+
"bin": {
|
|
9
|
+
"livemark": "./entrypoints/main.ts"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"build"
|
|
13
|
+
],
|
|
14
|
+
"type": "module",
|
|
15
|
+
"sideEffects": false,
|
|
16
|
+
"imports": {
|
|
17
|
+
"#*": "./*"
|
|
18
|
+
},
|
|
19
|
+
"exports": "./build/index.js",
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"@base-ui/react": "1.3.0",
|
|
22
|
+
"@content-collections/core": "0.14.3",
|
|
23
|
+
"@content-collections/mdx": "0.2.2",
|
|
24
|
+
"@content-collections/vite": "0.2.9",
|
|
25
|
+
"@orama/orama": "^3.1.18",
|
|
26
|
+
"@shikijs/rehype": "4.0.2",
|
|
27
|
+
"@shikijs/twoslash": "^4.0.2",
|
|
28
|
+
"@sindresorhus/slugify": "^3.0.0",
|
|
29
|
+
"@tailwindcss/typography": "^0.5.19",
|
|
30
|
+
"@tailwindcss/vite": "4.2.2",
|
|
31
|
+
"@tanstack/devtools-vite": "0.6.0",
|
|
32
|
+
"@tanstack/react-devtools": "0.10.0",
|
|
33
|
+
"@tanstack/react-hotkeys": "^0.9.1",
|
|
34
|
+
"@tanstack/react-query": "5.91.3",
|
|
35
|
+
"@tanstack/react-query-devtools": "5.91.3",
|
|
36
|
+
"@tanstack/react-router": "1.168.1",
|
|
37
|
+
"@tanstack/react-router-devtools": "1.166.10",
|
|
38
|
+
"@tanstack/react-router-ssr-query": "1.166.10",
|
|
39
|
+
"@tanstack/react-start": "1.167.2",
|
|
40
|
+
"@types/mdast": "^4.0.4",
|
|
41
|
+
"@types/react": "19.2.14",
|
|
42
|
+
"@types/react-dom": "19.2.3",
|
|
43
|
+
"@vitejs/plugin-react": "6.0.1",
|
|
44
|
+
"class-variance-authority": "0.7.1",
|
|
45
|
+
"clsx": "2.1.1",
|
|
46
|
+
"cmdk": "1.1.1",
|
|
47
|
+
"commander": "14.0.3",
|
|
48
|
+
"embla-carousel-react": "8.6.0",
|
|
49
|
+
"es-toolkit": "1.44.0",
|
|
50
|
+
"github-slugger": "^2.0.0",
|
|
51
|
+
"input-otp": "1.4.2",
|
|
52
|
+
"katex": "^0.16.44",
|
|
53
|
+
"lucide-react": "0.577.0",
|
|
54
|
+
"mdast-util-directive": "^3.1.0",
|
|
55
|
+
"mermaid": "^11.14.0",
|
|
56
|
+
"npm-to-yarn": "^3.0.1",
|
|
57
|
+
"picocolors": "1.1.1",
|
|
58
|
+
"react": "19.2.4",
|
|
59
|
+
"react-day-picker": "9.14.0",
|
|
60
|
+
"react-dom": "19.2.4",
|
|
61
|
+
"react-medium-image-zoom": "^5.4.2",
|
|
62
|
+
"react-resizable-panels": "4.9.0",
|
|
63
|
+
"recharts": "3.8.1",
|
|
64
|
+
"rehype-katex": "7.0.1",
|
|
65
|
+
"rehype-sanitize": "6.0.0",
|
|
66
|
+
"rehype-slug": "^6.0.0",
|
|
67
|
+
"remark-definition-list": "^2.0.0",
|
|
68
|
+
"remark-directive": "^4.0.0",
|
|
69
|
+
"remark-gemoji": "^8.0.0",
|
|
70
|
+
"remark-gfm": "4.0.1",
|
|
71
|
+
"remark-math": "6.0.0",
|
|
72
|
+
"shadcn": "3.7.0",
|
|
73
|
+
"shiki": "4.0.2",
|
|
74
|
+
"sonner": "2.0.7",
|
|
75
|
+
"tailwind-merge": "3.5.0",
|
|
76
|
+
"tailwindcss": "4.2.2",
|
|
77
|
+
"tw-animate-css": "1.4.0",
|
|
78
|
+
"unified": "^11.0.5",
|
|
79
|
+
"unist-util-visit": "^5.1.0",
|
|
80
|
+
"vaul": "1.1.2",
|
|
81
|
+
"vite": "8.0.1",
|
|
82
|
+
"vite-plugin-svgr": "4.5.0",
|
|
83
|
+
"zod": "4.3.6"
|
|
84
|
+
},
|
|
85
|
+
"devDependencies": {
|
|
86
|
+
"@semantic-release/exec": "7.1.0",
|
|
87
|
+
"@types/node": "24.2.0",
|
|
88
|
+
"@typescript/native-preview": "7.0.0-dev.20260316.1",
|
|
89
|
+
"@vitest/coverage-v8": "4.0.16",
|
|
90
|
+
"conventional-changelog-conventionalcommits": "9.1.0",
|
|
91
|
+
"husky": "9.1.7",
|
|
92
|
+
"is-ci": "4.1.0",
|
|
93
|
+
"lefthook": "2.1.1",
|
|
94
|
+
"npm-check-updates": "18.0.1",
|
|
95
|
+
"semantic-release": "24.2.9",
|
|
96
|
+
"tempy": "3.2.0",
|
|
97
|
+
"vite-plus": "0.1.12",
|
|
98
|
+
"vitest-polly": "1.4.0"
|
|
99
|
+
},
|
|
100
|
+
"engines": {
|
|
101
|
+
"node": "^24.0.0",
|
|
102
|
+
"pnpm": "^10.0.0"
|
|
103
|
+
},
|
|
104
|
+
"scripts": {
|
|
105
|
+
"build": "tsgo && rm -rf build/website && cp -r website build",
|
|
106
|
+
"bump": "ncu -u",
|
|
107
|
+
"clean": "rm -rf pnpm-lock.yaml node_modules **/node_modules **/build",
|
|
108
|
+
"docs:build": "node entrypoints/docs.ts build",
|
|
109
|
+
"docs:start": "node entrypoints/docs.ts start",
|
|
110
|
+
"docs:preview": "node entrypoints/docs.ts preview",
|
|
111
|
+
"format": "vp fmt",
|
|
112
|
+
"lint": "vp fmt --check && vp lint",
|
|
113
|
+
"release": "pnpm -r publish --access public --ignore-scripts --no-git-checks",
|
|
114
|
+
"setversion": "pnpm -r exec pnpm version --no-git-tag-version",
|
|
115
|
+
"unit": "vp test",
|
|
116
|
+
"start": "pnpm -F website start",
|
|
117
|
+
"test": "pnpm lint && pnpm type && pnpm unit",
|
|
118
|
+
"type": "tsgo --noEmit"
|
|
119
|
+
}
|
|
120
|
+
}
|