@stainless-api/docs 0.1.0-beta.50 → 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 +18 -0
- package/eslint-suppressions.json +1 -1
- package/package.json +13 -13
- package/plugin/index.ts +14 -0
- package/stl-docs/components/nav-tabs/SecondaryNavTabs.astro +1 -1
- package/styles/sidebar.css +1 -1
- package/styles/toc.css +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
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
|
+
|
|
12
|
+
## 0.1.0-beta.51
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- 4fc191c: standardize accent border colors
|
|
17
|
+
- Updated dependencies [3d2179f]
|
|
18
|
+
- @stainless-api/ui-primitives@0.1.0-beta.31
|
|
19
|
+
- @stainless-api/docs-ui@0.1.0-beta.42
|
|
20
|
+
|
|
3
21
|
## 0.1.0-beta.50
|
|
4
22
|
|
|
5
23
|
### 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
|
},
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"clsx": "^2.1.1",
|
|
40
40
|
"dotenv": "17.2.3",
|
|
41
41
|
"get-port": "^7.1.0",
|
|
42
|
-
"lucide-react": "^0.
|
|
42
|
+
"lucide-react": "^0.555.0",
|
|
43
43
|
"marked": "^17.0.1",
|
|
44
44
|
"node-html-parser": "^7.0.1",
|
|
45
45
|
"rehype-parse": "^9.0.1",
|
|
@@ -47,30 +47,30 @@
|
|
|
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
|
-
"yaml": "^2.8.
|
|
54
|
-
"@stainless-api/docs-ui": "0.1.0-beta.
|
|
55
|
-
"@stainless-api/ui-primitives": "0.1.0-beta.
|
|
53
|
+
"yaml": "^2.8.2",
|
|
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
|
-
"@astrojs/check": "^0.9.
|
|
58
|
+
"@astrojs/check": "^0.9.6",
|
|
59
59
|
"@markdoc/markdoc": "^0.5.4",
|
|
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.
|
|
65
|
-
"tsx": "^4.
|
|
63
|
+
"react": "^19.2.1",
|
|
64
|
+
"react-dom": "^19.2.1",
|
|
65
|
+
"tsx": "^4.21.0",
|
|
66
66
|
"typescript": "5.9.3",
|
|
67
67
|
"vite": "^6.4.1",
|
|
68
68
|
"zod": "^4.1.13",
|
|
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
|
-
"vendor-deps": "
|
|
73
|
+
"vendor-deps": "tsx scripts/vendor_deps.ts",
|
|
74
74
|
"lint": "eslint . --max-warnings 0",
|
|
75
75
|
"sync": "astro sync",
|
|
76
76
|
"check:types": "astro check"
|
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({
|
|
@@ -42,7 +42,7 @@ const navLinks = buildNavLinks(Astro.locals.starlightRoute);
|
|
|
42
42
|
border-bottom: 2px solid transparent;
|
|
43
43
|
|
|
44
44
|
&.active {
|
|
45
|
-
border-color: var(--stl-color-accent-
|
|
45
|
+
border-color: var(--stl-color-accent-border-strong);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
.stl-ui-button {
|
package/styles/sidebar.css
CHANGED
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
border-inline-start: 1px solid var(--stl-color-border-faint);
|
|
99
99
|
margin-inline-start: var(--stl-sidebar-indent);
|
|
100
100
|
&:has(> a[aria-current='page']) {
|
|
101
|
-
border-inline-start: 2px solid var(--stl-color-accent-
|
|
101
|
+
border-inline-start: 2px solid var(--stl-color-accent-border-strong);
|
|
102
102
|
& > a {
|
|
103
103
|
margin-left: -1px;
|
|
104
104
|
}
|