@blaaiz/docs-core 0.4.0 → 0.6.0

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 (43) hide show
  1. package/dist/{chunk-JHN5XQPU.js → chunk-2GUUVNTP.js} +226 -31
  2. package/dist/chunk-2GUUVNTP.js.map +1 -0
  3. package/dist/{chunk-ZKOOKLZ3.js → chunk-6H6OB7YP.js} +17 -2
  4. package/dist/chunk-6H6OB7YP.js.map +1 -0
  5. package/dist/generator.cjs +204 -30
  6. package/dist/generator.cjs.map +1 -1
  7. package/dist/generator.d.cts +24 -0
  8. package/dist/generator.d.ts +24 -0
  9. package/dist/generator.js +179 -22
  10. package/dist/generator.js.map +1 -1
  11. package/dist/index.cjs +228 -28
  12. package/dist/index.cjs.map +1 -1
  13. package/dist/index.d.cts +267 -8
  14. package/dist/index.d.ts +267 -8
  15. package/dist/index.js +1 -1
  16. package/dist/{navigation-CGqFIPlP.d.cts → navigation-DvgyWSZ4.d.cts} +22 -1
  17. package/dist/{navigation-CGqFIPlP.d.ts → navigation-DvgyWSZ4.d.ts} +22 -1
  18. package/dist/ui/api-try-it.cjs +15 -0
  19. package/dist/ui/api-try-it.cjs.map +1 -1
  20. package/dist/ui/api-try-it.js +1 -1
  21. package/dist/ui/ask-ai.cjs +26 -6
  22. package/dist/ui/ask-ai.cjs.map +1 -1
  23. package/dist/ui/ask-ai.d.cts +6 -1
  24. package/dist/ui/ask-ai.d.ts +6 -1
  25. package/dist/ui/ask-ai.js +26 -6
  26. package/dist/ui/ask-ai.js.map +1 -1
  27. package/dist/ui/copy-page.cjs +15 -0
  28. package/dist/ui/copy-page.cjs.map +1 -1
  29. package/dist/ui/copy-page.js +1 -1
  30. package/dist/ui.cjs +77 -6
  31. package/dist/ui.cjs.map +1 -1
  32. package/dist/ui.d.cts +99 -8
  33. package/dist/ui.d.ts +99 -8
  34. package/dist/ui.js +62 -8
  35. package/dist/ui.js.map +1 -1
  36. package/package.json +1 -1
  37. package/skills/SKILL.md +73 -27
  38. package/styles/api-reference.css +45 -2
  39. package/styles/ask-ai.css +28 -0
  40. package/styles/docs.css +96 -1
  41. package/styles/home.css +34 -1
  42. package/dist/chunk-JHN5XQPU.js.map +0 -1
  43. package/dist/chunk-ZKOOKLZ3.js.map +0 -1
package/styles/docs.css CHANGED
@@ -127,12 +127,17 @@ button:has(kbd) {
127
127
  position: absolute;
128
128
  inset: 0 0 auto 0;
129
129
  height: 2.75rem;
130
- background: color-mix(in oklab, var(--color-fd-card) 88%, black);
130
+ background: color-mix(in oklab, var(--color-fd-card) 94%, black);
131
131
  border-bottom: 1px solid var(--color-fd-border);
132
132
  border-top-left-radius: inherit;
133
133
  border-top-right-radius: inherit;
134
134
  }
135
135
 
136
+ /* Dark cards are already near black; the strip needs a deeper mix to read. */
137
+ .dark #nd-page figure.shiki::before {
138
+ background: color-mix(in oklab, var(--color-fd-card) 88%, black);
139
+ }
140
+
136
141
  #nd-page figure.shiki::after {
137
142
  content: '';
138
143
  position: absolute;
@@ -273,3 +278,93 @@ body {
273
278
  width: 15px;
274
279
  height: 15px;
275
280
  }
281
+
282
+ /* --- The top bar's action cluster and second row ------------------------- */
283
+
284
+ /* Actions at the end of row one: extras, the secondary link, sign-out, and
285
+ the primary button. */
286
+ .nav-actions {
287
+ display: flex;
288
+ align-items: center;
289
+ gap: 1.25rem;
290
+ }
291
+
292
+ .nav-actions__secondary,
293
+ .nav-actions__signout {
294
+ border: none;
295
+ background: none;
296
+ padding: 0;
297
+ font-size: 0.875rem;
298
+ font-weight: 500;
299
+ color: var(--color-fd-muted-foreground);
300
+ cursor: pointer;
301
+ text-decoration: none;
302
+ transition: color 0.15s;
303
+ white-space: nowrap;
304
+ }
305
+
306
+ .nav-actions__secondary:hover,
307
+ .nav-actions__signout:hover {
308
+ color: var(--color-fd-foreground);
309
+ }
310
+
311
+ .nav-actions__primary {
312
+ display: inline-flex;
313
+ align-items: center;
314
+ padding: 0.4375rem 1rem;
315
+ border-radius: 999px;
316
+ background: var(--color-fd-primary);
317
+ color: #fff;
318
+ font-size: 0.875rem;
319
+ font-weight: 600;
320
+ text-decoration: none;
321
+ white-space: nowrap;
322
+ transition: opacity 0.15s;
323
+ }
324
+
325
+ .nav-actions__primary:hover {
326
+ opacity: 0.9;
327
+ }
328
+
329
+ /* Dark-mode primaries run light, so the button's text runs dark. */
330
+ .dark .nav-actions__primary {
331
+ color: #000;
332
+ }
333
+
334
+ /* The second row: the section links, under the utility row. */
335
+ .site-subnav {
336
+ display: flex;
337
+ align-items: center;
338
+ gap: 0.25rem;
339
+ height: 2.875rem;
340
+ padding-inline: 1rem;
341
+ border-bottom: 1px solid color-mix(in oklab, var(--color-fd-border) 60%, transparent);
342
+ background: color-mix(in oklab, var(--color-fd-background) 80%, transparent);
343
+ backdrop-filter: blur(16px);
344
+ overflow-x: auto;
345
+ scrollbar-width: none;
346
+ }
347
+
348
+ .site-subnav > * {
349
+ flex-shrink: 0;
350
+ }
351
+
352
+ /* The sidebar's section headings: the separators the headings sidebar style
353
+ renders for top-level groups. fumadocs marks them as bare <p> rows. */
354
+ #nd-sidebar [data-radix-scroll-area-viewport] p {
355
+ font-weight: 600;
356
+ }
357
+
358
+ /* The docs header draws its own rules under both rows; run them as faint as
359
+ the landing's, so the chrome doesn't outweigh the content. */
360
+ #nd-subnav [data-header-body],
361
+ #nd-subnav [data-header-tabs] {
362
+ border-color: color-mix(in oklab, var(--color-fd-border) 60%, transparent);
363
+ }
364
+
365
+ /* The navbar tabs render only the title node, so the section icon travels
366
+ inside it (docsLayoutTabs); size it like the landing's links. */
367
+ #nd-subnav [data-header-tabs] svg {
368
+ width: 15px;
369
+ height: 15px;
370
+ }
package/styles/home.css CHANGED
@@ -1,3 +1,32 @@
1
+ /* The landing's top bar stands as tall as the docs pages' rendered header
2
+ (72px), so the two layouts read as one site. #nd-nav exists only in the
3
+ home layout; the docs layout's header is #nd-subnav. */
4
+ #nd-nav {
5
+ height: 4.5rem;
6
+ }
7
+
8
+ #nd-nav nav {
9
+ height: 4.5rem;
10
+ }
11
+
12
+ /* The landing header's rule, as faint as the subnav's. */
13
+ #nd-nav > div {
14
+ border-color: color-mix(in oklab, var(--color-fd-border) 60%, transparent);
15
+ }
16
+
17
+ /* On the landing the section links render as a sticky row under the top bar
18
+ (the home layout's header slot replaces its navbar rather than wrapping it,
19
+ so the row lives outside the header there). The row is full-bleed while the
20
+ header centres its content to --fd-layout-width, so the padding re-derives
21
+ that inset; the extra 0.625rem is the first link's own padding, backed out
22
+ so its icon sits flush with the logo above. */
23
+ .site-subnav--home {
24
+ position: sticky;
25
+ top: 4.5rem;
26
+ z-index: 30;
27
+ padding-inline: max(0.375rem, calc((100% - var(--fd-layout-width, 100%)) / 2 + 0.375rem));
28
+ }
29
+
1
30
  /*
2
31
  * @blaaiz/docs-core — the landing-page layout.
3
32
  *
@@ -37,7 +66,11 @@
37
66
  */
38
67
 
39
68
  .home-page {
40
- --home-gutter: clamp(1.25rem, 4vw, 3.5rem);
69
+ /* The gutter re-derives the header's centred inset (--fd-layout-width plus
70
+ its 1rem padding), so every section's content column starts where the
71
+ logo does. Sections stay full-bleed: the inset is padding, so backgrounds
72
+ and borders still run edge to edge. */
73
+ --home-gutter: max(1rem, calc((100% - var(--fd-layout-width, 100%)) / 2 + 1rem));
41
74
  --home-mono: var(--font-code, var(--font-mono, ui-monospace, 'SF Mono', Menlo, monospace));
42
75
  width: 100%;
43
76
  padding-bottom: 5rem;