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

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 +476 -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 +121 -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,481 @@
1
1
  # @stainless-api/docs
2
2
 
3
+ ## 0.1.0-beta.60
4
+
5
+ ### Patch Changes
6
+
7
+ - 2d00f0d: compatibility with the first alpha version of docs-ai-chat
8
+ - Updated dependencies [2d00f0d]
9
+ - @stainless-api/docs-ui@0.1.0-beta.50
10
+ - @stainless-api/ui-primitives@0.1.0-beta.37
11
+ - @stainless-api/docs-search@0.1.0-beta.2
12
+
13
+ ## 0.1.0-beta.59
14
+
15
+ ### Patch Changes
16
+
17
+ - 23bbd6d: fix search input layout on default header layout
18
+
19
+ ## 0.1.0-beta.58
20
+
21
+ ### Minor Changes
22
+
23
+ - af090c3: refactor: extract search to @stainless-api/docs-search package
24
+
25
+ ### Patch Changes
26
+
27
+ - e79d6c3: fix an issue where the search bar would overflow over nav elements
28
+ - 2d372fb: feat: support for stainless docs plugins
29
+ - Updated dependencies [af090c3]
30
+ - Updated dependencies [4cf4aa5]
31
+ - Updated dependencies [8886c7c]
32
+ - @stainless-api/docs-search@0.1.0-beta.1
33
+ - @stainless-api/docs-ui@0.1.0-beta.49
34
+ - @stainless-api/ui-primitives@0.1.0-beta.36
35
+
36
+ ## 0.1.0-beta.57
37
+
38
+ ### Patch Changes
39
+
40
+ - Updated dependencies [ada37ee]
41
+ - @stainless-api/docs-ui@0.1.0-beta.48
42
+
43
+ ## 0.1.0-beta.56
44
+
45
+ ### Minor Changes
46
+
47
+ - d75a72f: Adds C# language support
48
+
49
+ ### Patch Changes
50
+
51
+ - Updated dependencies [d75a72f]
52
+ - Updated dependencies [2464347]
53
+ - @stainless-api/docs-ui@0.1.0-beta.47
54
+
55
+ ## 0.1.0-beta.55
56
+
57
+ ### Patch Changes
58
+
59
+ - ae56b3c: ensure changeset release commit doesn’t include [skip ci]
60
+ - Updated dependencies [ae56b3c]
61
+ - @stainless-api/docs-ui@0.1.0-beta.46
62
+ - @stainless-api/ui-primitives@0.1.0-beta.35
63
+
64
+ ## 0.1.0-beta.54
65
+
66
+ ### Minor Changes
67
+
68
+ - a70f60c: Adds the title property
69
+
70
+ ### Patch Changes
71
+
72
+ - 2ebf696: enable trusted publishing
73
+ - Updated dependencies [2ebf696]
74
+ - Updated dependencies [a70f60c]
75
+ - @stainless-api/docs-ui@0.1.0-beta.45
76
+ - @stainless-api/ui-primitives@0.1.0-beta.34
77
+
78
+ ## 0.1.0-beta.53
79
+
80
+ ### Patch Changes
81
+
82
+ - 2e1639a: Updated preview worker and added experimental playgrounds feature.
83
+ - Updated dependencies [239e28c]
84
+ - Updated dependencies [ddc4593]
85
+ - Updated dependencies [2e1639a]
86
+ - Updated dependencies [2e1639a]
87
+ - @stainless-api/docs-ui@0.1.0-beta.44
88
+ - @stainless-api/ui-primitives@0.1.0-beta.33
89
+
90
+ ## 0.1.0-beta.52
91
+
92
+ ### Patch Changes
93
+
94
+ - 72c7604: include default themes in stainlessStarlight plugin
95
+ - Updated dependencies [8a32bbb]
96
+ - @stainless-api/ui-primitives@0.1.0-beta.32
97
+ - @stainless-api/docs-ui@0.1.0-beta.43
98
+
99
+ ## 0.1.0-beta.51
100
+
101
+ ### Patch Changes
102
+
103
+ - 4fc191c: standardize accent border colors
104
+ - Updated dependencies [3d2179f]
105
+ - @stainless-api/ui-primitives@0.1.0-beta.31
106
+ - @stainless-api/docs-ui@0.1.0-beta.42
107
+
108
+ ## 0.1.0-beta.50
109
+
110
+ ### Patch Changes
111
+
112
+ - 6de051d: update vendored preview worker
113
+
114
+ ## 0.1.0-beta.49
115
+
116
+ ### Patch Changes
117
+
118
+ - Updated dependencies [b9e4b82]
119
+ - Updated dependencies [6d12e06]
120
+ - Updated dependencies [5051795]
121
+ - @stainless-api/ui-primitives@0.1.0-beta.30
122
+ - @stainless-api/docs-ui@0.1.0-beta.41
123
+
124
+ ## 0.1.0-beta.48
125
+
126
+ ### Patch Changes
127
+
128
+ - Updated dependencies [81b5b21]
129
+ - Updated dependencies [ba269f9]
130
+ - Updated dependencies [e2a7098]
131
+ - Updated dependencies [589b13d]
132
+ - @stainless-api/ui-primitives@0.1.0-beta.29
133
+ - @stainless-api/docs-ui@0.1.0-beta.40
134
+
135
+ ## 0.1.0-beta.47
136
+
137
+ ### Patch Changes
138
+
139
+ - 466285c: Fixes for expressive code styles
140
+ - Ensure expressive code styles are applied to docs sites that do not include API reference
141
+ - Use correct red & green palettes for ins/del diff annotations
142
+
143
+ - Updated dependencies [d2d5d51]
144
+ - @stainless-api/ui-primitives@0.1.0-beta.28
145
+ - @stainless-api/docs-ui@0.1.0-beta.39
146
+
147
+ ## 0.1.0-beta.46
148
+
149
+ ### Minor Changes
150
+
151
+ - b61b7c1: New theming system
152
+
153
+ A whole new set of design system variables used throughout docs, docs-ui, and ui-primitives
154
+
155
+ Improves customizability & uniformness compared to the old set of variables.
156
+
157
+ ### Patch Changes
158
+
159
+ - Updated dependencies [b61b7c1]
160
+ - Updated dependencies [262f201]
161
+ - @stainless-api/docs-ui@0.1.0-beta.38
162
+ - @stainless-api/ui-primitives@0.1.0-beta.27
163
+
164
+ ## 0.1.0-beta.45
165
+
166
+ ### Patch Changes
167
+
168
+ - 00b33d9: syntax highlighting for markdown renderer
169
+ - fa43cff: json brackets should use muted foreground color
170
+ - c06e5c3: update marked dependency
171
+ - 32d1735: experimental support for collapsible method descriptions
172
+ - Updated dependencies [00b33d9]
173
+ - Updated dependencies [32d1735]
174
+ - Updated dependencies [23254d1]
175
+ - @stainless-api/ui-primitives@0.1.0-beta.26
176
+ - @stainless-api/docs-ui@0.1.0-beta.37
177
+
178
+ ## 0.1.0-beta.44
179
+
180
+ ### Patch Changes
181
+
182
+ - Updated dependencies [38b7030]
183
+ - @stainless-api/docs-ui@0.1.0-beta.36
184
+
185
+ ## 0.1.0-beta.43
186
+
187
+ ### Patch Changes
188
+
189
+ - a44a012: Remove debug code
190
+
191
+ ## 0.1.0-beta.42
192
+
193
+ ### Patch Changes
194
+
195
+ - Updated dependencies [3817ff5]
196
+ - Updated dependencies [391a7ce]
197
+ - Updated dependencies [945d4f3]
198
+ - @stainless-api/docs-ui@0.1.0-beta.35
199
+
200
+ ## 0.1.0-beta.41
201
+
202
+ ### Patch Changes
203
+
204
+ - 6557889: temporarily remove experimental AI search feature
205
+ - Updated dependencies [6557889]
206
+ - @stainless-api/docs-ui@0.1.0-beta.34
207
+
208
+ ## 0.1.0-beta.40
209
+
210
+ ### Patch Changes
211
+
212
+ - Updated dependencies [8670d73]
213
+ - @stainless-api/docs-ui@0.1.0-beta.33
214
+
215
+ ## 0.1.0-beta.39
216
+
217
+ ### Patch Changes
218
+
219
+ - 242deef: fix mobile menu on splash pages
220
+ - Updated dependencies [242deef]
221
+ - @stainless-api/ui-primitives@0.1.0-beta.25
222
+ - @stainless-api/docs-ui@0.1.0-beta.32
223
+
224
+ ## 0.1.0-beta.38
225
+
226
+ ### Patch Changes
227
+
228
+ - Updated dependencies [c28b0a6]
229
+ - Updated dependencies [f23c6bc]
230
+ - Updated dependencies [2cd1b33]
231
+ - @stainless-api/docs-ui@0.1.0-beta.31
232
+ - @stainless-api/ui-primitives@0.1.0-beta.24
233
+
234
+ ## 0.1.0-beta.37
235
+
236
+ ### Patch Changes
237
+
238
+ - 5f14e53: Render page descriptions as part of page header by default
239
+ - Updated dependencies [49e1b93]
240
+ - @stainless-api/docs-ui@0.1.0-beta.30
241
+ - @stainless-api/ui-primitives@0.1.0-beta.23
242
+
243
+ ## 0.1.0-beta.36
244
+
245
+ ### Patch Changes
246
+
247
+ - Updated dependencies [7897575]
248
+ - @stainless-api/ui-primitives@0.1.0-beta.22
249
+ - @stainless-api/docs-ui@0.1.0-beta.29
250
+
251
+ ## 0.1.0-beta.35
252
+
253
+ ### Patch Changes
254
+
255
+ - Updated dependencies [344761e]
256
+ - @stainless-api/ui-primitives@0.1.0-beta.21
257
+ - @stainless-api/docs-ui@0.1.0-beta.28
258
+
259
+ ## 0.1.0-beta.34
260
+
261
+ ### Patch Changes
262
+
263
+ - f5173e9: fix: theme flickering
264
+
265
+ ## 0.1.0-beta.33
266
+
267
+ ### Patch Changes
268
+
269
+ - 7ef572c: feat: updated dropdowns
270
+ - Updated dependencies [7ef572c]
271
+ - @stainless-api/docs-ui@0.1.0-beta.27
272
+ - @stainless-api/ui-primitives@0.1.0-beta.20
273
+
274
+ ## 0.1.0-beta.32
275
+
276
+ ### Patch Changes
277
+
278
+ - 58040d8: feat: ui primitives updates, cursor support
279
+ - Updated dependencies [58040d8]
280
+ - @stainless-api/docs-ui@0.1.0-beta.26
281
+ - @stainless-api/ui-primitives@0.1.0-beta.19
282
+
283
+ ## 0.1.0-beta.31
284
+
285
+ ### Patch Changes
286
+
287
+ - Updated dependencies [afd1f8e]
288
+ - Updated dependencies [279fa0e]
289
+ - @stainless-api/docs-ui@0.1.0-beta.25
290
+
291
+ ## 0.1.0-beta.30
292
+
293
+ ### Patch Changes
294
+
295
+ - Updated dependencies [ab570bc]
296
+ - @stainless-api/docs-ui@0.1.0-beta.24
297
+
298
+ ## 0.1.0-beta.29
299
+
300
+ ### Patch Changes
301
+
302
+ - Updated dependencies [279fa0e]
303
+ - @stainless-api/docs-ui@0.1.0-beta.23
304
+
305
+ ## 0.1.0-beta.28
306
+
307
+ ### Minor Changes
308
+
309
+ - c635741: Updated worker and fixed docs-ui jsx issue
310
+
311
+ ### Patch Changes
312
+
313
+ - Updated dependencies [c635741]
314
+ - @stainless-api/docs-ui@0.1.0-beta.22
315
+ - @stainless-api/ui-primitives@0.1.0-beta.18
316
+
317
+ ## 0.1.0-beta.27
318
+
319
+ ### Patch Changes
320
+
321
+ - de189ee: remove max width on site title
322
+
323
+ ## 0.1.0-beta.26
324
+
325
+ ### Patch Changes
326
+
327
+ - 1517484: fixing font loading, updating nav bar height
328
+ - Updated dependencies [1517484]
329
+ - @stainless-api/docs-ui@0.1.0-beta.21
330
+ - @stainless-api/ui-primitives@0.1.0-beta.17
331
+
332
+ ## 0.1.0-beta.25
333
+
334
+ ### Patch Changes
335
+
336
+ - Updated dependencies [b9ce1b6]
337
+ - @stainless-api/docs-ui@0.1.0-beta.20
338
+
339
+ ## 0.1.0-beta.24
340
+
341
+ ### Patch Changes
342
+
343
+ - Updated dependencies [402222a]
344
+ - @stainless-api/docs-ui@0.1.0-beta.19
345
+
346
+ ## 0.1.0-beta.23
347
+
348
+ ### Patch Changes
349
+
350
+ - Updated dependencies [2150eee]
351
+ - @stainless-api/docs-ui@0.1.0-beta.18
352
+
353
+ ## 0.1.0-beta.22
354
+
355
+ ### Patch Changes
356
+
357
+ - Updated dependencies [f7ba067]
358
+ - @stainless-api/docs-ui@0.1.0-beta.17
359
+
360
+ ## 0.1.0-beta.21
361
+
362
+ ### Patch Changes
363
+
364
+ - 41e87cb: fix virtual module imports
365
+
366
+ ## 0.1.0-beta.20
367
+
368
+ ### Patch Changes
369
+
370
+ - 9cdb24d: Update pagination components, fix search modal
371
+ - Updated dependencies [9cdb24d]
372
+ - @stainless-api/docs-ui@0.1.0-beta.16
373
+ - @stainless-api/ui-primitives@0.1.0-beta.16
374
+
375
+ ## 0.1.0-beta.19
376
+
377
+ ### Patch Changes
378
+
379
+ - 15c003d: fix react peer dependencies
380
+ - Updated dependencies [15c003d]
381
+ - @stainless-api/docs-ui@0.1.0-beta.15
382
+ - @stainless-api/ui-primitives@0.1.0-beta.15
383
+
384
+ ## 0.1.0-beta.18
385
+
386
+ ### Patch Changes
387
+
388
+ - Updated dependencies [0572f60]
389
+ - @stainless-api/docs-ui@0.1.0-beta.14
390
+
391
+ ## 0.1.0-beta.17
392
+
393
+ ### Patch Changes
394
+
395
+ - a925bb4: fix markdown icon color in dark mode
396
+
397
+ ## 0.1.0-beta.16
398
+
399
+ ### Patch Changes
400
+
401
+ - 0618d05: Markdown rendering of prose pages, ai context menu, auth via cli, minor fixes
402
+ - Updated dependencies [0618d05]
403
+ - @stainless-api/docs-ui@0.1.0-beta.13
404
+ - @stainless-api/ui-primitives@0.1.0-beta.14
405
+
406
+ ## 0.1.0-beta.15
407
+
408
+ ### Patch Changes
409
+
410
+ - e35360f: include ui-primitive packages
411
+ - Updated dependencies [e35360f]
412
+ - @stainless-api/docs-ui@0.1.0-beta.12
413
+ - @stainless-api/ui-primitives@0.1.0-beta.13
414
+
415
+ ## 0.1.0-beta.14
416
+
417
+ ### Patch Changes
418
+
419
+ - a529fd4: fix: site title height
420
+ - Updated dependencies [a529fd4]
421
+ - @stainless-api/docs-ui@0.1.0-beta.11
422
+ - @stainless-api/ui-primitives@0.1.0-beta.12
423
+
424
+ ## 0.1.0-beta.13
425
+
426
+ ### Patch Changes
427
+
428
+ - 26a4786: fix: include missing starlight config options
429
+ - Updated dependencies [26a4786]
430
+ - @stainless-api/docs-ui@0.1.0-beta.10
431
+ - @stainless-api/ui-primitives@0.1.0-beta.11
432
+
433
+ ## 0.1.0-beta.12
434
+
435
+ ### Patch Changes
436
+
437
+ - Updated dependencies [3e44a9c]
438
+ - @stainless-api/ui-primitives@0.1.0-beta.10
439
+ - @stainless-api/docs-ui@0.1.0-beta.9
440
+
441
+ ## 0.1.0-beta.11
442
+
443
+ ### Patch Changes
444
+
445
+ - c96f895: Remove css layers, update sidebar styles, add new prose elements
446
+ - Updated dependencies [c96f895]
447
+ - @stainless-api/docs-ui@0.1.0-beta.8
448
+ - @stainless-api/ui-primitives@0.1.0-beta.9
449
+
450
+ ## 0.1.0-beta.10
451
+
452
+ ### Patch Changes
453
+
454
+ - dc059d2: should include option in stl-docs virtual module
455
+
456
+ ## 0.1.0-beta.9
457
+
458
+ ### Patch Changes
459
+
460
+ - d15a520: fix initialization of dropdown buttons
461
+ - Updated dependencies [d15a520]
462
+ - @stainless-api/ui-primitives@0.1.0-beta.8
463
+ - @stainless-api/docs-ui@0.1.0-beta.7
464
+
465
+ ## 0.1.0-beta.8
466
+
467
+ ### Minor Changes
468
+
469
+ - 917493d: move stainlessDocs into default export
470
+
471
+ ## 0.1.0-beta.7
472
+
473
+ ### Patch Changes
474
+
475
+ - Updated dependencies [34e7c61]
476
+ - @stainless-api/ui-primitives@0.1.0-beta.7
477
+ - @stainless-api/docs-ui@0.1.0-beta.6
478
+
3
479
  ## 0.1.0-beta.6
4
480
 
5
481
  ### 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.60",
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.50",
56
+ "@stainless-api/docs-search": "0.1.0-beta.2",
57
+ "@stainless-api/ui-primitives": "0.1.0-beta.37"
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>