@stainless-api/docs 0.1.0-beta.45 → 0.1.0-beta.47
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 +29 -0
- package/package.json +6 -5
- package/plugin/components/SDKSelect.astro +0 -82
- package/plugin/index.ts +0 -9
- package/plugin/react/Routing.tsx +8 -8
- package/stl-docs/components/Header.astro +3 -6
- package/stl-docs/components/PageTitle.astro +1 -1
- package/stl-docs/components/ThemeSelect.astro +41 -32
- package/stl-docs/components/content-panel/ContentPanel.astro +0 -3
- package/stl-docs/components/headers/SplashMobileMenuToggle.astro +5 -8
- package/stl-docs/components/icons/chat-gpt.tsx +1 -1
- package/stl-docs/components/icons/cursor.tsx +1 -1
- package/stl-docs/components/icons/markdown.tsx +1 -1
- package/stl-docs/components/mintlify-compat/Frame.astro +4 -4
- package/stl-docs/components/mintlify-compat/Step.astro +3 -3
- package/stl-docs/components/mintlify-compat/card.css +4 -4
- package/stl-docs/components/nav-tabs/NavDropdown.astro +2 -12
- package/stl-docs/components/nav-tabs/NavTabs.astro +1 -17
- package/stl-docs/components/nav-tabs/SecondaryNavTabs.astro +1 -2
- package/stl-docs/components/pagination/Pagination.astro +12 -11
- package/stl-docs/index.ts +20 -0
- package/stl-docs/loadStlDocsConfig.ts +2 -0
- package/styles/code.css +14 -39
- package/styles/links.css +2 -0
- package/styles/method-descriptions.css +1 -1
- package/styles/overrides.css +26 -30
- package/styles/sdk_select.css +1 -1
- package/styles/search.css +10 -11
- package/styles/sidebar.css +41 -28
- package/styles/{variables.css → sl-variables.css} +3 -2
- package/styles/stldocs-variables.css +6 -0
- package/styles/toc.css +11 -8
- package/theme.css +5 -3
- package/components/variables.css +0 -109
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# @stainless-api/docs
|
|
2
2
|
|
|
3
|
+
## 0.1.0-beta.47
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 466285c: Fixes for expressive code styles
|
|
8
|
+
- Ensure expressive code styles are applied to docs sites that do not include API reference
|
|
9
|
+
- Use correct red & green palettes for ins/del diff annotations
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [d2d5d51]
|
|
12
|
+
- @stainless-api/ui-primitives@0.1.0-beta.28
|
|
13
|
+
- @stainless-api/docs-ui@0.1.0-beta.39
|
|
14
|
+
|
|
15
|
+
## 0.1.0-beta.46
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- b61b7c1: New theming system
|
|
20
|
+
|
|
21
|
+
A whole new set of design system variables used throughout docs, docs-ui, and ui-primitives
|
|
22
|
+
|
|
23
|
+
Improves customizability & uniformness compared to the old set of variables.
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- Updated dependencies [b61b7c1]
|
|
28
|
+
- Updated dependencies [262f201]
|
|
29
|
+
- @stainless-api/docs-ui@0.1.0-beta.38
|
|
30
|
+
- @stainless-api/ui-primitives@0.1.0-beta.27
|
|
31
|
+
|
|
3
32
|
## 0.1.0-beta.45
|
|
4
33
|
|
|
5
34
|
### 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.47",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"@astrojs/markdown-remark": "^6.3.9",
|
|
35
35
|
"@astrojs/react": "^4.4.2",
|
|
36
36
|
"@stainless-api/sdk": "0.1.0-alpha.16",
|
|
37
|
+
"astro-expressive-code": "^0.41.3",
|
|
37
38
|
"cheerio": "^1.1.2",
|
|
38
39
|
"clsx": "^2.1.1",
|
|
39
40
|
"dotenv": "17.2.3",
|
|
@@ -50,21 +51,21 @@
|
|
|
50
51
|
"unified": "^11.0.5",
|
|
51
52
|
"web-worker": "^1.5.0",
|
|
52
53
|
"yaml": "^2.8.1",
|
|
53
|
-
"@stainless-api/docs-ui": "0.1.0-beta.
|
|
54
|
-
"@stainless-api/ui-primitives": "0.1.0-beta.
|
|
54
|
+
"@stainless-api/docs-ui": "0.1.0-beta.39",
|
|
55
|
+
"@stainless-api/ui-primitives": "0.1.0-beta.28"
|
|
55
56
|
},
|
|
56
57
|
"devDependencies": {
|
|
57
58
|
"@astrojs/check": "^0.9.5",
|
|
58
59
|
"@markdoc/markdoc": "^0.5.4",
|
|
59
60
|
"@types/node": "24.10.1",
|
|
60
|
-
"@types/react": "^19.2.
|
|
61
|
+
"@types/react": "^19.2.7",
|
|
61
62
|
"@types/react-dom": "^19.2.3",
|
|
62
63
|
"react": "^19.2.0",
|
|
63
64
|
"react-dom": "^19.2.0",
|
|
64
65
|
"tsx": "^4.20.6",
|
|
65
66
|
"typescript": "5.9.3",
|
|
66
67
|
"vite": "^6.4.1",
|
|
67
|
-
"zod": "^4.1.
|
|
68
|
+
"zod": "^4.1.13",
|
|
68
69
|
"@stainless/eslint-config": "0.1.0-beta.0",
|
|
69
70
|
"@stainless/sdk-json": "^0.1.0-beta.0"
|
|
70
71
|
},
|
|
@@ -53,88 +53,6 @@ const readmeSlug = language === 'http' ? BASE_PATH : `${BASE_PATH}/${language}`;
|
|
|
53
53
|
)
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
<style>
|
|
57
|
-
@layer starlight.core {
|
|
58
|
-
label {
|
|
59
|
-
--sl-label-icon-size: 16px;
|
|
60
|
-
--sl-caret-size: 1.25rem;
|
|
61
|
-
--sl-inline-padding: 0.5rem;
|
|
62
|
-
position: relative;
|
|
63
|
-
display: flex;
|
|
64
|
-
align-items: center;
|
|
65
|
-
gap: 0.25rem;
|
|
66
|
-
color: var(--sl-color-gray-1);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
label:hover {
|
|
70
|
-
color: var(--sl-color-gray-2);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.icon {
|
|
74
|
-
position: absolute;
|
|
75
|
-
top: 50%;
|
|
76
|
-
transform: translateY(-50%);
|
|
77
|
-
pointer-events: none;
|
|
78
|
-
width: 16px;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
select {
|
|
82
|
-
padding-block: 0.3rem;
|
|
83
|
-
padding-inline: calc(var(--sl-label-icon-size) + var(--sl-inline-padding) + 0.5rem)
|
|
84
|
-
calc(var(--sl-caret-size) + var(--sl-inline-padding) + 0.25rem);
|
|
85
|
-
margin-inline: calc(var(--sl-inline-padding) * -1);
|
|
86
|
-
width: calc(var(--sl-select-width) + var(--sl-inline-padding) * 2);
|
|
87
|
-
text-overflow: ellipsis;
|
|
88
|
-
color: inherit;
|
|
89
|
-
cursor: pointer;
|
|
90
|
-
appearance: none;
|
|
91
|
-
font-weight: 600;
|
|
92
|
-
text-transform: capitalize;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
select:active {
|
|
96
|
-
font-weight: inherit;
|
|
97
|
-
/* font-family: sans-serif;
|
|
98
|
-
font-weight: 400; */
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
option {
|
|
102
|
-
background-color: var(--sl-color-bg-nav);
|
|
103
|
-
color: var(--sl-color-gray-1);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
@media (min-width: 50rem) {
|
|
107
|
-
select {
|
|
108
|
-
font-size: var(--sl-text-sm);
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
@layer starlight.components {
|
|
114
|
-
.label-icon {
|
|
115
|
-
font-size: var(--sl-label-icon-size);
|
|
116
|
-
inset-inline-start: 0;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.caret {
|
|
120
|
-
font-size: var(--sl-caret-size);
|
|
121
|
-
inset-inline-end: 0;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.custom-select-wrapper {
|
|
126
|
-
--sl-inline-padding: 0.5rem;
|
|
127
|
-
position: relative;
|
|
128
|
-
display: inline-block;
|
|
129
|
-
/* These match the padding on the sidebar menu */
|
|
130
|
-
padding-left: var(--sl-inline-padding);
|
|
131
|
-
padding-right: var(--sl-inline-padding);
|
|
132
|
-
|
|
133
|
-
.icon.http path {
|
|
134
|
-
fill: var(--sl-color-text);
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
</style>
|
|
138
56
|
<script>
|
|
139
57
|
import { navigate } from 'astro:transitions/client';
|
|
140
58
|
import { updateSelectedLanguage } from '../languages';
|
package/plugin/index.ts
CHANGED
|
@@ -310,15 +310,6 @@ export function stainlessStarlight(someUserConfig: SomeStainlessStarlightUserCon
|
|
|
310
310
|
}
|
|
311
311
|
}
|
|
312
312
|
|
|
313
|
-
const currentExpressiveCode =
|
|
314
|
-
typeof starlightConfig.expressiveCode === 'object' ? starlightConfig.expressiveCode : {};
|
|
315
|
-
updateConfig({
|
|
316
|
-
expressiveCode: {
|
|
317
|
-
...currentExpressiveCode,
|
|
318
|
-
themes: [...(currentExpressiveCode.themes || []), 'github-light', 'github-dark'],
|
|
319
|
-
},
|
|
320
|
-
});
|
|
321
|
-
|
|
322
313
|
updateConfig({
|
|
323
314
|
sidebar: starlightConfig.sidebar,
|
|
324
315
|
});
|
package/plugin/react/Routing.tsx
CHANGED
|
@@ -454,39 +454,39 @@ async function astroHighlight() {
|
|
|
454
454
|
{
|
|
455
455
|
name: 'stainless-docs-json',
|
|
456
456
|
colors: {
|
|
457
|
-
'editor.background': 'var(--stl-
|
|
458
|
-
'editor.foreground': 'var(--stl-
|
|
457
|
+
'editor.background': 'var(--stl-color-background)',
|
|
458
|
+
'editor.foreground': 'var(--stl-color-foreground)',
|
|
459
459
|
},
|
|
460
460
|
|
|
461
461
|
tokenColors: [
|
|
462
462
|
{
|
|
463
463
|
scope: ['comment', 'punctuation.definition.comment'],
|
|
464
|
-
settings: { foreground: 'var(--stl-
|
|
464
|
+
settings: { foreground: 'var(--stl-color-foreground-muted)' },
|
|
465
465
|
},
|
|
466
466
|
// numbers, booleans, null
|
|
467
467
|
{
|
|
468
468
|
scope: ['constant.numeric', 'constant.language'],
|
|
469
|
-
settings: { foreground: 'var(--stl-
|
|
469
|
+
settings: { foreground: 'var(--stl-color-foreground-orange)' },
|
|
470
470
|
},
|
|
471
471
|
// strings
|
|
472
472
|
{
|
|
473
473
|
scope: ['string', 'string.quoted', 'string.template'],
|
|
474
|
-
settings: { foreground: 'var(--stl-
|
|
474
|
+
settings: { foreground: 'var(--stl-color-foreground-green)' },
|
|
475
475
|
},
|
|
476
476
|
// Keys, brackets
|
|
477
477
|
{
|
|
478
478
|
scope: ['support.type', 'meta'],
|
|
479
|
-
settings: { foreground: 'var(--stl-
|
|
479
|
+
settings: { foreground: 'var(--stl-color-foreground)' },
|
|
480
480
|
},
|
|
481
481
|
// brackets
|
|
482
482
|
{
|
|
483
483
|
scope: ['meta'],
|
|
484
|
-
settings: { foreground: 'var(--stl-
|
|
484
|
+
settings: { foreground: 'var(--stl-color-foreground-muted)' },
|
|
485
485
|
},
|
|
486
486
|
// built-in types
|
|
487
487
|
{
|
|
488
488
|
scope: ['support.type.builtin'],
|
|
489
|
-
settings: { foreground: 'var(--stl-
|
|
489
|
+
settings: { foreground: 'var(--stl-color-foreground-purple)' },
|
|
490
490
|
},
|
|
491
491
|
],
|
|
492
492
|
},
|
|
@@ -23,12 +23,9 @@ const shouldRenderSearch = !!(
|
|
|
23
23
|
|
|
24
24
|
<style is:global>
|
|
25
25
|
@layer starlight.core {
|
|
26
|
-
header
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
&.header {
|
|
30
|
-
border-bottom-color: var(--sl-color-hairline);
|
|
31
|
-
}
|
|
26
|
+
header,
|
|
27
|
+
header.header {
|
|
28
|
+
border-color: var(--stl-color-border-faint);
|
|
32
29
|
}
|
|
33
30
|
|
|
34
31
|
.header {
|
|
@@ -6,47 +6,56 @@ const options = [
|
|
|
6
6
|
{
|
|
7
7
|
value: 'auto',
|
|
8
8
|
label: 'Auto',
|
|
9
|
-
icon:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
icon: `
|
|
10
|
+
<svg
|
|
11
|
+
width="24"
|
|
12
|
+
height="24"
|
|
13
|
+
viewBox="0 0 24 24"
|
|
14
|
+
fill="none"
|
|
15
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
16
|
+
>
|
|
17
|
+
<path
|
|
17
18
|
d="M21 5C21 4.44771 20.5523 4 20 4H4C3.44772 4 3 4.44772 3 5V15C3 15.5523 3.44772 16 4 16H20C20.5523 16 21 15.5523 21 15V5ZM23 15C23 16.6569 21.6569 18 20 18H13V20H16C16.5523 20 17 20.4477 17 21C17 21.5523 16.5523 22 16 22H8C7.44772 22 7 21.5523 7 21C7 20.4477 7.44772 20 8 20H11V18H4C2.34315 18 1 16.6569 1 15V5C1 3.34315 2.34315 2 4 2H20C21.6569 2 23 3.34315 23 5V15Z"
|
|
18
|
-
fill="var(--stl-
|
|
19
|
-
|
|
19
|
+
fill="var(--stl-color-foreground)"
|
|
20
|
+
></path>
|
|
21
|
+
</svg>
|
|
22
|
+
`,
|
|
20
23
|
},
|
|
21
24
|
{
|
|
22
25
|
value: 'light',
|
|
23
26
|
label: 'Light',
|
|
24
|
-
icon:
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
icon: `
|
|
28
|
+
<svg
|
|
29
|
+
width="24"
|
|
30
|
+
height="24"
|
|
31
|
+
viewBox="0 0 24 24"
|
|
32
|
+
fill="none"
|
|
33
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
34
|
+
>
|
|
35
|
+
<path
|
|
32
36
|
d="M11 22V20C11 19.4477 11.4477 19 12 19C12.5523 19 13 19.4477 13 20V22C13 22.5523 12.5523 23 12 23C11.4477 23 11 22.5523 11 22ZM5.63281 16.9531C6.02332 16.5626 6.65635 16.5626 7.04688 16.9531C7.4374 17.3436 7.4374 17.9767 7.04688 18.3672L5.6377 19.7773C5.24717 20.1679 4.61318 20.1679 4.22266 19.7773C3.83232 19.387 3.83259 18.7538 4.22266 18.3633L5.63281 16.9531ZM16.9531 16.9531C17.3191 16.5871 17.8982 16.5637 18.291 16.8838L18.3672 16.9531L19.7773 18.3633L19.8457 18.4385C20.1663 18.8313 20.1435 19.4111 19.7773 19.7773C19.4113 20.1433 18.8322 20.1658 18.4395 19.8457L18.3633 19.7773L16.9531 18.3672L16.8848 18.291C16.5643 17.8983 16.5871 17.3193 16.9531 16.9531ZM15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15C13.6569 15 15 13.6569 15 12ZM4 11C4.55228 11 5 11.4477 5 12C5 12.5523 4.55228 13 4 13H2C1.44772 13 1 12.5523 1 12C1 11.4477 1.44772 11 2 11H4ZM22 11C22.5523 11 23 11.4477 23 12C23 12.5523 22.5523 13 22 13H20C19.4477 13 19 12.5523 19 12C19 11.4477 19.4477 11 20 11H22ZM7.04688 5.63281C7.4374 6.02334 7.4374 6.65635 7.04688 7.04688C6.65634 7.43728 6.0233 7.43736 5.63281 7.04688L4.22266 5.63672L5.6377 4.22266L7.04688 5.63281ZM18.3633 4.22266C18.7538 3.83235 19.3869 3.83224 19.7773 4.22266C20.1678 4.61311 20.1677 5.24618 19.7773 5.63672L18.3672 7.04688C17.9767 7.4374 17.3436 7.4374 16.9531 7.04688C16.5626 6.65635 16.5626 6.02332 16.9531 5.63281L18.3633 4.22266ZM4.22266 4.22266C4.61318 3.83213 5.24717 3.83213 5.6377 4.22266L4.22266 5.63672C3.83254 5.24621 3.83238 4.61307 4.22266 4.22266ZM11 4V2C11 1.44772 11.4477 1 12 1C12.5523 1 13 1.44772 13 2V4C13 4.55228 12.5523 5 12 5C11.4477 5 11 4.55228 11 4ZM17 12C17 14.7614 14.7614 17 12 17C9.23858 17 7 14.7614 7 12C7 9.23858 9.23858 7 12 7C14.7614 7 17 9.23858 17 12Z"
|
|
33
|
-
fill="var(--stl-
|
|
34
|
-
|
|
37
|
+
fill="var(--stl-color-foreground)"
|
|
38
|
+
></path>
|
|
39
|
+
</svg>
|
|
40
|
+
`,
|
|
35
41
|
},
|
|
36
42
|
{
|
|
37
43
|
value: 'dark',
|
|
38
44
|
label: 'Dark',
|
|
39
|
-
icon:
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
45
|
+
icon: `
|
|
46
|
+
<svg
|
|
47
|
+
width="24"
|
|
48
|
+
height="24"
|
|
49
|
+
viewBox="0 0 24 24"
|
|
50
|
+
fill="none"
|
|
51
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
52
|
+
>
|
|
53
|
+
<path
|
|
54
|
+
d="M9.13569 7.5C9.13569 6.37669 9.39314 5.28007 9.87397 4.28809C9.05381 4.51419 8.27063 4.87087 7.55561 5.34863C6.24009 6.22764 5.21483 7.47676 4.60932 8.93848C4.00386 10.4002 3.84465 12.0088 4.15327 13.5605C4.46195 15.1124 5.2239 16.5384 6.34272 17.6572C7.46154 18.776 8.88756 19.538 10.4394 19.8467C11.9912 20.1553 13.5997 19.9961 15.0615 19.3906C16.5232 18.7851 17.7723 17.7599 18.6513 16.4443C19.1292 15.7291 19.4848 14.9454 19.7109 14.125C18.719 14.6057 17.6231 14.8643 16.4999 14.8643C14.5469 14.8643 12.6739 14.088 11.2929 12.707C9.91191 11.326 9.13569 9.45304 9.13569 7.5ZM11.1357 7.5C11.1357 8.92261 11.701 10.287 12.707 11.293C13.7129 12.2989 15.0773 12.8643 16.4999 12.8643C17.9226 12.8643 19.287 12.2989 20.2929 11.293C20.5789 11.007 21.0091 10.9214 21.3828 11.0762C21.7564 11.231 22 11.5956 22 12C22 13.9778 21.4132 15.9112 20.3144 17.5557C19.2156 19.2001 17.6543 20.4824 15.8271 21.2393C13.9998 21.9961 11.9886 22.1935 10.0488 21.8076C8.10909 21.4217 6.32711 20.4697 4.92866 19.0713C3.53021 17.6728 2.57822 15.8909 2.19233 13.9512C1.80648 12.0114 2.00382 10.0001 2.76069 8.17285C3.51756 6.34567 4.79987 4.78434 6.44429 3.68555C8.08878 2.58673 10.0221 2 11.9999 2C12.4044 2 12.769 2.24359 12.9238 2.61719C13.0786 2.99086 12.993 3.42103 12.707 3.70703C11.701 4.71297 11.1357 6.07739 11.1357 7.5Z"
|
|
55
|
+
fill="var(--stl-color-foreground)"
|
|
56
|
+
></path>
|
|
57
|
+
</svg>
|
|
58
|
+
`,
|
|
50
59
|
},
|
|
51
60
|
];
|
|
52
61
|
---
|
|
@@ -174,7 +183,7 @@ const options = [
|
|
|
174
183
|
height: 16px;
|
|
175
184
|
|
|
176
185
|
path {
|
|
177
|
-
fill: var(--
|
|
186
|
+
fill: var(--stl-color-foreground-reduced);
|
|
178
187
|
}
|
|
179
188
|
}
|
|
180
189
|
|
|
@@ -5,7 +5,7 @@ import Sidebar from 'virtual:starlight/components/Sidebar';
|
|
|
5
5
|
|
|
6
6
|
<div class="stl-splash-mobile-menu-toggle">
|
|
7
7
|
<MobileMenuToggle />
|
|
8
|
-
<div id="starlight__sidebar" class="sidebar-pane">
|
|
8
|
+
<div id="starlight__sidebar" class="sidebar sidebar-pane">
|
|
9
9
|
<div class="sidebar-content sl-flex">
|
|
10
10
|
<Sidebar />
|
|
11
11
|
</div>
|
|
@@ -13,13 +13,10 @@ import Sidebar from 'virtual:starlight/components/Sidebar';
|
|
|
13
13
|
</div>
|
|
14
14
|
|
|
15
15
|
<style>
|
|
16
|
-
:root {
|
|
17
|
-
--stl-sidebar-item-padding-block: 8px;
|
|
18
|
-
--stl-sidebar-item-padding-inline: 12px;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
16
|
@layer starlight.core {
|
|
22
17
|
.sidebar-pane {
|
|
18
|
+
li,
|
|
19
|
+
li a,
|
|
23
20
|
li a[aria-current='page'] {
|
|
24
21
|
all: revert-layer;
|
|
25
22
|
}
|
|
@@ -40,7 +37,7 @@ import Sidebar from 'virtual:starlight/components/Sidebar';
|
|
|
40
37
|
left: 0;
|
|
41
38
|
|
|
42
39
|
a {
|
|
43
|
-
font-size: var(--
|
|
40
|
+
font-size: var(--stl-typography-scale-sm);
|
|
44
41
|
}
|
|
45
42
|
}
|
|
46
43
|
|
|
@@ -50,7 +47,7 @@ import Sidebar from 'virtual:starlight/components/Sidebar';
|
|
|
50
47
|
padding: 1rem var(--sl-sidebar-pad-x) 0;
|
|
51
48
|
flex-direction: column;
|
|
52
49
|
gap: 1rem;
|
|
53
|
-
background-color: var(--
|
|
50
|
+
background-color: var(--stl-color-background);
|
|
54
51
|
}
|
|
55
52
|
|
|
56
53
|
@media (min-width: 50rem) {
|
|
@@ -4,7 +4,7 @@ export function ChatGPTIcon() {
|
|
|
4
4
|
<g clipPath="url(#clip0_2771_126147)">
|
|
5
5
|
<path
|
|
6
6
|
d="M14.853 6.54857C15.216 5.45907 15.091 4.26557 14.5105 3.27457C13.6375 1.75457 11.8825 0.972574 10.1685 1.34057C9.40596 0.481574 8.31046 -0.00692579 7.16196 7.42116e-05C5.40996 -0.00392579 3.85546 1.12407 3.31646 2.79107C2.19096 3.02157 1.21946 3.72607 0.650955 4.72457C-0.228545 6.24057 -0.0280446 8.15157 1.14696 9.45157C0.783955 10.5411 0.908955 11.7346 1.48946 12.7256C2.36246 14.2456 4.11746 15.0276 5.83146 14.6596C6.59346 15.5186 7.68946 16.0071 8.83796 15.9996C10.591 16.0041 12.146 14.8751 12.685 13.2066C13.8105 12.9761 14.782 12.2716 15.3505 11.2731C16.229 9.75707 16.028 7.84757 14.8535 6.54757L14.853 6.54857ZM8.83896 14.9541C8.13746 14.9551 7.45796 14.7096 6.91946 14.2601C6.94396 14.2471 6.98646 14.2236 7.01396 14.2066L10.2 12.3666C10.363 12.2741 10.463 12.1006 10.462 11.9131V7.42157L11.8085 8.19907C11.823 8.20607 11.8325 8.22007 11.8345 8.23607V11.9556C11.8325 13.6096 10.493 14.9506 8.83896 14.9541ZM2.39696 12.2026C2.04546 11.5956 1.91896 10.8841 2.03946 10.1936C2.06296 10.2076 2.10446 10.2331 2.13396 10.2501L5.31996 12.0901C5.48146 12.1846 5.68146 12.1846 5.84346 12.0901L9.73296 9.84407V11.3991C9.73396 11.4151 9.72646 11.4306 9.71396 11.4406L6.49346 13.3001C5.05896 14.1261 3.22696 13.6351 2.39746 12.2026H2.39696ZM1.55846 5.24807C1.90846 4.64007 2.46096 4.17507 3.11896 3.93357C3.11896 3.96107 3.11746 4.00957 3.11746 4.04357V7.72407C3.11646 7.91107 3.21646 8.08457 3.37896 8.17707L7.26846 10.4226L5.92196 11.2001C5.90846 11.2091 5.89146 11.2106 5.87646 11.2041L2.65546 9.34307C1.22396 8.51407 0.732955 6.68257 1.55796 5.24857L1.55846 5.24807ZM12.6215 7.82257L8.73196 5.57657L10.0785 4.79957C10.092 4.79057 10.109 4.78907 10.124 4.79557L13.345 6.65507C14.779 7.48357 15.2705 9.31807 14.442 10.7521C14.0915 11.3591 13.5395 11.8241 12.882 12.0661V8.27557C12.8835 8.08857 12.784 7.91557 12.622 7.82257H12.6215ZM13.9615 5.80557C13.938 5.79107 13.8965 5.76607 13.867 5.74907L10.681 3.90907C10.5195 3.81457 10.3195 3.81457 10.1575 3.90907L6.26796 6.15507V4.60007C6.26696 4.58407 6.27446 4.56857 6.28696 4.55857L9.50746 2.70057C10.942 1.87307 12.776 2.36557 13.603 3.80057C13.9525 4.40657 14.079 5.11607 13.9605 5.80557H13.9615ZM5.53596 8.57707L4.18896 7.79957C4.17446 7.79257 4.16496 7.77857 4.16296 7.76257V4.04307C4.16396 2.38707 5.50746 1.04507 7.16346 1.04607C7.86396 1.04607 8.54196 1.29207 9.08046 1.74007C9.05596 1.75307 9.01396 1.77657 8.98596 1.79357L5.79996 3.63357C5.63696 3.72607 5.53696 3.89907 5.53796 4.08657L5.53596 8.57607V8.57707ZM6.26746 7.00007L7.99996 5.99957L9.73246 6.99957V9.00007L7.99996 10.0001L6.26746 9.00007V7.00007Z"
|
|
7
|
-
fill="
|
|
7
|
+
fill="currentColor"
|
|
8
8
|
/>
|
|
9
9
|
</g>
|
|
10
10
|
<defs>
|
|
@@ -2,7 +2,7 @@ export function CursorIcon() {
|
|
|
2
2
|
return (
|
|
3
3
|
<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16" viewBox="0 0 466.73 532.09">
|
|
4
4
|
<path
|
|
5
|
-
fill="
|
|
5
|
+
fill="currentColor"
|
|
6
6
|
d="M457.43,125.94L244.42,2.96c-6.84-3.95-15.28-3.95-22.12,0L9.3,125.94c-5.75,3.32-9.3,9.46-9.3,16.11v247.99c0,6.65,3.55,12.79,9.3,16.11l213.01,122.98c6.84,3.95,15.28,3.95,22.12,0l213.01-122.98c5.75-3.32,9.3-9.46,9.3-16.11v-247.99c0-6.65-3.55-12.79-9.3-16.11h-.01ZM444.05,151.99l-205.63,356.16c-1.39,2.4-5.06,1.42-5.06-1.36v-233.21c0-4.66-2.49-8.97-6.53-11.31L24.87,145.67c-2.4-1.39-1.42-5.06,1.36-5.06h411.26c5.84,0,9.49,6.33,6.57,11.39h-.01Z"
|
|
7
7
|
/>
|
|
8
8
|
</svg>
|
|
@@ -3,7 +3,7 @@ export function MarkdownIcon() {
|
|
|
3
3
|
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
|
|
4
4
|
<path
|
|
5
5
|
d="M14.8447 3.33301C15.151 3.33301 15.4455 3.45527 15.6621 3.67188C15.8785 3.88844 16 4.18213 16 4.48828V12.0254C15.9997 12.3315 15.8777 12.6254 15.6611 12.8418C15.4446 13.0581 15.1508 13.1797 14.8447 13.1797H1.15527C0.848967 13.1797 0.55449 13.0584 0.337891 12.8418C0.121288 12.6252 0 12.3307 0 12.0244V4.48828C1.09706e-05 4.18213 0.121501 3.88844 0.337891 3.67188C0.554493 3.45527 0.848951 3.33301 1.15527 3.33301H14.8447ZM1.15527 4.10254C1.10457 4.10245 1.0537 4.11247 1.00684 4.13184C0.960202 4.15116 0.917554 4.17917 0.881836 4.21484C0.845984 4.2507 0.817213 4.29396 0.797852 4.34082C0.778601 4.38756 0.769447 4.43773 0.769531 4.48828V12.0254C0.76962 12.0759 0.779409 12.1262 0.798828 12.1729C0.81827 12.2196 0.846978 12.2621 0.882812 12.2979C0.918602 12.3335 0.961134 12.3616 1.00781 12.3809C1.05454 12.4001 1.10474 12.4102 1.15527 12.4102H14.8447C14.9467 12.4101 15.045 12.3699 15.1172 12.2979C15.1893 12.2258 15.2293 12.1274 15.2295 12.0254V4.48828C15.2296 4.43774 15.2204 4.38755 15.2012 4.34082C15.1819 4.29403 15.1529 4.25166 15.1172 4.21582C15.0814 4.17999 15.0389 4.15126 14.9922 4.13184C14.9455 4.11249 14.8952 4.10258 14.8447 4.10254H1.15527ZM5.38477 7.56348L6.92285 5.64062H8.46094V10.8721H6.92285V7.87109L5.38477 9.79492L3.8457 7.87109V10.8711H2.30762V5.63965H3.8457L5.38477 7.56348ZM12.6924 8.33301H14.2305L11.9229 10.8711L9.61523 8.33301H11.1533V5.64062H12.6924V8.33301Z"
|
|
6
|
-
fill="
|
|
6
|
+
fill="currentColor"
|
|
7
7
|
/>
|
|
8
8
|
</svg>
|
|
9
9
|
);
|
|
@@ -15,8 +15,8 @@ const { caption } = Astro.props;
|
|
|
15
15
|
.stl-ui-mintlify-compat-frame {
|
|
16
16
|
padding: 6px;
|
|
17
17
|
border-radius: 10px;
|
|
18
|
-
background-color: var(--
|
|
19
|
-
border: 1px solid var(--
|
|
18
|
+
background-color: var(--stl-color-ui-background);
|
|
19
|
+
border: 1px solid var(--stl-color-border);
|
|
20
20
|
|
|
21
21
|
.stl-ui-mintlify-compat-frame-content {
|
|
22
22
|
border-radius: 8px;
|
|
@@ -27,8 +27,8 @@ const { caption } = Astro.props;
|
|
|
27
27
|
text-align: center;
|
|
28
28
|
padding-top: 12px;
|
|
29
29
|
padding-bottom: 6px;
|
|
30
|
-
font-size: var(--
|
|
31
|
-
color: var(--
|
|
30
|
+
font-size: var(--stl-typography-scale-base);
|
|
31
|
+
color: var(--stl-color-foreground-reduced);
|
|
32
32
|
line-height: 100%;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -37,9 +37,9 @@ const { title } = Astro.props;
|
|
|
37
37
|
height: 1.5rem;
|
|
38
38
|
width: 1.5rem;
|
|
39
39
|
font-size: 0.8rem;
|
|
40
|
-
color: var(--
|
|
40
|
+
color: var(--stl-color-foreground);
|
|
41
41
|
font-weight: 600;
|
|
42
|
-
background-color: var(--
|
|
42
|
+
background-color: var(--stl-color-faint-background);
|
|
43
43
|
display: flex;
|
|
44
44
|
align-items: center;
|
|
45
45
|
justify-content: center;
|
|
@@ -48,7 +48,7 @@ const { title } = Astro.props;
|
|
|
48
48
|
|
|
49
49
|
.stl-ui-mintlify-compat-step-title {
|
|
50
50
|
font-weight: 600;
|
|
51
|
-
color: var(--
|
|
51
|
+
color: var(--stl-color-foreground);
|
|
52
52
|
}
|
|
53
53
|
.stl-ui-mintlify-compat-step-content {
|
|
54
54
|
margin-top: 0.5rem;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
.stl-ui-mintlify-compat-card {
|
|
2
2
|
border-radius: 12px;
|
|
3
3
|
padding: 16px;
|
|
4
|
-
font-size: var(--
|
|
4
|
+
font-size: var(--stl-typography-scale-base);
|
|
5
5
|
display: flex;
|
|
6
6
|
gap: 8px;
|
|
7
|
-
border: 1px solid var(--
|
|
7
|
+
border: 1px solid var(--stl-color-border);
|
|
8
8
|
flex-direction: column;
|
|
9
9
|
|
|
10
10
|
.stl-ui-mintlify-compat-card-icon svg {
|
|
@@ -22,13 +22,13 @@
|
|
|
22
22
|
|
|
23
23
|
.stl-ui-mintlify-compat-card-content {
|
|
24
24
|
margin-top: 0;
|
|
25
|
-
color: var(--
|
|
25
|
+
color: var(--stl-color-foreground-reduced);
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
a.stl-ui-mintlify-compat-card {
|
|
30
30
|
text-decoration: none;
|
|
31
|
-
color: var(--
|
|
31
|
+
color: var(--stl-color-foreground-reduced);
|
|
32
32
|
|
|
33
33
|
&:hover {
|
|
34
34
|
border-color: var(--sl-color-accent);
|
|
@@ -46,7 +46,7 @@ const buttonText = (navLinks.find((item) => item.active) ?? navLinks[0]!).label;
|
|
|
46
46
|
|
|
47
47
|
<style>
|
|
48
48
|
:root {
|
|
49
|
-
--menu-font-size: calc(var(--
|
|
49
|
+
--menu-font-size: calc(var(--stl-typography-scale-base) * 0.9);
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
.dropdown {
|
|
@@ -54,19 +54,9 @@ const buttonText = (navLinks.find((item) => item.active) ?? navLinks[0]!).label;
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
.dropdown-item {
|
|
57
|
-
|
|
58
|
-
color: var(--sl-color-text);
|
|
57
|
+
color: inherit;
|
|
59
58
|
text-align: inherit;
|
|
60
59
|
text-decoration: none;
|
|
61
60
|
white-space: nowrap;
|
|
62
61
|
}
|
|
63
|
-
|
|
64
|
-
.dropdown-item:focus {
|
|
65
|
-
color: #1e2125;
|
|
66
|
-
background-color: #e9ecef;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.nav-dropdown-root {
|
|
70
|
-
background-color: var(--sl-color-bg-nav);
|
|
71
|
-
}
|
|
72
62
|
</style>
|
|
@@ -143,29 +143,13 @@ const navLinks = buildNavLinks(Astro.locals.starlightRoute);
|
|
|
143
143
|
.nav-links {
|
|
144
144
|
display: flex;
|
|
145
145
|
list-style: none;
|
|
146
|
-
gap:
|
|
146
|
+
gap: 4px;
|
|
147
147
|
padding: 0;
|
|
148
148
|
margin: 0;
|
|
149
149
|
white-space: nowrap;
|
|
150
150
|
overflow: hidden;
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
.nav-links li {
|
|
154
|
-
display: flex;
|
|
155
|
-
align-items: center;
|
|
156
|
-
justify-content: center;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
.nav-link {
|
|
160
|
-
text-decoration: none;
|
|
161
|
-
flex: 1;
|
|
162
|
-
|
|
163
|
-
&.stl-ui-button--ghost:hover {
|
|
164
|
-
color: var(--sl-color-text-accent);
|
|
165
|
-
background-color: transparent;
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
|
|
169
153
|
.mobile-nav-dropdown {
|
|
170
154
|
flex-grow: 1;
|
|
171
155
|
}
|
|
@@ -35,7 +35,6 @@ const navLinks = buildNavLinks(Astro.locals.starlightRoute);
|
|
|
35
35
|
padding: 0;
|
|
36
36
|
list-style: none;
|
|
37
37
|
margin-bottom: -1px;
|
|
38
|
-
gap: 4px;
|
|
39
38
|
}
|
|
40
39
|
|
|
41
40
|
li {
|
|
@@ -43,7 +42,7 @@ const navLinks = buildNavLinks(Astro.locals.starlightRoute);
|
|
|
43
42
|
border-bottom: 2px solid transparent;
|
|
44
43
|
|
|
45
44
|
&.active {
|
|
46
|
-
border-color: var(--
|
|
45
|
+
border-color: var(--stl-color-accent-background);
|
|
47
46
|
}
|
|
48
47
|
|
|
49
48
|
.stl-ui-button {
|