@stainless-api/docs 0.1.0-beta.7 → 0.1.0-beta.71

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 (120) hide show
  1. package/CHANGELOG.md +561 -0
  2. package/README.md +1 -1
  3. package/eslint-suppressions.json +52 -0
  4. package/locals.d.ts +17 -0
  5. package/package.json +51 -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 +45 -28
  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 +243 -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/helpers/generateDocsRoutes.ts +27 -0
  24. package/plugin/index.ts +178 -35
  25. package/plugin/languages.ts +5 -2
  26. package/plugin/loadPluginConfig.ts +121 -32
  27. package/plugin/middlewareBuilder/stainlessMiddleware.d.ts +1 -1
  28. package/plugin/react/Routing.tsx +208 -129
  29. package/plugin/referencePlaceholderUtils.ts +1 -1
  30. package/plugin/replaceSidebarPlaceholderMiddleware.ts +5 -1
  31. package/plugin/routes/Docs.astro +62 -89
  32. package/plugin/routes/DocsStatic.astro +1 -1
  33. package/plugin/routes/Overview.astro +10 -16
  34. package/plugin/routes/markdown.ts +9 -8
  35. package/plugin/vendor/preview.worker.docs.js +19768 -17702
  36. package/plugin/vendor/templates/go.md +1 -1
  37. package/plugin/vendor/templates/python.md +1 -1
  38. package/resolveSrcFile.ts +10 -0
  39. package/scripts/vendor_deps.ts +5 -5
  40. package/shared/getProsePages.ts +42 -0
  41. package/shared/getSharedLogger.ts +15 -0
  42. package/shared/terminalUtils.ts +3 -0
  43. package/src/content.config.ts +9 -0
  44. package/stl-docs/components/AIDropdown.tsx +63 -0
  45. package/stl-docs/components/AiChatIsland.tsx +14 -0
  46. package/stl-docs/components/{content-panel/ContentBreadcrumbs.tsx → ContentBreadcrumbs.tsx} +10 -18
  47. package/stl-docs/components/Head.astro +16 -0
  48. package/stl-docs/components/Header.astro +6 -8
  49. package/stl-docs/components/PageFrame.astro +18 -0
  50. package/stl-docs/components/PageTitle.astro +82 -0
  51. package/stl-docs/components/TableOfContents.astro +34 -0
  52. package/stl-docs/components/ThemeProvider.astro +36 -0
  53. package/stl-docs/components/ThemeSelect.astro +84 -139
  54. package/stl-docs/components/content-panel/ContentPanel.astro +16 -25
  55. package/stl-docs/components/headers/SplashMobileMenuToggle.astro +17 -1
  56. package/stl-docs/components/headers/StackedHeader.astro +29 -24
  57. package/stl-docs/components/icons/chat-gpt.tsx +17 -0
  58. package/stl-docs/components/icons/claude.tsx +10 -0
  59. package/stl-docs/components/icons/cursor.tsx +10 -0
  60. package/stl-docs/components/icons/gemini.tsx +19 -0
  61. package/stl-docs/components/icons/markdown.tsx +10 -0
  62. package/stl-docs/components/index.ts +1 -0
  63. package/stl-docs/components/mintlify-compat/Accordion.astro +7 -5
  64. package/stl-docs/components/mintlify-compat/AccordionGroup.astro +7 -3
  65. package/stl-docs/components/mintlify-compat/Columns.astro +40 -42
  66. package/stl-docs/components/mintlify-compat/Frame.astro +16 -18
  67. package/stl-docs/components/mintlify-compat/callouts/Callout.astro +1 -1
  68. package/stl-docs/components/mintlify-compat/callouts/Check.astro +1 -1
  69. package/stl-docs/components/mintlify-compat/callouts/Danger.astro +1 -1
  70. package/stl-docs/components/mintlify-compat/callouts/Info.astro +1 -1
  71. package/stl-docs/components/mintlify-compat/callouts/Note.astro +1 -1
  72. package/stl-docs/components/mintlify-compat/callouts/Tip.astro +1 -1
  73. package/stl-docs/components/mintlify-compat/callouts/Warning.astro +1 -1
  74. package/stl-docs/components/mintlify-compat/card.css +33 -35
  75. package/stl-docs/components/mintlify-compat/index.ts +2 -4
  76. package/stl-docs/components/nav-tabs/NavDropdown.astro +31 -70
  77. package/stl-docs/components/nav-tabs/NavTabs.astro +78 -80
  78. package/stl-docs/components/nav-tabs/SecondaryNavTabs.astro +15 -8
  79. package/stl-docs/components/nav-tabs/buildNavLinks.ts +3 -2
  80. package/stl-docs/components/pagination/HomeLink.astro +10 -0
  81. package/stl-docs/components/pagination/Pagination.astro +175 -0
  82. package/stl-docs/components/pagination/PaginationLinkEmphasized.astro +22 -0
  83. package/stl-docs/components/pagination/PaginationLinkQuiet.astro +13 -0
  84. package/stl-docs/components/pagination/util.ts +71 -0
  85. package/stl-docs/components/scripts.ts +1 -0
  86. package/stl-docs/disableCalloutSyntax.ts +36 -0
  87. package/stl-docs/index.ts +141 -50
  88. package/stl-docs/loadStlDocsConfig.ts +45 -5
  89. package/stl-docs/proseMarkdown/proseMarkdownIntegration.ts +61 -0
  90. package/stl-docs/proseMarkdown/proseMarkdownMiddleware.ts +39 -0
  91. package/stl-docs/proseMarkdown/toMarkdown.ts +158 -0
  92. package/stl-docs/proseSearchIndexing.ts +450 -0
  93. package/stl-docs/tabsMiddleware.ts +11 -3
  94. package/styles/code.css +108 -140
  95. package/styles/fonts.css +32 -17
  96. package/styles/links.css +11 -48
  97. package/styles/method-descriptions.css +36 -0
  98. package/styles/overrides.css +48 -60
  99. package/styles/page.css +92 -52
  100. package/styles/sdk_select.css +9 -7
  101. package/styles/search.css +56 -69
  102. package/styles/sidebar.css +211 -131
  103. package/styles/{variables.css → sl-variables.css} +3 -2
  104. package/styles/stldocs-variables.css +6 -0
  105. package/styles/toc.css +41 -34
  106. package/theme.css +10 -10
  107. package/tsconfig.json +2 -5
  108. package/virtual-module.d.ts +26 -4
  109. package/components/variables.css +0 -135
  110. package/stl-docs/components/mintlify-compat/Step.astro +0 -58
  111. package/stl-docs/components/mintlify-compat/Steps.astro +0 -17
  112. /package/{plugin/assets → assets}/fonts/geist/OFL.txt +0 -0
  113. /package/{plugin/assets → assets}/fonts/geist/geist-italic-latin-ext.woff2 +0 -0
  114. /package/{plugin/assets → assets}/fonts/geist/geist-italic-latin.woff2 +0 -0
  115. /package/{plugin/assets → assets}/fonts/geist/geist-latin-ext.woff2 +0 -0
  116. /package/{plugin/assets → assets}/fonts/geist/geist-latin.woff2 +0 -0
  117. /package/{plugin/assets → assets}/fonts/geist/geist-mono-italic-latin-ext.woff2 +0 -0
  118. /package/{plugin/assets → assets}/fonts/geist/geist-mono-italic-latin.woff2 +0 -0
  119. /package/{plugin/assets → assets}/fonts/geist/geist-mono-latin-ext.woff2 +0 -0
  120. /package/{plugin/assets → assets}/fonts/geist/geist-mono-latin.woff2 +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,566 @@
1
1
  # @stainless-api/docs
2
2
 
3
+ ## 0.1.0-beta.71
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [0a84207]
8
+ - @stainless-api/docs-search@0.1.0-beta.8
9
+
10
+ ## 0.1.0-beta.70
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [750c348]
15
+ - @stainless-api/ui-primitives@0.1.0-beta.41
16
+ - @stainless-api/docs-search@0.1.0-beta.7
17
+ - @stainless-api/docs-ui@0.1.0-beta.55
18
+
19
+ ## 0.1.0-beta.69
20
+
21
+ ### Patch Changes
22
+
23
+ - 67aa6b5: improves UI for algolia search on desktop and mobile
24
+ - bf9bdd4: Remove old/broken mintlify-compat Steps implementation in favor of the new component
25
+ - 68f4528: Adds support for opengraph images
26
+ - Updated dependencies [67aa6b5]
27
+ - @stainless-api/docs-search@0.1.0-beta.6
28
+ - @stainless-api/docs-ui@0.1.0-beta.54
29
+
30
+ ## 0.1.0-beta.68
31
+
32
+ ### Patch Changes
33
+
34
+ - add prose docs vector indexing
35
+
36
+ ## 0.1.0-beta.67
37
+
38
+ ### Patch Changes
39
+
40
+ - a59d5f7: Pass current page context through as “intent”
41
+ - Updated dependencies [e9567b0]
42
+ - @stainless-api/ui-primitives@0.1.0-beta.40
43
+ - @stainless-api/docs-ui@0.1.0-beta.53
44
+ - @stainless-api/docs-search@0.1.0-beta.5
45
+
46
+ ## 0.1.0-beta.66
47
+
48
+ ### Patch Changes
49
+
50
+ - af54129: fix: index missing prose docs for search
51
+
52
+ ## 0.1.0-beta.65
53
+
54
+ ### Patch Changes
55
+
56
+ - 22a19ed: exporting Head component to support custom head implements
57
+
58
+ ## 0.1.0-beta.64
59
+
60
+ ### Patch Changes
61
+
62
+ - add markdown indexing functionality
63
+
64
+ ## 0.1.0-beta.63
65
+
66
+ ### Patch Changes
67
+
68
+ - d2e3686: add a success state to the copy markdown action
69
+ - Updated dependencies [5d6e5fa]
70
+ - @stainless-api/ui-primitives@0.1.0-beta.39
71
+ - @stainless-api/docs-ui@0.1.0-beta.52
72
+ - @stainless-api/docs-search@0.1.0-beta.4
73
+
74
+ ## 0.1.0-beta.62
75
+
76
+ ### Patch Changes
77
+
78
+ - 3c4a030: increase minimum starlight depdendency version
79
+ - cd86726: Fix a crash when stl-starlight plugin isn’t being loaded
80
+ - aa9d333: fixes for markdown rendering when astro integrations override the starlight html entrypoint
81
+ - 07a2c87: Should override ThemeProvider for setting theme within the html head
82
+ - @stainless-api/docs-search@0.1.0-beta.3
83
+ - @stainless-api/docs-ui@0.1.0-beta.51
84
+ - @stainless-api/ui-primitives@0.1.0-beta.38
85
+
86
+ ## 0.1.0-beta.61
87
+
88
+ ### Patch Changes
89
+
90
+ - 88a9894: patch vite optimizeDeps for docs-ai-chat
91
+ - Updated dependencies [2a79bae]
92
+ - @stainless-api/ui-primitives@0.1.0-beta.38
93
+ - @stainless-api/docs-ui@0.1.0-beta.51
94
+ - @stainless-api/docs-search@0.1.0-beta.3
95
+
96
+ ## 0.1.0-beta.60
97
+
98
+ ### Patch Changes
99
+
100
+ - 2d00f0d: compatibility with the first alpha version of docs-ai-chat
101
+ - Updated dependencies [2d00f0d]
102
+ - @stainless-api/docs-ui@0.1.0-beta.50
103
+ - @stainless-api/ui-primitives@0.1.0-beta.37
104
+ - @stainless-api/docs-search@0.1.0-beta.2
105
+
106
+ ## 0.1.0-beta.59
107
+
108
+ ### Patch Changes
109
+
110
+ - 23bbd6d: fix search input layout on default header layout
111
+
112
+ ## 0.1.0-beta.58
113
+
114
+ ### Minor Changes
115
+
116
+ - af090c3: refactor: extract search to @stainless-api/docs-search package
117
+
118
+ ### Patch Changes
119
+
120
+ - e79d6c3: fix an issue where the search bar would overflow over nav elements
121
+ - 2d372fb: feat: support for stainless docs plugins
122
+ - Updated dependencies [af090c3]
123
+ - Updated dependencies [4cf4aa5]
124
+ - Updated dependencies [8886c7c]
125
+ - @stainless-api/docs-search@0.1.0-beta.1
126
+ - @stainless-api/docs-ui@0.1.0-beta.49
127
+ - @stainless-api/ui-primitives@0.1.0-beta.36
128
+
129
+ ## 0.1.0-beta.57
130
+
131
+ ### Patch Changes
132
+
133
+ - Updated dependencies [ada37ee]
134
+ - @stainless-api/docs-ui@0.1.0-beta.48
135
+
136
+ ## 0.1.0-beta.56
137
+
138
+ ### Minor Changes
139
+
140
+ - d75a72f: Adds C# language support
141
+
142
+ ### Patch Changes
143
+
144
+ - Updated dependencies [d75a72f]
145
+ - Updated dependencies [2464347]
146
+ - @stainless-api/docs-ui@0.1.0-beta.47
147
+
148
+ ## 0.1.0-beta.55
149
+
150
+ ### Patch Changes
151
+
152
+ - ae56b3c: ensure changeset release commit doesn’t include [skip ci]
153
+ - Updated dependencies [ae56b3c]
154
+ - @stainless-api/docs-ui@0.1.0-beta.46
155
+ - @stainless-api/ui-primitives@0.1.0-beta.35
156
+
157
+ ## 0.1.0-beta.54
158
+
159
+ ### Minor Changes
160
+
161
+ - a70f60c: Adds the title property
162
+
163
+ ### Patch Changes
164
+
165
+ - 2ebf696: enable trusted publishing
166
+ - Updated dependencies [2ebf696]
167
+ - Updated dependencies [a70f60c]
168
+ - @stainless-api/docs-ui@0.1.0-beta.45
169
+ - @stainless-api/ui-primitives@0.1.0-beta.34
170
+
171
+ ## 0.1.0-beta.53
172
+
173
+ ### Patch Changes
174
+
175
+ - 2e1639a: Updated preview worker and added experimental playgrounds feature.
176
+ - Updated dependencies [239e28c]
177
+ - Updated dependencies [ddc4593]
178
+ - Updated dependencies [2e1639a]
179
+ - Updated dependencies [2e1639a]
180
+ - @stainless-api/docs-ui@0.1.0-beta.44
181
+ - @stainless-api/ui-primitives@0.1.0-beta.33
182
+
183
+ ## 0.1.0-beta.52
184
+
185
+ ### Patch Changes
186
+
187
+ - 72c7604: include default themes in stainlessStarlight plugin
188
+ - Updated dependencies [8a32bbb]
189
+ - @stainless-api/ui-primitives@0.1.0-beta.32
190
+ - @stainless-api/docs-ui@0.1.0-beta.43
191
+
192
+ ## 0.1.0-beta.51
193
+
194
+ ### Patch Changes
195
+
196
+ - 4fc191c: standardize accent border colors
197
+ - Updated dependencies [3d2179f]
198
+ - @stainless-api/ui-primitives@0.1.0-beta.31
199
+ - @stainless-api/docs-ui@0.1.0-beta.42
200
+
201
+ ## 0.1.0-beta.50
202
+
203
+ ### Patch Changes
204
+
205
+ - 6de051d: update vendored preview worker
206
+
207
+ ## 0.1.0-beta.49
208
+
209
+ ### Patch Changes
210
+
211
+ - Updated dependencies [b9e4b82]
212
+ - Updated dependencies [6d12e06]
213
+ - Updated dependencies [5051795]
214
+ - @stainless-api/ui-primitives@0.1.0-beta.30
215
+ - @stainless-api/docs-ui@0.1.0-beta.41
216
+
217
+ ## 0.1.0-beta.48
218
+
219
+ ### Patch Changes
220
+
221
+ - Updated dependencies [81b5b21]
222
+ - Updated dependencies [ba269f9]
223
+ - Updated dependencies [e2a7098]
224
+ - Updated dependencies [589b13d]
225
+ - @stainless-api/ui-primitives@0.1.0-beta.29
226
+ - @stainless-api/docs-ui@0.1.0-beta.40
227
+
228
+ ## 0.1.0-beta.47
229
+
230
+ ### Patch Changes
231
+
232
+ - 466285c: Fixes for expressive code styles
233
+ - Ensure expressive code styles are applied to docs sites that do not include API reference
234
+ - Use correct red & green palettes for ins/del diff annotations
235
+
236
+ - Updated dependencies [d2d5d51]
237
+ - @stainless-api/ui-primitives@0.1.0-beta.28
238
+ - @stainless-api/docs-ui@0.1.0-beta.39
239
+
240
+ ## 0.1.0-beta.46
241
+
242
+ ### Minor Changes
243
+
244
+ - b61b7c1: New theming system
245
+
246
+ A whole new set of design system variables used throughout docs, docs-ui, and ui-primitives
247
+
248
+ Improves customizability & uniformness compared to the old set of variables.
249
+
250
+ ### Patch Changes
251
+
252
+ - Updated dependencies [b61b7c1]
253
+ - Updated dependencies [262f201]
254
+ - @stainless-api/docs-ui@0.1.0-beta.38
255
+ - @stainless-api/ui-primitives@0.1.0-beta.27
256
+
257
+ ## 0.1.0-beta.45
258
+
259
+ ### Patch Changes
260
+
261
+ - 00b33d9: syntax highlighting for markdown renderer
262
+ - fa43cff: json brackets should use muted foreground color
263
+ - c06e5c3: update marked dependency
264
+ - 32d1735: experimental support for collapsible method descriptions
265
+ - Updated dependencies [00b33d9]
266
+ - Updated dependencies [32d1735]
267
+ - Updated dependencies [23254d1]
268
+ - @stainless-api/ui-primitives@0.1.0-beta.26
269
+ - @stainless-api/docs-ui@0.1.0-beta.37
270
+
271
+ ## 0.1.0-beta.44
272
+
273
+ ### Patch Changes
274
+
275
+ - Updated dependencies [38b7030]
276
+ - @stainless-api/docs-ui@0.1.0-beta.36
277
+
278
+ ## 0.1.0-beta.43
279
+
280
+ ### Patch Changes
281
+
282
+ - a44a012: Remove debug code
283
+
284
+ ## 0.1.0-beta.42
285
+
286
+ ### Patch Changes
287
+
288
+ - Updated dependencies [3817ff5]
289
+ - Updated dependencies [391a7ce]
290
+ - Updated dependencies [945d4f3]
291
+ - @stainless-api/docs-ui@0.1.0-beta.35
292
+
293
+ ## 0.1.0-beta.41
294
+
295
+ ### Patch Changes
296
+
297
+ - 6557889: temporarily remove experimental AI search feature
298
+ - Updated dependencies [6557889]
299
+ - @stainless-api/docs-ui@0.1.0-beta.34
300
+
301
+ ## 0.1.0-beta.40
302
+
303
+ ### Patch Changes
304
+
305
+ - Updated dependencies [8670d73]
306
+ - @stainless-api/docs-ui@0.1.0-beta.33
307
+
308
+ ## 0.1.0-beta.39
309
+
310
+ ### Patch Changes
311
+
312
+ - 242deef: fix mobile menu on splash pages
313
+ - Updated dependencies [242deef]
314
+ - @stainless-api/ui-primitives@0.1.0-beta.25
315
+ - @stainless-api/docs-ui@0.1.0-beta.32
316
+
317
+ ## 0.1.0-beta.38
318
+
319
+ ### Patch Changes
320
+
321
+ - Updated dependencies [c28b0a6]
322
+ - Updated dependencies [f23c6bc]
323
+ - Updated dependencies [2cd1b33]
324
+ - @stainless-api/docs-ui@0.1.0-beta.31
325
+ - @stainless-api/ui-primitives@0.1.0-beta.24
326
+
327
+ ## 0.1.0-beta.37
328
+
329
+ ### Patch Changes
330
+
331
+ - 5f14e53: Render page descriptions as part of page header by default
332
+ - Updated dependencies [49e1b93]
333
+ - @stainless-api/docs-ui@0.1.0-beta.30
334
+ - @stainless-api/ui-primitives@0.1.0-beta.23
335
+
336
+ ## 0.1.0-beta.36
337
+
338
+ ### Patch Changes
339
+
340
+ - Updated dependencies [7897575]
341
+ - @stainless-api/ui-primitives@0.1.0-beta.22
342
+ - @stainless-api/docs-ui@0.1.0-beta.29
343
+
344
+ ## 0.1.0-beta.35
345
+
346
+ ### Patch Changes
347
+
348
+ - Updated dependencies [344761e]
349
+ - @stainless-api/ui-primitives@0.1.0-beta.21
350
+ - @stainless-api/docs-ui@0.1.0-beta.28
351
+
352
+ ## 0.1.0-beta.34
353
+
354
+ ### Patch Changes
355
+
356
+ - f5173e9: fix: theme flickering
357
+
358
+ ## 0.1.0-beta.33
359
+
360
+ ### Patch Changes
361
+
362
+ - 7ef572c: feat: updated dropdowns
363
+ - Updated dependencies [7ef572c]
364
+ - @stainless-api/docs-ui@0.1.0-beta.27
365
+ - @stainless-api/ui-primitives@0.1.0-beta.20
366
+
367
+ ## 0.1.0-beta.32
368
+
369
+ ### Patch Changes
370
+
371
+ - 58040d8: feat: ui primitives updates, cursor support
372
+ - Updated dependencies [58040d8]
373
+ - @stainless-api/docs-ui@0.1.0-beta.26
374
+ - @stainless-api/ui-primitives@0.1.0-beta.19
375
+
376
+ ## 0.1.0-beta.31
377
+
378
+ ### Patch Changes
379
+
380
+ - Updated dependencies [afd1f8e]
381
+ - Updated dependencies [279fa0e]
382
+ - @stainless-api/docs-ui@0.1.0-beta.25
383
+
384
+ ## 0.1.0-beta.30
385
+
386
+ ### Patch Changes
387
+
388
+ - Updated dependencies [ab570bc]
389
+ - @stainless-api/docs-ui@0.1.0-beta.24
390
+
391
+ ## 0.1.0-beta.29
392
+
393
+ ### Patch Changes
394
+
395
+ - Updated dependencies [279fa0e]
396
+ - @stainless-api/docs-ui@0.1.0-beta.23
397
+
398
+ ## 0.1.0-beta.28
399
+
400
+ ### Minor Changes
401
+
402
+ - c635741: Updated worker and fixed docs-ui jsx issue
403
+
404
+ ### Patch Changes
405
+
406
+ - Updated dependencies [c635741]
407
+ - @stainless-api/docs-ui@0.1.0-beta.22
408
+ - @stainless-api/ui-primitives@0.1.0-beta.18
409
+
410
+ ## 0.1.0-beta.27
411
+
412
+ ### Patch Changes
413
+
414
+ - de189ee: remove max width on site title
415
+
416
+ ## 0.1.0-beta.26
417
+
418
+ ### Patch Changes
419
+
420
+ - 1517484: fixing font loading, updating nav bar height
421
+ - Updated dependencies [1517484]
422
+ - @stainless-api/docs-ui@0.1.0-beta.21
423
+ - @stainless-api/ui-primitives@0.1.0-beta.17
424
+
425
+ ## 0.1.0-beta.25
426
+
427
+ ### Patch Changes
428
+
429
+ - Updated dependencies [b9ce1b6]
430
+ - @stainless-api/docs-ui@0.1.0-beta.20
431
+
432
+ ## 0.1.0-beta.24
433
+
434
+ ### Patch Changes
435
+
436
+ - Updated dependencies [402222a]
437
+ - @stainless-api/docs-ui@0.1.0-beta.19
438
+
439
+ ## 0.1.0-beta.23
440
+
441
+ ### Patch Changes
442
+
443
+ - Updated dependencies [2150eee]
444
+ - @stainless-api/docs-ui@0.1.0-beta.18
445
+
446
+ ## 0.1.0-beta.22
447
+
448
+ ### Patch Changes
449
+
450
+ - Updated dependencies [f7ba067]
451
+ - @stainless-api/docs-ui@0.1.0-beta.17
452
+
453
+ ## 0.1.0-beta.21
454
+
455
+ ### Patch Changes
456
+
457
+ - 41e87cb: fix virtual module imports
458
+
459
+ ## 0.1.0-beta.20
460
+
461
+ ### Patch Changes
462
+
463
+ - 9cdb24d: Update pagination components, fix search modal
464
+ - Updated dependencies [9cdb24d]
465
+ - @stainless-api/docs-ui@0.1.0-beta.16
466
+ - @stainless-api/ui-primitives@0.1.0-beta.16
467
+
468
+ ## 0.1.0-beta.19
469
+
470
+ ### Patch Changes
471
+
472
+ - 15c003d: fix react peer dependencies
473
+ - Updated dependencies [15c003d]
474
+ - @stainless-api/docs-ui@0.1.0-beta.15
475
+ - @stainless-api/ui-primitives@0.1.0-beta.15
476
+
477
+ ## 0.1.0-beta.18
478
+
479
+ ### Patch Changes
480
+
481
+ - Updated dependencies [0572f60]
482
+ - @stainless-api/docs-ui@0.1.0-beta.14
483
+
484
+ ## 0.1.0-beta.17
485
+
486
+ ### Patch Changes
487
+
488
+ - a925bb4: fix markdown icon color in dark mode
489
+
490
+ ## 0.1.0-beta.16
491
+
492
+ ### Patch Changes
493
+
494
+ - 0618d05: Markdown rendering of prose pages, ai context menu, auth via cli, minor fixes
495
+ - Updated dependencies [0618d05]
496
+ - @stainless-api/docs-ui@0.1.0-beta.13
497
+ - @stainless-api/ui-primitives@0.1.0-beta.14
498
+
499
+ ## 0.1.0-beta.15
500
+
501
+ ### Patch Changes
502
+
503
+ - e35360f: include ui-primitive packages
504
+ - Updated dependencies [e35360f]
505
+ - @stainless-api/docs-ui@0.1.0-beta.12
506
+ - @stainless-api/ui-primitives@0.1.0-beta.13
507
+
508
+ ## 0.1.0-beta.14
509
+
510
+ ### Patch Changes
511
+
512
+ - a529fd4: fix: site title height
513
+ - Updated dependencies [a529fd4]
514
+ - @stainless-api/docs-ui@0.1.0-beta.11
515
+ - @stainless-api/ui-primitives@0.1.0-beta.12
516
+
517
+ ## 0.1.0-beta.13
518
+
519
+ ### Patch Changes
520
+
521
+ - 26a4786: fix: include missing starlight config options
522
+ - Updated dependencies [26a4786]
523
+ - @stainless-api/docs-ui@0.1.0-beta.10
524
+ - @stainless-api/ui-primitives@0.1.0-beta.11
525
+
526
+ ## 0.1.0-beta.12
527
+
528
+ ### Patch Changes
529
+
530
+ - Updated dependencies [3e44a9c]
531
+ - @stainless-api/ui-primitives@0.1.0-beta.10
532
+ - @stainless-api/docs-ui@0.1.0-beta.9
533
+
534
+ ## 0.1.0-beta.11
535
+
536
+ ### Patch Changes
537
+
538
+ - c96f895: Remove css layers, update sidebar styles, add new prose elements
539
+ - Updated dependencies [c96f895]
540
+ - @stainless-api/docs-ui@0.1.0-beta.8
541
+ - @stainless-api/ui-primitives@0.1.0-beta.9
542
+
543
+ ## 0.1.0-beta.10
544
+
545
+ ### Patch Changes
546
+
547
+ - dc059d2: should include option in stl-docs virtual module
548
+
549
+ ## 0.1.0-beta.9
550
+
551
+ ### Patch Changes
552
+
553
+ - d15a520: fix initialization of dropdown buttons
554
+ - Updated dependencies [d15a520]
555
+ - @stainless-api/ui-primitives@0.1.0-beta.8
556
+ - @stainless-api/docs-ui@0.1.0-beta.7
557
+
558
+ ## 0.1.0-beta.8
559
+
560
+ ### Minor Changes
561
+
562
+ - 917493d: move stainlessDocs into default export
563
+
3
564
  ## 0.1.0-beta.7
4
565
 
5
566
  ### 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,17 @@
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
+ stainlessProject?: string;
15
+ language?: import('@stainless-api/docs-ui/routing').DocsLanguage;
16
+ }
17
+ }