@stainless-api/docs 0.1.0-beta.51 → 0.1.0-beta.52
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 +9 -0
- package/eslint-suppressions.json +1 -1
- package/package.json +6 -6
- package/plugin/index.ts +14 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @stainless-api/docs
|
|
2
2
|
|
|
3
|
+
## 0.1.0-beta.52
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 72c7604: include default themes in stainlessStarlight plugin
|
|
8
|
+
- Updated dependencies [8a32bbb]
|
|
9
|
+
- @stainless-api/ui-primitives@0.1.0-beta.32
|
|
10
|
+
- @stainless-api/docs-ui@0.1.0-beta.43
|
|
11
|
+
|
|
3
12
|
## 0.1.0-beta.51
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
package/eslint-suppressions.json
CHANGED
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.52",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -47,12 +47,12 @@
|
|
|
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.19.0",
|
|
51
51
|
"unified": "^11.0.5",
|
|
52
52
|
"web-worker": "^1.5.0",
|
|
53
53
|
"yaml": "^2.8.2",
|
|
54
|
-
"@stainless-api/ui
|
|
55
|
-
"@stainless-api/
|
|
54
|
+
"@stainless-api/docs-ui": "0.1.0-beta.43",
|
|
55
|
+
"@stainless-api/ui-primitives": "0.1.0-beta.32"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@astrojs/check": "^0.9.6",
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
"@types/node": "24.10.1",
|
|
61
61
|
"@types/react": "^19.2.7",
|
|
62
62
|
"@types/react-dom": "^19.2.3",
|
|
63
|
-
"react": "^19.2.
|
|
64
|
-
"react-dom": "^19.2.
|
|
63
|
+
"react": "^19.2.1",
|
|
64
|
+
"react-dom": "^19.2.1",
|
|
65
65
|
"tsx": "^4.21.0",
|
|
66
66
|
"typescript": "5.9.3",
|
|
67
67
|
"vite": "^6.4.1",
|
package/plugin/index.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import react from '@astrojs/react';
|
|
2
2
|
import type { StarlightPlugin } from '@astrojs/starlight/types';
|
|
3
3
|
import type { AstroIntegration, AstroIntegrationLogger } from 'astro';
|
|
4
|
+
import type { BundledTheme } from 'shiki';
|
|
4
5
|
import { config } from 'dotenv';
|
|
5
6
|
import getPort from 'get-port';
|
|
6
7
|
import { startDevServer } from './cms/server';
|
|
@@ -310,8 +311,21 @@ export function stainlessStarlight(someUserConfig: SomeStainlessStarlightUserCon
|
|
|
310
311
|
}
|
|
311
312
|
}
|
|
312
313
|
|
|
314
|
+
const expressiveCodeConfig =
|
|
315
|
+
typeof starlightConfig.expressiveCode === 'object' ? starlightConfig.expressiveCode : {};
|
|
316
|
+
|
|
317
|
+
const themes = expressiveCodeConfig.themes
|
|
318
|
+
? (expressiveCodeConfig.themes as BundledTheme[])
|
|
319
|
+
: (['github-light', 'github-dark'] as BundledTheme[]);
|
|
320
|
+
|
|
313
321
|
updateConfig({
|
|
314
322
|
sidebar: starlightConfig.sidebar,
|
|
323
|
+
...(expressiveCodeConfig && {
|
|
324
|
+
expressiveCode: {
|
|
325
|
+
...expressiveCodeConfig,
|
|
326
|
+
themes,
|
|
327
|
+
},
|
|
328
|
+
}),
|
|
315
329
|
});
|
|
316
330
|
|
|
317
331
|
addRouteMiddleware({
|