@stainless-api/docs 0.1.0-beta.40 → 0.1.0-beta.42
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.
- package/CHANGELOG.md +17 -0
- package/package.json +13 -13
- package/plugin/cms/server.ts +0 -1
- package/plugin/cms/sidebar-builder.ts +1 -1
- package/plugin/components/search/SearchAlgolia.astro +0 -22
- package/plugin/components/search/SearchIsland.tsx +1 -3
- package/plugin/index.ts +0 -1
- package/plugin/loadPluginConfig.ts +0 -16
- package/tsconfig.tsbuildinfo +1 -0
- package/virtual-module.d.ts +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @stainless-api/docs
|
|
2
2
|
|
|
3
|
+
## 0.1.0-beta.42
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [3817ff5]
|
|
8
|
+
- Updated dependencies [391a7ce]
|
|
9
|
+
- Updated dependencies [945d4f3]
|
|
10
|
+
- @stainless-api/docs-ui@0.1.0-beta.35
|
|
11
|
+
|
|
12
|
+
## 0.1.0-beta.41
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- 6557889: temporarily remove experimental AI search feature
|
|
17
|
+
- Updated dependencies [6557889]
|
|
18
|
+
- @stainless-api/docs-ui@0.1.0-beta.34
|
|
19
|
+
|
|
3
20
|
## 0.1.0-beta.40
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stainless-api/docs",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.42",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"react-dom": ">=19.0.0"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@astrojs/markdown-remark": "^6.3.
|
|
34
|
+
"@astrojs/markdown-remark": "^6.3.9",
|
|
35
35
|
"@astrojs/react": "^4.4.2",
|
|
36
36
|
"@stainless-api/sdk": "0.1.0-alpha.12",
|
|
37
37
|
"cheerio": "^1.1.2",
|
|
@@ -39,35 +39,35 @@
|
|
|
39
39
|
"dotenv": "17.2.3",
|
|
40
40
|
"get-port": "^7.1.0",
|
|
41
41
|
"highlight.js": "^11.11.1",
|
|
42
|
-
"lucide-react": "^0.
|
|
43
|
-
"marked": "^16.
|
|
42
|
+
"lucide-react": "^0.554.0",
|
|
43
|
+
"marked": "^16.4.2",
|
|
44
44
|
"node-html-parser": "^7.0.1",
|
|
45
45
|
"rehype-parse": "^9.0.1",
|
|
46
46
|
"rehype-remark": "^10.0.1",
|
|
47
47
|
"remark-gfm": "^4.0.1",
|
|
48
48
|
"remark-github-alerts": "^0.1.1",
|
|
49
49
|
"remark-stringify": "^11.0.0",
|
|
50
|
-
"shiki": "^3.
|
|
50
|
+
"shiki": "^3.15.0",
|
|
51
51
|
"unified": "^11.0.5",
|
|
52
52
|
"web-worker": "^1.5.0",
|
|
53
|
-
"yaml": "^2.8.
|
|
54
|
-
"@stainless-api/docs-ui": "0.1.0-beta.
|
|
53
|
+
"yaml": "^2.8.1",
|
|
54
|
+
"@stainless-api/docs-ui": "0.1.0-beta.35",
|
|
55
55
|
"@stainless-api/ui-primitives": "0.1.0-beta.25"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@astrojs/check": "^0.9.5",
|
|
59
|
-
"@markdoc/markdoc": "^0.5.
|
|
60
|
-
"@types/node": "24.
|
|
61
|
-
"@types/react": "^19.2.
|
|
59
|
+
"@markdoc/markdoc": "^0.5.4",
|
|
60
|
+
"@types/node": "24.10.1",
|
|
61
|
+
"@types/react": "^19.2.6",
|
|
62
62
|
"@types/react-dom": "^19.2.3",
|
|
63
63
|
"react": "^19.2.0",
|
|
64
64
|
"react-dom": "^19.2.0",
|
|
65
65
|
"tsx": "^4.20.3",
|
|
66
66
|
"typescript": "5.9.3",
|
|
67
|
-
"vite": "^6.
|
|
67
|
+
"vite": "^6.4.1",
|
|
68
68
|
"zod": "^4.1.12",
|
|
69
|
-
"@stainless/
|
|
70
|
-
"@stainless/
|
|
69
|
+
"@stainless/eslint-config": "0.1.0-beta.0",
|
|
70
|
+
"@stainless/sdk-json": "^0.1.0-beta.0"
|
|
71
71
|
},
|
|
72
72
|
"scripts": {
|
|
73
73
|
"vendor-deps": "pnpm tsx scripts/vendor_deps.ts",
|
package/plugin/cms/server.ts
CHANGED
|
@@ -356,7 +356,7 @@ export function toStarlightSidebar({
|
|
|
356
356
|
starlightEntries.push({
|
|
357
357
|
type: 'link',
|
|
358
358
|
href: route,
|
|
359
|
-
label: entry.label
|
|
359
|
+
label: `${entry.label} - ${currentStainlessPath} - ${resourceOrMethod.data.stainlessPath} - ${isCurrent === true ? 'true' : 'false'}`,
|
|
360
360
|
isCurrent,
|
|
361
361
|
badge: entry.badge,
|
|
362
362
|
attrs: {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
import { Icon } from '@astrojs/starlight/components';
|
|
3
3
|
import { DocsSearch } from './SearchIsland';
|
|
4
|
-
import { SEARCH } from 'virtual:stl-starlight-virtual-module';
|
|
5
4
|
import { Button } from '@stainless-api/ui-primitives';
|
|
6
5
|
---
|
|
7
6
|
|
|
@@ -32,27 +31,6 @@ import { Button } from '@stainless-api/ui-primitives';
|
|
|
32
31
|
/>
|
|
33
32
|
</site-search>
|
|
34
33
|
|
|
35
|
-
{
|
|
36
|
-
SEARCH?.enableAISearch === true && (
|
|
37
|
-
<button id="chat-button" popovertarget="stldocs-chat" data-open-modal>
|
|
38
|
-
<Icon name="comment" />
|
|
39
|
-
</button>
|
|
40
|
-
)
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
<style>
|
|
44
|
-
#chat-button {
|
|
45
|
-
background: var(--sl-color-bg-ui);
|
|
46
|
-
border: 1px solid var(--sl-color-hairline);
|
|
47
|
-
height: 2.25rem;
|
|
48
|
-
width: 2.25rem;
|
|
49
|
-
|
|
50
|
-
&:hover {
|
|
51
|
-
border: 1px solid rgb(64, 64, 64);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
</style>
|
|
55
|
-
|
|
56
34
|
<script is:inline>
|
|
57
35
|
function setupShortcut() {
|
|
58
36
|
const openBtn = document.querySelector('button[data-open-modal]');
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { BASE_PATH, HIGHLIGHT_THEMES
|
|
2
|
+
import { BASE_PATH, HIGHLIGHT_THEMES } from 'virtual:stl-starlight-virtual-module';
|
|
3
3
|
import { parseRoute, generateRoute } from '@stainless-api/docs-ui/routing';
|
|
4
4
|
import { SearchModal } from '@stainless-api/docs-ui/search';
|
|
5
|
-
import { ChatModal } from '@stainless-api/docs-ui/components/chat';
|
|
6
5
|
import * as Markdoc from '@markdoc/markdoc';
|
|
7
6
|
import { createHighlighter } from 'shiki';
|
|
8
7
|
import type { BundledLanguage, BundledTheme, HighlighterGeneric } from 'shiki';
|
|
@@ -102,7 +101,6 @@ export function DocsSearch({ settings, currentPath }: { settings: SearchSettings
|
|
|
102
101
|
<SearchProvider onSelect={handleSelect} pageFind={pageFind} settings={settings}>
|
|
103
102
|
<div className="stldocs-root">
|
|
104
103
|
<SearchModal id="stldocs-search" />
|
|
105
|
-
{SEARCH?.enableAISearch === true && <ChatModal id="stldocs-chat" />}
|
|
106
104
|
</div>
|
|
107
105
|
</SearchProvider>
|
|
108
106
|
</MarkdownProvider>
|
package/plugin/index.ts
CHANGED
|
@@ -221,7 +221,6 @@ async function stlStarlightAstroIntegration(
|
|
|
221
221
|
CONTENT_PANEL_LAYOUT: pluginConfig.contentPanel.layout,
|
|
222
222
|
EXPERIMENTAL_COLLAPSIBLE_SNIPPETS: pluginConfig.experimentalCollapsibleSnippets,
|
|
223
223
|
PROPERTY_SETTINGS: pluginConfig.propertySettings,
|
|
224
|
-
SEARCH: pluginConfig.search,
|
|
225
224
|
ENABLE_CONTEXT_MENU: pluginConfig.contextMenu,
|
|
226
225
|
} satisfies Omit<typeof StlStarlightVirtualModule, 'MIDDLEWARE'>),
|
|
227
226
|
vmMiddlewareExport,
|
|
@@ -108,19 +108,6 @@ export type StainlessStarlightUserConfig = {
|
|
|
108
108
|
*/
|
|
109
109
|
propertySettings?: PropertySettingsType;
|
|
110
110
|
|
|
111
|
-
/**
|
|
112
|
-
* Options to control the documentation site's search functionality
|
|
113
|
-
*/
|
|
114
|
-
search?: {
|
|
115
|
-
/**
|
|
116
|
-
* When set to `true`, the enableAISearch` setting turns on support for
|
|
117
|
-
* LLM-based conversations with the API documentation
|
|
118
|
-
*
|
|
119
|
-
* @default false
|
|
120
|
-
*/
|
|
121
|
-
enableAISearch?: boolean;
|
|
122
|
-
};
|
|
123
|
-
|
|
124
111
|
/**
|
|
125
112
|
* Enable experimental collapsible code snippets. Snippets will be collapsed by default for
|
|
126
113
|
* single-pane and mobile layouts.
|
|
@@ -266,9 +253,6 @@ function normalizeConfig(partial: SomeStainlessStarlightUserConfig, command: Ast
|
|
|
266
253
|
expandDepth: partial.propertySettings?.expandDepth ?? 0,
|
|
267
254
|
includeModelProperties: partial.propertySettings?.includeModelProperties ?? true,
|
|
268
255
|
},
|
|
269
|
-
search: {
|
|
270
|
-
enableAISearch: partial.search?.enableAISearch ?? false,
|
|
271
|
-
},
|
|
272
256
|
contextMenu: partial.contextMenu ?? true,
|
|
273
257
|
};
|
|
274
258
|
|