@stainless-api/docs 0.1.0-beta.122 → 0.1.0-beta.124
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 +15 -0
- package/package.json +6 -6
- package/plugin/react/Routing.tsx +2 -2
- package/stl-docs/index.ts +1 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @stainless-api/docs
|
|
2
2
|
|
|
3
|
+
## 0.1.0-beta.124
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 152c864: don’t try to load github themes unconditionally
|
|
8
|
+
- Updated dependencies [af5a5d7]
|
|
9
|
+
- @stainless-api/docs-ui@0.1.0-beta.88
|
|
10
|
+
- @stainless-api/docs-search@0.1.0-beta.41
|
|
11
|
+
|
|
12
|
+
## 0.1.0-beta.123
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- 813b223: Fix base path appending to header links like mailto:
|
|
17
|
+
|
|
3
18
|
## 0.1.0-beta.122
|
|
4
19
|
|
|
5
20
|
### Minor Changes
|
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.124",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"node": ">=22.12.0"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@astrojs/starlight": ">=0.
|
|
38
|
-
"astro": ">=
|
|
37
|
+
"@astrojs/starlight": ">=0.38.0",
|
|
38
|
+
"astro": ">=6.0.0",
|
|
39
39
|
"react": ">=19.0.0",
|
|
40
40
|
"react-dom": ">=19.0.0",
|
|
41
41
|
"vite": ">=7.3.1"
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"clsx": "^2.1.1",
|
|
50
50
|
"dotenv": "17.3.1",
|
|
51
51
|
"lucide-react": "^0.577.0",
|
|
52
|
-
"marked": "^17.0.
|
|
52
|
+
"marked": "^17.0.5",
|
|
53
53
|
"node-html-parser": "^7.1.0",
|
|
54
54
|
"rehype-parse": "^9.0.1",
|
|
55
55
|
"rehype-remark": "^10.0.1",
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
"vite-plugin-prebundle-workers": "^0.2.0",
|
|
62
62
|
"web-worker": "^1.5.0",
|
|
63
63
|
"yaml": "^2.8.2",
|
|
64
|
-
"@stainless-api/docs-search": "0.1.0-beta.
|
|
65
|
-
"@stainless-api/docs-ui": "0.1.0-beta.
|
|
64
|
+
"@stainless-api/docs-search": "0.1.0-beta.41",
|
|
65
|
+
"@stainless-api/docs-ui": "0.1.0-beta.88",
|
|
66
66
|
"@stainless-api/ui-primitives": "0.1.0-beta.50"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
package/plugin/react/Routing.tsx
CHANGED
|
@@ -425,8 +425,8 @@ async function astroHighlight() {
|
|
|
425
425
|
|
|
426
426
|
astroShikiHighlighter = createHighlighter({
|
|
427
427
|
themes: [
|
|
428
|
-
'github-
|
|
429
|
-
'github-
|
|
428
|
+
HIGHLIGHT_THEMES?.dark ?? 'github-dark',
|
|
429
|
+
HIGHLIGHT_THEMES?.light ?? 'github-light',
|
|
430
430
|
{
|
|
431
431
|
name: 'stainless-docs-json',
|
|
432
432
|
colors: {
|
package/stl-docs/index.ts
CHANGED
|
@@ -179,9 +179,7 @@ function stainlessDocsIntegration(
|
|
|
179
179
|
|
|
180
180
|
const base = astroConfig.base ?? '/';
|
|
181
181
|
const withBase = (link: string) =>
|
|
182
|
-
[
|
|
183
|
-
? link
|
|
184
|
-
: path.posix.join(base, link);
|
|
182
|
+
/^([a-z][a-z0-9+.-]*:|\/\/)/.test(link) ? link : path.posix.join(base, link);
|
|
185
183
|
|
|
186
184
|
const virtualModules = new Map(
|
|
187
185
|
Object.entries({
|