@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 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.40",
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.2",
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.553.0",
43
- "marked": "^16.0.0",
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.9.2",
50
+ "shiki": "^3.15.0",
51
51
  "unified": "^11.0.5",
52
52
  "web-worker": "^1.5.0",
53
- "yaml": "^2.8.0",
54
- "@stainless-api/docs-ui": "0.1.0-beta.33",
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.2",
60
- "@types/node": "24.5.1",
61
- "@types/react": "^19.2.4",
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.3.6",
67
+ "vite": "^6.4.1",
68
68
  "zod": "^4.1.12",
69
- "@stainless/sdk-json": "^0.1.0-beta.0",
70
- "@stainless/eslint-config": "0.1.0-beta.0"
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",
@@ -14,7 +14,6 @@ import {
14
14
  } from './sidebar-builder';
15
15
  import type { VersionUserConfig } from '../loadPluginConfig';
16
16
  import { bold } from '../../shared/terminalUtils';
17
-
18
17
  export type InputFilePaths = {
19
18
  oasPath?: string;
20
19
  configPath?: string;
@@ -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, SEARCH } from 'virtual:stl-starlight-virtual-module';
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