@stainless-api/docs 0.1.0-beta.6 → 0.1.0-beta.61

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 (115) hide show
  1. package/CHANGELOG.md +486 -0
  2. package/README.md +1 -1
  3. package/eslint-suppressions.json +52 -0
  4. package/locals.d.ts +16 -0
  5. package/package.json +45 -40
  6. package/plugin/assets/languages/csharp.svg +1 -0
  7. package/plugin/buildAlgoliaIndex.ts +32 -7
  8. package/plugin/cms/server.ts +130 -58
  9. package/plugin/cms/sidebar-builder.ts +7 -26
  10. package/plugin/cms/worker.ts +83 -5
  11. package/plugin/components/MethodDescription.tsx +54 -0
  12. package/plugin/components/SDKSelect.astro +7 -87
  13. package/plugin/components/SnippetCode.tsx +53 -8
  14. package/plugin/components/search/SearchAlgolia.astro +14 -26
  15. package/plugin/components/search/SearchIsland.tsx +38 -24
  16. package/plugin/create-playground.shim.tsx +3 -0
  17. package/plugin/generateAPIReferenceLink.ts +2 -2
  18. package/plugin/globalJs/ai-dropdown-options.ts +235 -0
  19. package/plugin/globalJs/code-snippets.ts +15 -8
  20. package/plugin/globalJs/copy.ts +81 -16
  21. package/plugin/globalJs/method-descriptions.ts +33 -0
  22. package/plugin/globalJs/navigation.ts +7 -4
  23. package/plugin/index.ts +179 -35
  24. package/plugin/languages.ts +5 -2
  25. package/plugin/loadPluginConfig.ts +121 -32
  26. package/plugin/middlewareBuilder/stainlessMiddleware.d.ts +1 -1
  27. package/plugin/react/Routing.tsx +208 -104
  28. package/plugin/referencePlaceholderUtils.ts +1 -1
  29. package/plugin/replaceSidebarPlaceholderMiddleware.ts +5 -1
  30. package/plugin/routes/Docs.astro +61 -83
  31. package/plugin/routes/Overview.astro +10 -16
  32. package/plugin/routes/markdown.ts +7 -7
  33. package/plugin/vendor/preview.worker.docs.js +19768 -17702
  34. package/plugin/vendor/templates/go.md +1 -1
  35. package/plugin/vendor/templates/python.md +1 -1
  36. package/resolveSrcFile.ts +10 -0
  37. package/scripts/vendor_deps.ts +5 -5
  38. package/shared/getSharedLogger.ts +15 -0
  39. package/shared/terminalUtils.ts +3 -0
  40. package/src/content.config.ts +9 -0
  41. package/stl-docs/components/AIDropdown.tsx +63 -0
  42. package/stl-docs/components/AiChatIsland.tsx +10 -0
  43. package/stl-docs/components/{content-panel/ContentBreadcrumbs.tsx → ContentBreadcrumbs.tsx} +10 -18
  44. package/stl-docs/components/Head.astro +16 -0
  45. package/stl-docs/components/Header.astro +6 -8
  46. package/stl-docs/components/PageFrame.astro +14 -0
  47. package/stl-docs/components/PageTitle.astro +82 -0
  48. package/stl-docs/components/TableOfContents.astro +34 -0
  49. package/stl-docs/components/ThemeSelect.astro +118 -136
  50. package/stl-docs/components/content-panel/ContentPanel.astro +16 -25
  51. package/stl-docs/components/headers/SplashMobileMenuToggle.astro +17 -1
  52. package/stl-docs/components/headers/StackedHeader.astro +29 -24
  53. package/stl-docs/components/icons/chat-gpt.tsx +17 -0
  54. package/stl-docs/components/icons/claude.tsx +10 -0
  55. package/stl-docs/components/icons/cursor.tsx +10 -0
  56. package/stl-docs/components/icons/gemini.tsx +19 -0
  57. package/stl-docs/components/icons/markdown.tsx +10 -0
  58. package/stl-docs/components/index.ts +1 -0
  59. package/stl-docs/components/mintlify-compat/Accordion.astro +7 -5
  60. package/stl-docs/components/mintlify-compat/AccordionGroup.astro +7 -3
  61. package/stl-docs/components/mintlify-compat/Columns.astro +40 -42
  62. package/stl-docs/components/mintlify-compat/Frame.astro +16 -18
  63. package/stl-docs/components/mintlify-compat/Step.astro +30 -32
  64. package/stl-docs/components/mintlify-compat/Steps.astro +8 -10
  65. package/stl-docs/components/mintlify-compat/callouts/Callout.astro +1 -1
  66. package/stl-docs/components/mintlify-compat/callouts/Check.astro +1 -1
  67. package/stl-docs/components/mintlify-compat/callouts/Danger.astro +1 -1
  68. package/stl-docs/components/mintlify-compat/callouts/Info.astro +1 -1
  69. package/stl-docs/components/mintlify-compat/callouts/Note.astro +1 -1
  70. package/stl-docs/components/mintlify-compat/callouts/Tip.astro +1 -1
  71. package/stl-docs/components/mintlify-compat/callouts/Warning.astro +1 -1
  72. package/stl-docs/components/mintlify-compat/card.css +33 -35
  73. package/stl-docs/components/nav-tabs/NavDropdown.astro +31 -70
  74. package/stl-docs/components/nav-tabs/NavTabs.astro +78 -80
  75. package/stl-docs/components/nav-tabs/SecondaryNavTabs.astro +15 -8
  76. package/stl-docs/components/nav-tabs/buildNavLinks.ts +3 -2
  77. package/stl-docs/components/pagination/HomeLink.astro +10 -0
  78. package/stl-docs/components/pagination/Pagination.astro +175 -0
  79. package/stl-docs/components/pagination/PaginationLinkEmphasized.astro +22 -0
  80. package/stl-docs/components/pagination/PaginationLinkQuiet.astro +13 -0
  81. package/stl-docs/components/pagination/util.ts +71 -0
  82. package/stl-docs/components/scripts.ts +1 -0
  83. package/stl-docs/disableCalloutSyntax.ts +36 -0
  84. package/stl-docs/index.ts +130 -48
  85. package/stl-docs/loadStlDocsConfig.ts +44 -4
  86. package/stl-docs/proseMarkdown/proseMarkdownIntegration.ts +64 -0
  87. package/stl-docs/proseMarkdown/proseMarkdownMiddleware.ts +34 -0
  88. package/stl-docs/proseMarkdown/toMarkdown.ts +158 -0
  89. package/stl-docs/proseSearchIndexing.ts +113 -0
  90. package/stl-docs/tabsMiddleware.ts +11 -3
  91. package/styles/code.css +108 -140
  92. package/styles/fonts.css +32 -17
  93. package/styles/links.css +11 -48
  94. package/styles/method-descriptions.css +36 -0
  95. package/styles/overrides.css +48 -60
  96. package/styles/page.css +92 -52
  97. package/styles/sdk_select.css +9 -7
  98. package/styles/search.css +58 -69
  99. package/styles/sidebar.css +211 -131
  100. package/styles/{variables.css → sl-variables.css} +3 -2
  101. package/styles/stldocs-variables.css +6 -0
  102. package/styles/toc.css +41 -34
  103. package/theme.css +10 -10
  104. package/tsconfig.json +2 -5
  105. package/virtual-module.d.ts +23 -3
  106. package/components/variables.css +0 -135
  107. /package/{plugin/assets → assets}/fonts/geist/OFL.txt +0 -0
  108. /package/{plugin/assets → assets}/fonts/geist/geist-italic-latin-ext.woff2 +0 -0
  109. /package/{plugin/assets → assets}/fonts/geist/geist-italic-latin.woff2 +0 -0
  110. /package/{plugin/assets → assets}/fonts/geist/geist-latin-ext.woff2 +0 -0
  111. /package/{plugin/assets → assets}/fonts/geist/geist-latin.woff2 +0 -0
  112. /package/{plugin/assets → assets}/fonts/geist/geist-mono-italic-latin-ext.woff2 +0 -0
  113. /package/{plugin/assets → assets}/fonts/geist/geist-mono-italic-latin.woff2 +0 -0
  114. /package/{plugin/assets → assets}/fonts/geist/geist-mono-latin-ext.woff2 +0 -0
  115. /package/{plugin/assets → assets}/fonts/geist/geist-mono-latin.woff2 +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,491 @@
1
1
  # @stainless-api/docs
2
2
 
3
+ ## 0.1.0-beta.61
4
+
5
+ ### Patch Changes
6
+
7
+ - 88a9894: patch vite optimizeDeps for docs-ai-chat
8
+ - Updated dependencies [2a79bae]
9
+ - @stainless-api/ui-primitives@0.1.0-beta.38
10
+ - @stainless-api/docs-ui@0.1.0-beta.51
11
+ - @stainless-api/docs-search@0.1.0-beta.3
12
+
13
+ ## 0.1.0-beta.60
14
+
15
+ ### Patch Changes
16
+
17
+ - 2d00f0d: compatibility with the first alpha version of docs-ai-chat
18
+ - Updated dependencies [2d00f0d]
19
+ - @stainless-api/docs-ui@0.1.0-beta.50
20
+ - @stainless-api/ui-primitives@0.1.0-beta.37
21
+ - @stainless-api/docs-search@0.1.0-beta.2
22
+
23
+ ## 0.1.0-beta.59
24
+
25
+ ### Patch Changes
26
+
27
+ - 23bbd6d: fix search input layout on default header layout
28
+
29
+ ## 0.1.0-beta.58
30
+
31
+ ### Minor Changes
32
+
33
+ - af090c3: refactor: extract search to @stainless-api/docs-search package
34
+
35
+ ### Patch Changes
36
+
37
+ - e79d6c3: fix an issue where the search bar would overflow over nav elements
38
+ - 2d372fb: feat: support for stainless docs plugins
39
+ - Updated dependencies [af090c3]
40
+ - Updated dependencies [4cf4aa5]
41
+ - Updated dependencies [8886c7c]
42
+ - @stainless-api/docs-search@0.1.0-beta.1
43
+ - @stainless-api/docs-ui@0.1.0-beta.49
44
+ - @stainless-api/ui-primitives@0.1.0-beta.36
45
+
46
+ ## 0.1.0-beta.57
47
+
48
+ ### Patch Changes
49
+
50
+ - Updated dependencies [ada37ee]
51
+ - @stainless-api/docs-ui@0.1.0-beta.48
52
+
53
+ ## 0.1.0-beta.56
54
+
55
+ ### Minor Changes
56
+
57
+ - d75a72f: Adds C# language support
58
+
59
+ ### Patch Changes
60
+
61
+ - Updated dependencies [d75a72f]
62
+ - Updated dependencies [2464347]
63
+ - @stainless-api/docs-ui@0.1.0-beta.47
64
+
65
+ ## 0.1.0-beta.55
66
+
67
+ ### Patch Changes
68
+
69
+ - ae56b3c: ensure changeset release commit doesn’t include [skip ci]
70
+ - Updated dependencies [ae56b3c]
71
+ - @stainless-api/docs-ui@0.1.0-beta.46
72
+ - @stainless-api/ui-primitives@0.1.0-beta.35
73
+
74
+ ## 0.1.0-beta.54
75
+
76
+ ### Minor Changes
77
+
78
+ - a70f60c: Adds the title property
79
+
80
+ ### Patch Changes
81
+
82
+ - 2ebf696: enable trusted publishing
83
+ - Updated dependencies [2ebf696]
84
+ - Updated dependencies [a70f60c]
85
+ - @stainless-api/docs-ui@0.1.0-beta.45
86
+ - @stainless-api/ui-primitives@0.1.0-beta.34
87
+
88
+ ## 0.1.0-beta.53
89
+
90
+ ### Patch Changes
91
+
92
+ - 2e1639a: Updated preview worker and added experimental playgrounds feature.
93
+ - Updated dependencies [239e28c]
94
+ - Updated dependencies [ddc4593]
95
+ - Updated dependencies [2e1639a]
96
+ - Updated dependencies [2e1639a]
97
+ - @stainless-api/docs-ui@0.1.0-beta.44
98
+ - @stainless-api/ui-primitives@0.1.0-beta.33
99
+
100
+ ## 0.1.0-beta.52
101
+
102
+ ### Patch Changes
103
+
104
+ - 72c7604: include default themes in stainlessStarlight plugin
105
+ - Updated dependencies [8a32bbb]
106
+ - @stainless-api/ui-primitives@0.1.0-beta.32
107
+ - @stainless-api/docs-ui@0.1.0-beta.43
108
+
109
+ ## 0.1.0-beta.51
110
+
111
+ ### Patch Changes
112
+
113
+ - 4fc191c: standardize accent border colors
114
+ - Updated dependencies [3d2179f]
115
+ - @stainless-api/ui-primitives@0.1.0-beta.31
116
+ - @stainless-api/docs-ui@0.1.0-beta.42
117
+
118
+ ## 0.1.0-beta.50
119
+
120
+ ### Patch Changes
121
+
122
+ - 6de051d: update vendored preview worker
123
+
124
+ ## 0.1.0-beta.49
125
+
126
+ ### Patch Changes
127
+
128
+ - Updated dependencies [b9e4b82]
129
+ - Updated dependencies [6d12e06]
130
+ - Updated dependencies [5051795]
131
+ - @stainless-api/ui-primitives@0.1.0-beta.30
132
+ - @stainless-api/docs-ui@0.1.0-beta.41
133
+
134
+ ## 0.1.0-beta.48
135
+
136
+ ### Patch Changes
137
+
138
+ - Updated dependencies [81b5b21]
139
+ - Updated dependencies [ba269f9]
140
+ - Updated dependencies [e2a7098]
141
+ - Updated dependencies [589b13d]
142
+ - @stainless-api/ui-primitives@0.1.0-beta.29
143
+ - @stainless-api/docs-ui@0.1.0-beta.40
144
+
145
+ ## 0.1.0-beta.47
146
+
147
+ ### Patch Changes
148
+
149
+ - 466285c: Fixes for expressive code styles
150
+ - Ensure expressive code styles are applied to docs sites that do not include API reference
151
+ - Use correct red & green palettes for ins/del diff annotations
152
+
153
+ - Updated dependencies [d2d5d51]
154
+ - @stainless-api/ui-primitives@0.1.0-beta.28
155
+ - @stainless-api/docs-ui@0.1.0-beta.39
156
+
157
+ ## 0.1.0-beta.46
158
+
159
+ ### Minor Changes
160
+
161
+ - b61b7c1: New theming system
162
+
163
+ A whole new set of design system variables used throughout docs, docs-ui, and ui-primitives
164
+
165
+ Improves customizability & uniformness compared to the old set of variables.
166
+
167
+ ### Patch Changes
168
+
169
+ - Updated dependencies [b61b7c1]
170
+ - Updated dependencies [262f201]
171
+ - @stainless-api/docs-ui@0.1.0-beta.38
172
+ - @stainless-api/ui-primitives@0.1.0-beta.27
173
+
174
+ ## 0.1.0-beta.45
175
+
176
+ ### Patch Changes
177
+
178
+ - 00b33d9: syntax highlighting for markdown renderer
179
+ - fa43cff: json brackets should use muted foreground color
180
+ - c06e5c3: update marked dependency
181
+ - 32d1735: experimental support for collapsible method descriptions
182
+ - Updated dependencies [00b33d9]
183
+ - Updated dependencies [32d1735]
184
+ - Updated dependencies [23254d1]
185
+ - @stainless-api/ui-primitives@0.1.0-beta.26
186
+ - @stainless-api/docs-ui@0.1.0-beta.37
187
+
188
+ ## 0.1.0-beta.44
189
+
190
+ ### Patch Changes
191
+
192
+ - Updated dependencies [38b7030]
193
+ - @stainless-api/docs-ui@0.1.0-beta.36
194
+
195
+ ## 0.1.0-beta.43
196
+
197
+ ### Patch Changes
198
+
199
+ - a44a012: Remove debug code
200
+
201
+ ## 0.1.0-beta.42
202
+
203
+ ### Patch Changes
204
+
205
+ - Updated dependencies [3817ff5]
206
+ - Updated dependencies [391a7ce]
207
+ - Updated dependencies [945d4f3]
208
+ - @stainless-api/docs-ui@0.1.0-beta.35
209
+
210
+ ## 0.1.0-beta.41
211
+
212
+ ### Patch Changes
213
+
214
+ - 6557889: temporarily remove experimental AI search feature
215
+ - Updated dependencies [6557889]
216
+ - @stainless-api/docs-ui@0.1.0-beta.34
217
+
218
+ ## 0.1.0-beta.40
219
+
220
+ ### Patch Changes
221
+
222
+ - Updated dependencies [8670d73]
223
+ - @stainless-api/docs-ui@0.1.0-beta.33
224
+
225
+ ## 0.1.0-beta.39
226
+
227
+ ### Patch Changes
228
+
229
+ - 242deef: fix mobile menu on splash pages
230
+ - Updated dependencies [242deef]
231
+ - @stainless-api/ui-primitives@0.1.0-beta.25
232
+ - @stainless-api/docs-ui@0.1.0-beta.32
233
+
234
+ ## 0.1.0-beta.38
235
+
236
+ ### Patch Changes
237
+
238
+ - Updated dependencies [c28b0a6]
239
+ - Updated dependencies [f23c6bc]
240
+ - Updated dependencies [2cd1b33]
241
+ - @stainless-api/docs-ui@0.1.0-beta.31
242
+ - @stainless-api/ui-primitives@0.1.0-beta.24
243
+
244
+ ## 0.1.0-beta.37
245
+
246
+ ### Patch Changes
247
+
248
+ - 5f14e53: Render page descriptions as part of page header by default
249
+ - Updated dependencies [49e1b93]
250
+ - @stainless-api/docs-ui@0.1.0-beta.30
251
+ - @stainless-api/ui-primitives@0.1.0-beta.23
252
+
253
+ ## 0.1.0-beta.36
254
+
255
+ ### Patch Changes
256
+
257
+ - Updated dependencies [7897575]
258
+ - @stainless-api/ui-primitives@0.1.0-beta.22
259
+ - @stainless-api/docs-ui@0.1.0-beta.29
260
+
261
+ ## 0.1.0-beta.35
262
+
263
+ ### Patch Changes
264
+
265
+ - Updated dependencies [344761e]
266
+ - @stainless-api/ui-primitives@0.1.0-beta.21
267
+ - @stainless-api/docs-ui@0.1.0-beta.28
268
+
269
+ ## 0.1.0-beta.34
270
+
271
+ ### Patch Changes
272
+
273
+ - f5173e9: fix: theme flickering
274
+
275
+ ## 0.1.0-beta.33
276
+
277
+ ### Patch Changes
278
+
279
+ - 7ef572c: feat: updated dropdowns
280
+ - Updated dependencies [7ef572c]
281
+ - @stainless-api/docs-ui@0.1.0-beta.27
282
+ - @stainless-api/ui-primitives@0.1.0-beta.20
283
+
284
+ ## 0.1.0-beta.32
285
+
286
+ ### Patch Changes
287
+
288
+ - 58040d8: feat: ui primitives updates, cursor support
289
+ - Updated dependencies [58040d8]
290
+ - @stainless-api/docs-ui@0.1.0-beta.26
291
+ - @stainless-api/ui-primitives@0.1.0-beta.19
292
+
293
+ ## 0.1.0-beta.31
294
+
295
+ ### Patch Changes
296
+
297
+ - Updated dependencies [afd1f8e]
298
+ - Updated dependencies [279fa0e]
299
+ - @stainless-api/docs-ui@0.1.0-beta.25
300
+
301
+ ## 0.1.0-beta.30
302
+
303
+ ### Patch Changes
304
+
305
+ - Updated dependencies [ab570bc]
306
+ - @stainless-api/docs-ui@0.1.0-beta.24
307
+
308
+ ## 0.1.0-beta.29
309
+
310
+ ### Patch Changes
311
+
312
+ - Updated dependencies [279fa0e]
313
+ - @stainless-api/docs-ui@0.1.0-beta.23
314
+
315
+ ## 0.1.0-beta.28
316
+
317
+ ### Minor Changes
318
+
319
+ - c635741: Updated worker and fixed docs-ui jsx issue
320
+
321
+ ### Patch Changes
322
+
323
+ - Updated dependencies [c635741]
324
+ - @stainless-api/docs-ui@0.1.0-beta.22
325
+ - @stainless-api/ui-primitives@0.1.0-beta.18
326
+
327
+ ## 0.1.0-beta.27
328
+
329
+ ### Patch Changes
330
+
331
+ - de189ee: remove max width on site title
332
+
333
+ ## 0.1.0-beta.26
334
+
335
+ ### Patch Changes
336
+
337
+ - 1517484: fixing font loading, updating nav bar height
338
+ - Updated dependencies [1517484]
339
+ - @stainless-api/docs-ui@0.1.0-beta.21
340
+ - @stainless-api/ui-primitives@0.1.0-beta.17
341
+
342
+ ## 0.1.0-beta.25
343
+
344
+ ### Patch Changes
345
+
346
+ - Updated dependencies [b9ce1b6]
347
+ - @stainless-api/docs-ui@0.1.0-beta.20
348
+
349
+ ## 0.1.0-beta.24
350
+
351
+ ### Patch Changes
352
+
353
+ - Updated dependencies [402222a]
354
+ - @stainless-api/docs-ui@0.1.0-beta.19
355
+
356
+ ## 0.1.0-beta.23
357
+
358
+ ### Patch Changes
359
+
360
+ - Updated dependencies [2150eee]
361
+ - @stainless-api/docs-ui@0.1.0-beta.18
362
+
363
+ ## 0.1.0-beta.22
364
+
365
+ ### Patch Changes
366
+
367
+ - Updated dependencies [f7ba067]
368
+ - @stainless-api/docs-ui@0.1.0-beta.17
369
+
370
+ ## 0.1.0-beta.21
371
+
372
+ ### Patch Changes
373
+
374
+ - 41e87cb: fix virtual module imports
375
+
376
+ ## 0.1.0-beta.20
377
+
378
+ ### Patch Changes
379
+
380
+ - 9cdb24d: Update pagination components, fix search modal
381
+ - Updated dependencies [9cdb24d]
382
+ - @stainless-api/docs-ui@0.1.0-beta.16
383
+ - @stainless-api/ui-primitives@0.1.0-beta.16
384
+
385
+ ## 0.1.0-beta.19
386
+
387
+ ### Patch Changes
388
+
389
+ - 15c003d: fix react peer dependencies
390
+ - Updated dependencies [15c003d]
391
+ - @stainless-api/docs-ui@0.1.0-beta.15
392
+ - @stainless-api/ui-primitives@0.1.0-beta.15
393
+
394
+ ## 0.1.0-beta.18
395
+
396
+ ### Patch Changes
397
+
398
+ - Updated dependencies [0572f60]
399
+ - @stainless-api/docs-ui@0.1.0-beta.14
400
+
401
+ ## 0.1.0-beta.17
402
+
403
+ ### Patch Changes
404
+
405
+ - a925bb4: fix markdown icon color in dark mode
406
+
407
+ ## 0.1.0-beta.16
408
+
409
+ ### Patch Changes
410
+
411
+ - 0618d05: Markdown rendering of prose pages, ai context menu, auth via cli, minor fixes
412
+ - Updated dependencies [0618d05]
413
+ - @stainless-api/docs-ui@0.1.0-beta.13
414
+ - @stainless-api/ui-primitives@0.1.0-beta.14
415
+
416
+ ## 0.1.0-beta.15
417
+
418
+ ### Patch Changes
419
+
420
+ - e35360f: include ui-primitive packages
421
+ - Updated dependencies [e35360f]
422
+ - @stainless-api/docs-ui@0.1.0-beta.12
423
+ - @stainless-api/ui-primitives@0.1.0-beta.13
424
+
425
+ ## 0.1.0-beta.14
426
+
427
+ ### Patch Changes
428
+
429
+ - a529fd4: fix: site title height
430
+ - Updated dependencies [a529fd4]
431
+ - @stainless-api/docs-ui@0.1.0-beta.11
432
+ - @stainless-api/ui-primitives@0.1.0-beta.12
433
+
434
+ ## 0.1.0-beta.13
435
+
436
+ ### Patch Changes
437
+
438
+ - 26a4786: fix: include missing starlight config options
439
+ - Updated dependencies [26a4786]
440
+ - @stainless-api/docs-ui@0.1.0-beta.10
441
+ - @stainless-api/ui-primitives@0.1.0-beta.11
442
+
443
+ ## 0.1.0-beta.12
444
+
445
+ ### Patch Changes
446
+
447
+ - Updated dependencies [3e44a9c]
448
+ - @stainless-api/ui-primitives@0.1.0-beta.10
449
+ - @stainless-api/docs-ui@0.1.0-beta.9
450
+
451
+ ## 0.1.0-beta.11
452
+
453
+ ### Patch Changes
454
+
455
+ - c96f895: Remove css layers, update sidebar styles, add new prose elements
456
+ - Updated dependencies [c96f895]
457
+ - @stainless-api/docs-ui@0.1.0-beta.8
458
+ - @stainless-api/ui-primitives@0.1.0-beta.9
459
+
460
+ ## 0.1.0-beta.10
461
+
462
+ ### Patch Changes
463
+
464
+ - dc059d2: should include option in stl-docs virtual module
465
+
466
+ ## 0.1.0-beta.9
467
+
468
+ ### Patch Changes
469
+
470
+ - d15a520: fix initialization of dropdown buttons
471
+ - Updated dependencies [d15a520]
472
+ - @stainless-api/ui-primitives@0.1.0-beta.8
473
+ - @stainless-api/docs-ui@0.1.0-beta.7
474
+
475
+ ## 0.1.0-beta.8
476
+
477
+ ### Minor Changes
478
+
479
+ - 917493d: move stainlessDocs into default export
480
+
481
+ ## 0.1.0-beta.7
482
+
483
+ ### Patch Changes
484
+
485
+ - Updated dependencies [34e7c61]
486
+ - @stainless-api/ui-primitives@0.1.0-beta.7
487
+ - @stainless-api/docs-ui@0.1.0-beta.6
488
+
3
489
  ## 0.1.0-beta.6
4
490
 
5
491
  ### Patch Changes
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  3. In your Astro config:
6
6
 
7
7
  ```
8
- import { stainlessStarlight } from "stl-starlight";
8
+ import { stainlessStarlight } from "@stainless-api/docs";
9
9
  ```
10
10
 
11
11
  4. Run `pnpm astro:sync` to generate astro types
@@ -0,0 +1,52 @@
1
+ {
2
+ "plugin/buildAlgoliaIndex.ts": {
3
+ "@typescript-eslint/no-explicit-any": {
4
+ "count": 2
5
+ }
6
+ },
7
+ "plugin/cms/client.ts": {
8
+ "@typescript-eslint/no-explicit-any": {
9
+ "count": 1
10
+ }
11
+ },
12
+ "plugin/cms/server.ts": {
13
+ "@typescript-eslint/no-explicit-any": {
14
+ "count": 4
15
+ }
16
+ },
17
+ "plugin/cms/sidebar-builder.ts": {
18
+ "@typescript-eslint/no-explicit-any": {
19
+ "count": 1
20
+ }
21
+ },
22
+ "plugin/cms/worker.ts": {
23
+ "@typescript-eslint/no-explicit-any": {
24
+ "count": 3
25
+ }
26
+ },
27
+ "plugin/components/SnippetCode.tsx": {
28
+ "@typescript-eslint/no-explicit-any": {
29
+ "count": 1
30
+ }
31
+ },
32
+ "plugin/globalJs/copy.ts": {
33
+ "@typescript-eslint/no-explicit-any": {
34
+ "count": 3
35
+ }
36
+ },
37
+ "plugin/index.ts": {
38
+ "@typescript-eslint/no-explicit-any": {
39
+ "count": 1
40
+ }
41
+ },
42
+ "plugin/languages.ts": {
43
+ "@typescript-eslint/no-explicit-any": {
44
+ "count": 1
45
+ }
46
+ },
47
+ "shared/virtualModule.ts": {
48
+ "@typescript-eslint/no-explicit-any": {
49
+ "count": 1
50
+ }
51
+ }
52
+ }
package/locals.d.ts ADDED
@@ -0,0 +1,16 @@
1
+ type SidebarEntry = App.Locals['starlightRoute']['sidebar'][number];
2
+
3
+ /**
4
+ * Extending Astro’s `App.Locals` interface
5
+ */
6
+ declare namespace App {
7
+ interface Locals {
8
+ _stlStarlightPage?: {
9
+ skipRenderingStarlightTitle?: boolean;
10
+ hasMarkdownRoute?: boolean;
11
+ fullSidebar?: SidebarEntry[];
12
+ };
13
+
14
+ language?: import('@stainless-api/docs-ui/routing').DocsLanguage;
15
+ }
16
+ }
package/package.json CHANGED
@@ -1,32 +1,22 @@
1
1
  {
2
2
  "name": "@stainless-api/docs",
3
- "version": "0.1.0-beta.6",
3
+ "version": "0.1.0-beta.61",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
7
  "description": "",
8
8
  "type": "module",
9
9
  "exports": {
10
+ ".": "./stl-docs/index.ts",
10
11
  "./plugin": "./plugin/index.ts",
11
- "./OverviewRoute": "./plugin/routes/Overview.astro",
12
- "./DocsRoute": "./plugin/routes/Docs.astro",
13
- "./DocsStaticRoute": "./plugin/routes/DocsStatic.astro",
14
- "./MarkdownRoute": "./plugin/routes/markdown.ts",
15
- "./Search": "./plugin/components/search/Search.astro",
16
- "./replaceSidebarPlaceholderMiddleware": "./plugin/replaceSidebarPlaceholderMiddleware.ts",
17
12
  "./plugin/middleware": "./plugin/middlewareBuilder/stlStarlightMiddleware.ts",
18
13
  "./plugin/MiddlewareTypes": "./plugin/middlewareBuilder/stainlessMiddleware.d.ts",
19
- "./stainless-docs": "./stl-docs/index.ts",
20
- "./Header": "./stl-docs/components/Header.astro",
21
- "./ThemeSelect": "./stl-docs/components/ThemeSelect.astro",
22
- "./BaseSidebar": "./stl-docs/components/sidebars/BaseSidebar.astro",
23
- "./SDKSelectSidebar": "./stl-docs/components/sidebars/SDKSelectSidebar.astro",
24
- "./ContentPanel": "./stl-docs/components/content-panel/ContentPanel.astro",
25
- "./tabsMiddleware": "./stl-docs/tabsMiddleware.ts",
14
+ "./plugin/languages": "./plugin/languages.ts",
26
15
  "./stainless-docs/mintlify-compat": "./stl-docs/components/mintlify-compat/index.ts",
27
- "./theme": "./theme.css",
28
16
  "./mintlify-compat.css": "./styles/mintlify-compat.css",
29
- "./font-imports": "./styles/fonts.css"
17
+ "./font-imports": "./styles/fonts.css",
18
+ "./components": "./stl-docs/components/index.ts",
19
+ "./components/scripts": "./stl-docs/components/scripts.ts"
30
20
  },
31
21
  "keywords": [],
32
22
  "author": "",
@@ -35,41 +25,56 @@
35
25
  "node": ">=18.17.1"
36
26
  },
37
27
  "peerDependencies": {
38
- "@astrojs/starlight": ">=0.34.0",
39
- "astro": ">=5.5.0"
28
+ "@astrojs/starlight": ">=0.36.1",
29
+ "astro": ">=5.15.3",
30
+ "react": ">=19.0.0",
31
+ "react-dom": ">=19.0.0",
32
+ "vite": ">=6.2.1"
40
33
  },
41
34
  "dependencies": {
42
- "@astrojs/markdown-remark": "^6.3.2",
43
- "@astrojs/react": "^4.3.1",
44
- "@stainless-api/sdk": "0.1.0-alpha.12",
35
+ "@astrojs/markdown-remark": "^6.3.10",
36
+ "@astrojs/react": "^4.4.2",
37
+ "@stainless-api/sdk": "0.1.0-alpha.19",
45
38
  "cheerio": "^1.1.2",
46
39
  "clsx": "^2.1.1",
47
- "dotenv": "17.2.2",
40
+ "dotenv": "17.2.3",
48
41
  "get-port": "^7.1.0",
49
- "highlight.js": "^11.11.1",
50
- "lucide-react": "^0.544.0",
51
- "marked": "^16.0.0",
52
- "react": "^19.1.1",
53
- "react-dom": "^19.1.1",
42
+ "lucide-react": "^0.561.0",
43
+ "marked": "^17.0.1",
44
+ "node-html-parser": "^7.0.1",
45
+ "rehype-parse": "^9.0.1",
46
+ "rehype-remark": "^10.0.1",
47
+ "remark-gfm": "^4.0.1",
54
48
  "remark-github-alerts": "^0.1.1",
55
- "shiki": "^3.9.2",
49
+ "remark-stringify": "^11.0.0",
50
+ "shiki": "^3.19.0",
51
+ "unified": "^11.0.5",
52
+ "vite-plugin-prebundle-workers": "^0.2.0",
56
53
  "web-worker": "^1.5.0",
57
- "yaml": "^2.8.0",
58
- "@stainless-api/docs-ui": "0.1.0-beta.5",
59
- "@stainless-api/ui-primitives": "0.1.0-beta.6"
54
+ "yaml": "^2.8.2",
55
+ "@stainless-api/docs-ui": "0.1.0-beta.51",
56
+ "@stainless-api/docs-search": "0.1.0-beta.3",
57
+ "@stainless-api/ui-primitives": "0.1.0-beta.38"
60
58
  },
61
59
  "devDependencies": {
62
- "@markdoc/markdoc": "^0.5.2",
63
- "@types/node": "^24.4.0",
64
- "@types/react": "^19.1.13",
65
- "@types/react-dom": "^19.1.9",
66
- "tsx": "^4.20.3",
67
- "zod": "^4.0.0",
68
- "@stainless/eslint-config": "0.0.0"
60
+ "@astrojs/check": "^0.9.6",
61
+ "@markdoc/markdoc": "^0.5.4",
62
+ "@types/node": "24.10.3",
63
+ "@types/react": "19.2.7",
64
+ "@types/react-dom": "^19.2.3",
65
+ "react": "^19.2.3",
66
+ "react-dom": "^19.2.3",
67
+ "tsx": "^4.21.0",
68
+ "typescript": "5.9.3",
69
+ "vite": "^6.4.1",
70
+ "zod": "^4.1.13",
71
+ "@stainless/eslint-config": "0.1.0-beta.0",
72
+ "@stainless/sdk-json": "^0.1.0-beta.2"
69
73
  },
70
74
  "scripts": {
71
- "vendor-deps": "pnpm tsx scripts/vendor_deps.ts",
75
+ "vendor-deps": "tsx scripts/vendor_deps.ts",
72
76
  "lint": "eslint . --max-warnings 0",
73
- "sync": "astro sync"
77
+ "sync": "astro sync",
78
+ "check:types": "astro check"
74
79
  }
75
80
  }
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none"><defs><linearGradient id="a-_r_1_" x1="46.77" x2="69.91" y1="86.46" y2="126.73" gradientTransform="matrix(8.78996,0,0,8.78996,-233.98,-518.97)" gradientUnits="userSpaceOnUse"><stop stop-color="#927be5"></stop><stop offset="1" stop-color="#512bd4"></stop></linearGradient><filter id="b-_r_1_" width="42.84" height="39.14" x="44.63" y="91.89" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2037_2800"></feBlend><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset dy="1"></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"></feColorMatrix><feBlend in2="effect1_dropShadow_2037_2800" result="effect2_dropShadow_2037_2800"></feBlend><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset dy="4"></feOffset><feGaussianBlur stdDeviation="2"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.09 0"></feColorMatrix><feBlend in2="effect2_dropShadow_2037_2800" result="effect3_dropShadow_2037_2800"></feBlend><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset dy="9"></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0"></feColorMatrix><feBlend in2="effect3_dropShadow_2037_2800" result="effect4_dropShadow_2037_2800"></feBlend><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset dy="15"></feOffset><feGaussianBlur stdDeviation="3"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.01 0"></feColorMatrix><feBlend in2="effect4_dropShadow_2037_2800" result="effect5_dropShadow_2037_2800"></feBlend><feBlend in="SourceGraphic" in2="effect5_dropShadow_2037_2800" result="shape"></feBlend></filter></defs><path fill="url(#a-_r_1_)" d="M135.73 285.85v173.93a60.2 60.2 0 0 0 30.13 52.17l150.62 86.97a60.2 60.2 0 0 0 60.25 0l150.62-86.97a60.2 60.2 0 0 0 30.13-52.17V285.85a60.2 60.2 0 0 0-30.13-52.18l-150.62-86.95a60.2 60.2 0 0 0-60.25 0l-150.62 86.95a60.3 60.3 0 0 0-30.13 52.18" transform="scale(0.44288615) matrix(0.1,0,0,0.1,-7.57,-10.19)"></path><path fill="#fff" d="M54.06 98.03v6.86a1.7 1.7 0 0 0 1.71 1.7 1.7 1.7 0 0 0 1.71-1.7 1.71 1.71 0 1 1 3.43 0 5.14 5.14 0 1 1-10.28 0v-6.86a5.14 5.14 0 1 1 10.28 0 1.71 1.71 0 1 1-3.43 0 1.71 1.71 0 1 0-3.42 0zm27.41 6.86a1.7 1.7 0 0 1-1.71 1.7h-1.71v1.72c0 .46-.18.9-.5 1.21a1.7 1.7 0 0 1-2.43 0 1.7 1.7 0 0 1-.5-1.2v-1.72h-3.43v1.71a1.7 1.7 0 0 1-1.71 1.72 1.7 1.7 0 0 1-1.72-1.72v-1.71h-1.71a1.71 1.71 0 1 1 0-3.43h1.71v-3.43h-1.71a1.71 1.71 0 1 1 0-3.42h1.71V94.6a1.71 1.71 0 1 1 3.43 0v1.72h3.43V94.6a1.71 1.71 0 1 1 3.43 0v1.72h1.7c.46 0 .9.18 1.22.5a1.7 1.7 0 0 1 0 2.42 1.7 1.7 0 0 1-1.21.5h-1.71v3.43h1.7a1.7 1.7 0 0 1 1.72 1.71m-6.85-5.14h-3.43v3.42h3.43z" filter="url(#b-_r_1_)" style="mix-blend-mode: screen;" transform="scale(0.44288615) matrix(0.879,0,0,0.879,-30.96,-62.09)"></path></svg>