@stainless-api/docs 0.1.0-beta.114 → 0.1.0-beta.115
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 +6 -0
- package/package.json +8 -8
- package/plugin/index.ts +2 -4
- package/stl-docs/fonts.ts +1 -1
- package/stl-docs/index.ts +1 -3
package/CHANGELOG.md
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.115",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -26,18 +26,18 @@
|
|
|
26
26
|
"author": "",
|
|
27
27
|
"license": "ISC",
|
|
28
28
|
"engines": {
|
|
29
|
-
"node": ">=
|
|
29
|
+
"node": ">=22.12.0"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"@astrojs/starlight": ">=0.37.5",
|
|
33
33
|
"astro": ">=5.15.3",
|
|
34
34
|
"react": ">=19.0.0",
|
|
35
35
|
"react-dom": ">=19.0.0",
|
|
36
|
-
"vite": ">=
|
|
36
|
+
"vite": ">=7.3.1"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@astrojs/markdown-remark": "^
|
|
40
|
-
"@astrojs/react": "^
|
|
39
|
+
"@astrojs/markdown-remark": "^7.0.0",
|
|
40
|
+
"@astrojs/react": "^5.0.0",
|
|
41
41
|
"@stainless-api/sdk": "0.1.0-alpha.19",
|
|
42
42
|
"astro-expressive-code": "^0.41.6",
|
|
43
43
|
"cheerio": "^1.2.0",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"remark-gfm": "^4.0.1",
|
|
52
52
|
"remark-github-alerts": "^0.1.1",
|
|
53
53
|
"remark-stringify": "^11.0.0",
|
|
54
|
-
"shiki": "^
|
|
54
|
+
"shiki": "^4.0.2",
|
|
55
55
|
"unified": "^11.0.5",
|
|
56
56
|
"vite-plugin-prebundle-workers": "^0.2.0",
|
|
57
57
|
"web-worker": "^1.5.0",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@stainless-api/ui-primitives": "0.1.0-beta.49"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@astrojs/check": "^0.9.
|
|
64
|
+
"@astrojs/check": "^0.9.7",
|
|
65
65
|
"@markdoc/markdoc": "^0.5.4",
|
|
66
66
|
"@types/node": "24.10.13",
|
|
67
67
|
"@types/react": "19.2.14",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"react-dom": "^19.2.4",
|
|
71
71
|
"tsx": "^4.21.0",
|
|
72
72
|
"typescript": "5.9.3",
|
|
73
|
-
"vite": "^
|
|
73
|
+
"vite": "^7.3.1",
|
|
74
74
|
"zod": "^4.3.6",
|
|
75
75
|
"@stainless/eslint-config": "0.1.0-beta.1",
|
|
76
76
|
"@stainless/sdk-json": "^0.1.0-beta.9"
|
package/plugin/index.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import react from '@astrojs/react';
|
|
2
2
|
import type { StarlightPlugin } from '@astrojs/starlight/types';
|
|
3
3
|
import type { AstroIntegration } from 'astro';
|
|
4
|
-
import type { BundledTheme } from 'shiki';
|
|
5
4
|
import { config } from 'dotenv';
|
|
6
|
-
// import { buildAlgoliaIndex } from './buildAlgoliaIndex';
|
|
7
5
|
import {
|
|
8
6
|
getAPIReferencePlaceholderItemFromSidebarConfig,
|
|
9
7
|
makePlaceholderItems,
|
|
@@ -464,8 +462,8 @@ export function stainlessStarlight(someUserConfig: SomeStainlessStarlightUserCon
|
|
|
464
462
|
typeof starlightConfig.expressiveCode === 'object' ? starlightConfig.expressiveCode : {};
|
|
465
463
|
|
|
466
464
|
const themes = expressiveCodeConfig.themes
|
|
467
|
-
?
|
|
468
|
-
: (['github-light', 'github-dark']
|
|
465
|
+
? expressiveCodeConfig.themes
|
|
466
|
+
: (['github-light', 'github-dark'] satisfies (typeof expressiveCodeConfig)['themes']);
|
|
469
467
|
|
|
470
468
|
updateConfig({
|
|
471
469
|
sidebar: starlightConfig.sidebar,
|
package/stl-docs/fonts.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { Defined } from './loadStlDocsConfig';
|
|
|
3
3
|
import { fontProviders } from 'astro/config';
|
|
4
4
|
import type { FontPreloadFilter } from 'astro:assets';
|
|
5
5
|
|
|
6
|
-
type AstroFontConfigEntry = Defined<AstroConfig['
|
|
6
|
+
type AstroFontConfigEntry = Defined<AstroConfig['fonts']>[number];
|
|
7
7
|
|
|
8
8
|
// Apply Omit to each member of the union while preserving union structure
|
|
9
9
|
type PreloadFilter = { preload?: FontPreloadFilter };
|
package/stl-docs/index.ts
CHANGED
|
@@ -205,9 +205,7 @@ function stainlessDocsIntegration(
|
|
|
205
205
|
);
|
|
206
206
|
|
|
207
207
|
updateConfig({
|
|
208
|
-
|
|
209
|
-
fonts: [...flattenFonts(config.fonts), ...(astroConfig.experimental?.fonts ?? [])],
|
|
210
|
-
},
|
|
208
|
+
fonts: [...flattenFonts(config.fonts), ...(astroConfig?.fonts ?? [])],
|
|
211
209
|
vite: {
|
|
212
210
|
plugins: [
|
|
213
211
|
{
|