radiant-docs 0.1.39 → 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.
Files changed (34) hide show
  1. package/package.json +1 -1
  2. package/template/astro.config.mjs +38 -7
  3. package/template/package-lock.json +19 -7
  4. package/template/package.json +1 -1
  5. package/template/scripts/generate-robots-txt.mjs +29 -1
  6. package/template/scripts/stamp-image-versions.mjs +59 -33
  7. package/template/src/components/Footer.astro +2 -1
  8. package/template/src/components/Header.astro +8 -6
  9. package/template/src/components/LogoLink.astro +2 -1
  10. package/template/src/components/MdxPage.astro +15 -4
  11. package/template/src/components/PagePagination.astro +61 -0
  12. package/template/src/components/SidebarDropdown.astro +12 -8
  13. package/template/src/components/SidebarGroup.astro +1 -1
  14. package/template/src/components/SidebarMenu.astro +1 -1
  15. package/template/src/components/SidebarSegmented.astro +6 -5
  16. package/template/src/components/TableOfContents.astro +4 -13
  17. package/template/src/components/chat/AskAiWidget.tsx +274 -39
  18. package/template/src/components/endpoint/PlaygroundForm.astro +2 -1
  19. package/template/src/components/user/CodeBlock.astro +1 -1
  20. package/template/src/components/user/CodeGroup.astro +16 -1
  21. package/template/src/components/user/ComponentPreviewBlock.astro +1 -0
  22. package/template/src/components/user/Image.astro +43 -53
  23. package/template/src/layouts/Layout.astro +217 -7
  24. package/template/src/lib/base-path.ts +98 -0
  25. package/template/src/lib/component-error.ts +49 -10
  26. package/template/src/lib/mdx/remark-resolve-internal-links.ts +128 -18
  27. package/template/src/lib/pagefind.ts +62 -14
  28. package/template/src/lib/routes.ts +49 -1
  29. package/template/src/lib/static-asset-url.ts +3 -1
  30. package/template/src/lib/utils.ts +12 -4
  31. package/template/src/lib/validation.ts +376 -36
  32. package/template/src/pages/404.astro +2 -1
  33. package/template/src/pages/[...slug].astro +68 -6
  34. package/template/src/styles/global.css +62 -1
@@ -111,7 +111,68 @@
111
111
 
112
112
  /* Prose styling */
113
113
  .prose-rules {
114
- @apply *:max-w-2xl prose prose-neutral *:first:mt-0 *:last:mb-0 dark:prose-invert prose-h2:scroll-mt-28 prose-h3:scroll-mt-24 prose-headings:font-semibold [--tw-prose-bullets:inherit] [--tw-prose-counters:text-neutral-950];
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) {