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

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