@stainless-api/docs 0.1.0-beta.25 → 0.1.0-beta.26
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/package.json +5 -5
- package/stl-docs/components/Head.astro +7 -0
- package/stl-docs/components/headers/StackedHeader.astro +1 -1
- package/stl-docs/index.ts +0 -13
- package/styles/fonts.css +8 -8
- /package/{plugin/assets → assets}/fonts/geist/OFL.txt +0 -0
- /package/{plugin/assets → assets}/fonts/geist/geist-italic-latin-ext.woff2 +0 -0
- /package/{plugin/assets → assets}/fonts/geist/geist-italic-latin.woff2 +0 -0
- /package/{plugin/assets → assets}/fonts/geist/geist-latin-ext.woff2 +0 -0
- /package/{plugin/assets → assets}/fonts/geist/geist-latin.woff2 +0 -0
- /package/{plugin/assets → assets}/fonts/geist/geist-mono-italic-latin-ext.woff2 +0 -0
- /package/{plugin/assets → assets}/fonts/geist/geist-mono-italic-latin.woff2 +0 -0
- /package/{plugin/assets → assets}/fonts/geist/geist-mono-latin-ext.woff2 +0 -0
- /package/{plugin/assets → assets}/fonts/geist/geist-mono-latin.woff2 +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @stainless-api/docs
|
|
2
2
|
|
|
3
|
+
## 0.1.0-beta.26
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 1517484: fixing font loading, updating nav bar height
|
|
8
|
+
- Updated dependencies [1517484]
|
|
9
|
+
- @stainless-api/docs-ui@0.1.0-beta.21
|
|
10
|
+
- @stainless-api/ui-primitives@0.1.0-beta.17
|
|
11
|
+
|
|
3
12
|
## 0.1.0-beta.25
|
|
4
13
|
|
|
5
14
|
### Patch 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.26",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"remark-gfm": "^4.0.1",
|
|
51
51
|
"remark-stringify": "^11.0.0",
|
|
52
52
|
"unified": "^11.0.5",
|
|
53
|
-
"@stainless-api/docs-ui": "0.1.0-beta.
|
|
54
|
-
"@stainless-api/ui-primitives": "0.1.0-beta.
|
|
53
|
+
"@stainless-api/docs-ui": "0.1.0-beta.21",
|
|
54
|
+
"@stainless-api/ui-primitives": "0.1.0-beta.17"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@astrojs/check": "^0.9.5",
|
|
@@ -65,8 +65,8 @@
|
|
|
65
65
|
"typescript": "5.9.3",
|
|
66
66
|
"vite": "^6.3.6",
|
|
67
67
|
"zod": "^4.0.0",
|
|
68
|
-
"@stainless/
|
|
69
|
-
"@stainless/
|
|
68
|
+
"@stainless/sdk-json": "^0.0.0",
|
|
69
|
+
"@stainless/eslint-config": "0.0.0"
|
|
70
70
|
},
|
|
71
71
|
"scripts": {
|
|
72
72
|
"vendor-deps": "pnpm tsx scripts/vendor_deps.ts",
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
import Default from '@astrojs/starlight/components/Head.astro';
|
|
3
|
+
|
|
4
|
+
// TODO: for users who are overriding the font stack in their own styles, how can we know that and
|
|
5
|
+
// preload their font instead of ours?
|
|
6
|
+
import geistPath from '../../assets/fonts/geist/geist-latin.woff2';
|
|
3
7
|
---
|
|
4
8
|
|
|
5
9
|
<Default />
|
|
10
|
+
|
|
11
|
+
<link rel="preload" as="font" type="font/woff2" crossorigin="anonymous" href={geistPath} />
|
|
12
|
+
|
|
6
13
|
<script>
|
|
7
14
|
import { wireAIDropdown } from '../../plugin/globalJs/ai-dropdown-options.ts';
|
|
8
15
|
wireAIDropdown();
|
package/stl-docs/index.ts
CHANGED
|
@@ -19,7 +19,6 @@ import {
|
|
|
19
19
|
} from './loadStlDocsConfig';
|
|
20
20
|
import { buildVirtualModuleString } from '../shared/virtualModule';
|
|
21
21
|
import { resolveSrcFile } from '../resolveSrcFile';
|
|
22
|
-
import geistPath from '../plugin/assets/fonts/geist/geist-latin.woff2?url';
|
|
23
22
|
import { stainlessDocsMarkdownRenderer } from './proseMarkdown/proseMarkdownIntegration';
|
|
24
23
|
import { setSharedLogger } from '../shared/getSharedLogger';
|
|
25
24
|
|
|
@@ -106,18 +105,6 @@ function stainlessDocsStarlightIntegration(config: NormalizedStainlessDocsConfig
|
|
|
106
105
|
setupNavLinksInitial();
|
|
107
106
|
`,
|
|
108
107
|
},
|
|
109
|
-
// TODO: for users who are overriding the font stack in their own styles, how can we know that
|
|
110
|
-
// and preload their font instead of ours?
|
|
111
|
-
{
|
|
112
|
-
tag: 'link',
|
|
113
|
-
attrs: {
|
|
114
|
-
rel: 'preload',
|
|
115
|
-
as: 'font',
|
|
116
|
-
type: 'font/woff2',
|
|
117
|
-
crossorigin: 'anonymous',
|
|
118
|
-
href: geistPath,
|
|
119
|
-
},
|
|
120
|
-
},
|
|
121
108
|
],
|
|
122
109
|
routeMiddleware: [
|
|
123
110
|
...config.starlightCompat.routeMiddleware,
|
package/styles/fonts.css
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
font-style: normal;
|
|
5
5
|
font-display: swap;
|
|
6
6
|
font-weight: 100 900;
|
|
7
|
-
src: url(../
|
|
7
|
+
src: url(../assets/fonts/geist/geist-latin.woff2) format('woff2-variations');
|
|
8
8
|
unicode-range:
|
|
9
9
|
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
|
|
10
10
|
U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
font-style: italic;
|
|
15
15
|
font-display: swap;
|
|
16
16
|
font-weight: 100 900;
|
|
17
|
-
src: url(../
|
|
17
|
+
src: url(../assets/fonts/geist/geist-italic-latin.woff2) format('woff2-variations');
|
|
18
18
|
unicode-range:
|
|
19
19
|
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
|
|
20
20
|
U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
font-style: normal;
|
|
25
25
|
font-display: swap;
|
|
26
26
|
font-weight: 100 900;
|
|
27
|
-
src: url(../
|
|
27
|
+
src: url(../assets/fonts/geist/geist-latin-ext.woff2) format('woff2-variations');
|
|
28
28
|
unicode-range:
|
|
29
29
|
U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
|
|
30
30
|
U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
font-style: italic;
|
|
35
35
|
font-display: swap;
|
|
36
36
|
font-weight: 100 900;
|
|
37
|
-
src: url(../
|
|
37
|
+
src: url(../assets/fonts/geist/geist-italic-latin-ext.woff2) format('woff2-variations');
|
|
38
38
|
unicode-range:
|
|
39
39
|
U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
|
|
40
40
|
U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
font-style: normal;
|
|
47
47
|
font-display: swap;
|
|
48
48
|
font-weight: 100 900;
|
|
49
|
-
src: url(../
|
|
49
|
+
src: url(../assets/fonts/geist/geist-mono-latin.woff2) format('woff2-variations');
|
|
50
50
|
unicode-range:
|
|
51
51
|
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
|
|
52
52
|
U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
font-style: italic;
|
|
57
57
|
font-display: swap;
|
|
58
58
|
font-weight: 100 900;
|
|
59
|
-
src: url(../
|
|
59
|
+
src: url(../assets/fonts/geist/geist-mono-italic-latin.woff2) format('woff2-variations');
|
|
60
60
|
unicode-range:
|
|
61
61
|
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
|
|
62
62
|
U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
font-style: normal;
|
|
67
67
|
font-display: swap;
|
|
68
68
|
font-weight: 100 900;
|
|
69
|
-
src: url(../
|
|
69
|
+
src: url(../assets/fonts/geist/geist-mono-latin-ext.woff2) format('woff2-variations');
|
|
70
70
|
unicode-range:
|
|
71
71
|
U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
|
|
72
72
|
U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
font-style: italic;
|
|
77
77
|
font-display: swap;
|
|
78
78
|
font-weight: 100 900;
|
|
79
|
-
src: url(../
|
|
79
|
+
src: url(../assets/fonts/geist/geist-mono-italic-latin-ext.woff2) format('woff2-variations');
|
|
80
80
|
unicode-range:
|
|
81
81
|
U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
|
|
82
82
|
U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|