radiant-docs 0.1.38 → 0.1.40
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/package.json +1 -1
- package/template/astro.config.mjs +38 -7
- package/template/package-lock.json +19 -7
- package/template/package.json +1 -1
- package/template/scripts/generate-robots-txt.mjs +29 -1
- package/template/scripts/stamp-image-versions.mjs +59 -33
- package/template/src/components/Footer.astro +2 -1
- package/template/src/components/Header.astro +8 -6
- package/template/src/components/LogoLink.astro +2 -1
- package/template/src/components/MdxPage.astro +15 -4
- package/template/src/components/PagePagination.astro +61 -0
- package/template/src/components/SidebarDropdown.astro +12 -8
- package/template/src/components/SidebarGroup.astro +1 -1
- package/template/src/components/SidebarMenu.astro +1 -1
- package/template/src/components/SidebarSegmented.astro +6 -5
- package/template/src/components/TableOfContents.astro +4 -13
- package/template/src/components/chat/AskAiWidget.tsx +274 -39
- package/template/src/components/endpoint/PlaygroundForm.astro +2 -1
- package/template/src/components/user/CodeBlock.astro +8 -5
- package/template/src/components/user/CodeGroup.astro +262 -14
- package/template/src/components/user/ComponentPreviewBlock.astro +4 -3
- package/template/src/components/user/Image.astro +43 -53
- package/template/src/components/user/Tabs.astro +128 -23
- package/template/src/layouts/Layout.astro +217 -7
- package/template/src/lib/base-path.ts +98 -0
- package/template/src/lib/component-error.ts +49 -10
- package/template/src/lib/mdx/remark-resolve-internal-links.ts +128 -18
- package/template/src/lib/pagefind.ts +62 -14
- package/template/src/lib/routes.ts +49 -1
- package/template/src/lib/static-asset-url.ts +3 -1
- package/template/src/lib/utils.ts +12 -4
- package/template/src/lib/validation.ts +376 -36
- package/template/src/pages/404.astro +2 -1
- package/template/src/pages/[...slug].astro +68 -6
- package/template/src/styles/global.css +85 -1
|
@@ -111,7 +111,68 @@
|
|
|
111
111
|
|
|
112
112
|
/* Prose styling */
|
|
113
113
|
.prose-rules {
|
|
114
|
-
@apply *:max-w-2xl prose
|
|
114
|
+
@apply *:max-w-2xl prose *:first:mt-0 *:last:mb-0 prose-h2:scroll-mt-28 prose-h3:scroll-mt-24 prose-headings:font-semibold;
|
|
115
|
+
--tw-prose-body: var(--color-neutral-700);
|
|
116
|
+
--tw-prose-headings: var(--color-neutral-900);
|
|
117
|
+
--tw-prose-lead: var(--color-neutral-600);
|
|
118
|
+
--tw-prose-links: var(--color-neutral-900);
|
|
119
|
+
--tw-prose-bold: var(--color-neutral-900);
|
|
120
|
+
--tw-prose-counters: var(--color-neutral-500);
|
|
121
|
+
--tw-prose-bullets: inherit;
|
|
122
|
+
--tw-prose-hr: var(--color-neutral-200);
|
|
123
|
+
--tw-prose-quotes: var(--color-neutral-900);
|
|
124
|
+
--tw-prose-quote-borders: var(--color-neutral-200);
|
|
125
|
+
--tw-prose-captions: var(--color-neutral-500);
|
|
126
|
+
--tw-prose-kbd: var(--color-neutral-900);
|
|
127
|
+
--tw-prose-kbd-shadows: color-mix(
|
|
128
|
+
in oklab,
|
|
129
|
+
var(--color-neutral-900) 10%,
|
|
130
|
+
transparent
|
|
131
|
+
);
|
|
132
|
+
--tw-prose-code: var(--color-neutral-900);
|
|
133
|
+
--tw-prose-pre-code: var(--color-neutral-200);
|
|
134
|
+
--tw-prose-pre-bg: var(--color-neutral-800);
|
|
135
|
+
--tw-prose-th-borders: var(--color-neutral-300);
|
|
136
|
+
--tw-prose-td-borders: var(--color-neutral-200);
|
|
137
|
+
--tw-prose-invert-body: var(--color-neutral-300);
|
|
138
|
+
--tw-prose-invert-headings: white;
|
|
139
|
+
--tw-prose-invert-lead: var(--color-neutral-400);
|
|
140
|
+
--tw-prose-invert-links: white;
|
|
141
|
+
--tw-prose-invert-bold: white;
|
|
142
|
+
--tw-prose-invert-counters: var(--color-neutral-400);
|
|
143
|
+
--tw-prose-invert-bullets: var(--color-neutral-600);
|
|
144
|
+
--tw-prose-invert-hr: var(--color-neutral-700);
|
|
145
|
+
--tw-prose-invert-quotes: var(--color-neutral-100);
|
|
146
|
+
--tw-prose-invert-quote-borders: var(--color-neutral-700);
|
|
147
|
+
--tw-prose-invert-captions: var(--color-neutral-400);
|
|
148
|
+
--tw-prose-invert-kbd: white;
|
|
149
|
+
--tw-prose-invert-kbd-shadows: color-mix(in oklab, white 10%, transparent);
|
|
150
|
+
--tw-prose-invert-code: white;
|
|
151
|
+
--tw-prose-invert-pre-code: var(--color-neutral-300);
|
|
152
|
+
--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);
|
|
153
|
+
--tw-prose-invert-th-borders: var(--color-neutral-600);
|
|
154
|
+
--tw-prose-invert-td-borders: var(--color-neutral-700);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.dark .prose-rules {
|
|
158
|
+
--tw-prose-body: var(--tw-prose-invert-body);
|
|
159
|
+
--tw-prose-headings: var(--tw-prose-invert-headings);
|
|
160
|
+
--tw-prose-lead: var(--tw-prose-invert-lead);
|
|
161
|
+
--tw-prose-links: var(--tw-prose-invert-links);
|
|
162
|
+
--tw-prose-bold: var(--tw-prose-invert-bold);
|
|
163
|
+
--tw-prose-counters: var(--tw-prose-invert-counters);
|
|
164
|
+
--tw-prose-bullets: var(--tw-prose-invert-bullets);
|
|
165
|
+
--tw-prose-hr: var(--tw-prose-invert-hr);
|
|
166
|
+
--tw-prose-quotes: var(--tw-prose-invert-quotes);
|
|
167
|
+
--tw-prose-quote-borders: var(--tw-prose-invert-quote-borders);
|
|
168
|
+
--tw-prose-captions: var(--tw-prose-invert-captions);
|
|
169
|
+
--tw-prose-kbd: var(--tw-prose-invert-kbd);
|
|
170
|
+
--tw-prose-kbd-shadows: var(--tw-prose-invert-kbd-shadows);
|
|
171
|
+
--tw-prose-code: var(--tw-prose-invert-code);
|
|
172
|
+
--tw-prose-pre-code: var(--tw-prose-invert-pre-code);
|
|
173
|
+
--tw-prose-pre-bg: var(--tw-prose-invert-pre-bg);
|
|
174
|
+
--tw-prose-th-borders: var(--tw-prose-invert-th-borders);
|
|
175
|
+
--tw-prose-td-borders: var(--tw-prose-invert-td-borders);
|
|
115
176
|
}
|
|
116
177
|
|
|
117
178
|
.prose-rules :is(h2, h3, h4, h5, h6) {
|
|
@@ -151,6 +212,29 @@
|
|
|
151
212
|
}
|
|
152
213
|
}
|
|
153
214
|
|
|
215
|
+
/* Markdown table styling */
|
|
216
|
+
.prose-rules :where(table) {
|
|
217
|
+
@apply w-full overflow-hidden rounded-xl border border-neutral-200 shadow-xs dark:border-neutral-800;
|
|
218
|
+
border-collapse: separate;
|
|
219
|
+
border-spacing: 0;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.prose-rules :where(thead th) {
|
|
223
|
+
@apply bg-neutral-50 dark:bg-neutral-900/60;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.prose-rules :where(th, td) {
|
|
227
|
+
@apply border-b border-neutral-200 px-4 py-2 align-top dark:border-neutral-800;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.prose-rules :where(th + th, td + td) {
|
|
231
|
+
@apply border-l border-neutral-200 dark:border-neutral-800;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.prose-rules :where(tbody tr:last-child td) {
|
|
235
|
+
@apply border-b-0;
|
|
236
|
+
}
|
|
237
|
+
|
|
154
238
|
/* Code single-line styling */
|
|
155
239
|
:is(.prose, .prose-rules) :not(pre) > code {
|
|
156
240
|
@apply px-1 py-px bg-neutral-100/90 text-neutral-600 rounded-md font-mono font-medium border border-neutral-200/80 after:hidden before:hidden dark:bg-neutral-800/80 dark:text-neutral-200 dark:border-neutral-700/80;
|