@stainless-api/docs 0.1.0-beta.101 → 0.1.0-beta.102

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,11 @@
1
1
  # @stainless-api/docs
2
2
 
3
+ ## 0.1.0-beta.102
4
+
5
+ ### Minor Changes
6
+
7
+ - a1b8e83: adds starlight passthrough option for configuring pagefind
8
+
3
9
  ## 0.1.0-beta.101
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stainless-api/docs",
3
- "version": "0.1.0-beta.101",
3
+ "version": "0.1.0-beta.102",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -40,12 +40,12 @@
40
40
  "@astrojs/react": "^4.4.2",
41
41
  "@stainless-api/sdk": "0.1.0-alpha.19",
42
42
  "astro-expressive-code": "^0.41.6",
43
- "cheerio": "^1.1.2",
43
+ "cheerio": "^1.2.0",
44
44
  "clsx": "^2.1.1",
45
- "dotenv": "17.2.3",
46
- "lucide-react": "^0.562.0",
47
- "marked": "^17.0.1",
48
- "node-html-parser": "^7.0.1",
45
+ "dotenv": "17.3.1",
46
+ "lucide-react": "^0.574.0",
47
+ "marked": "^17.0.3",
48
+ "node-html-parser": "^7.0.2",
49
49
  "rehype-parse": "^9.0.1",
50
50
  "rehype-remark": "^10.0.1",
51
51
  "remark-gfm": "^4.0.1",
@@ -63,15 +63,15 @@
63
63
  "devDependencies": {
64
64
  "@astrojs/check": "^0.9.6",
65
65
  "@markdoc/markdoc": "^0.5.4",
66
- "@types/node": "24.10.9",
67
- "@types/react": "19.2.10",
66
+ "@types/node": "24.10.13",
67
+ "@types/react": "19.2.14",
68
68
  "@types/react-dom": "^19.2.3",
69
69
  "react": "^19.2.4",
70
70
  "react-dom": "^19.2.4",
71
71
  "tsx": "^4.21.0",
72
72
  "typescript": "5.9.3",
73
73
  "vite": "^6.4.1",
74
- "zod": "^4.3.5",
74
+ "zod": "^4.3.6",
75
75
  "@stainless/eslint-config": "0.1.0-beta.1",
76
76
  "@stainless/sdk-json": "^0.1.0-beta.7"
77
77
  },
package/stl-docs/index.ts CHANGED
@@ -98,6 +98,7 @@ function stainlessDocsStarlightIntegration(config: NormalizedStainlessDocsConfig
98
98
 
99
99
  return starlight({
100
100
  ...config.starlightPassThrough,
101
+ pagefind: config.starlightCompat.pagefind,
101
102
  sidebar,
102
103
  components: {
103
104
  ...componentOverrides,
@@ -38,7 +38,7 @@ type PassThroughStarlightConfigOptions = Pick<
38
38
 
39
39
  type ExperimentalStarlightCompatibilityConfig = Pick<
40
40
  StarlightConfigDefined,
41
- 'components' | 'routeMiddleware' | 'plugins' | 'prerender'
41
+ 'components' | 'routeMiddleware' | 'plugins' | 'prerender' | 'pagefind'
42
42
  >;
43
43
 
44
44
  export type Tabs = {
@@ -166,6 +166,7 @@ function normalizeConfig(userConfig: StainlessDocsUserConfig) {
166
166
  starlightCompat: {
167
167
  components: userConfig.experimental?.starlightCompat?.components ?? {},
168
168
  plugins: userConfig.experimental?.starlightCompat?.plugins ?? [],
169
+ pagefind: userConfig.experimental?.starlightCompat?.pagefind ?? true,
169
170
  routeMiddleware: normalizeRouteMiddleware(userConfig),
170
171
  },
171
172
  enableClientRouter: userConfig.experimental?.enableClientRouter ?? false,