@stainless-api/docs 0.1.0-beta.37 → 0.1.0-beta.39

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 CHANGED
@@ -1,5 +1,24 @@
1
1
  # @stainless-api/docs
2
2
 
3
+ ## 0.1.0-beta.39
4
+
5
+ ### Patch Changes
6
+
7
+ - 242deef: fix mobile menu on splash pages
8
+ - Updated dependencies [242deef]
9
+ - @stainless-api/ui-primitives@0.1.0-beta.25
10
+ - @stainless-api/docs-ui@0.1.0-beta.32
11
+
12
+ ## 0.1.0-beta.38
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies [c28b0a6]
17
+ - Updated dependencies [f23c6bc]
18
+ - Updated dependencies [2cd1b33]
19
+ - @stainless-api/docs-ui@0.1.0-beta.31
20
+ - @stainless-api/ui-primitives@0.1.0-beta.24
21
+
3
22
  ## 0.1.0-beta.37
4
23
 
5
24
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stainless-api/docs",
3
- "version": "0.1.0-beta.37",
3
+ "version": "0.1.0-beta.39",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -51,8 +51,8 @@
51
51
  "unified": "^11.0.5",
52
52
  "web-worker": "^1.5.0",
53
53
  "yaml": "^2.8.0",
54
- "@stainless-api/ui-primitives": "0.1.0-beta.23",
55
- "@stainless-api/docs-ui": "0.1.0-beta.30"
54
+ "@stainless-api/docs-ui": "0.1.0-beta.32",
55
+ "@stainless-api/ui-primitives": "0.1.0-beta.25"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@astrojs/check": "^0.9.5",
@@ -66,8 +66,8 @@
66
66
  "typescript": "5.9.3",
67
67
  "vite": "^6.3.6",
68
68
  "zod": "^4.1.12",
69
- "@stainless/sdk-json": "^0.1.0-beta.0",
70
- "@stainless/eslint-config": "0.1.0-beta.0"
69
+ "@stainless/eslint-config": "0.1.0-beta.0",
70
+ "@stainless/sdk-json": "^0.1.0-beta.0"
71
71
  },
72
72
  "scripts": {
73
73
  "vendor-deps": "pnpm tsx scripts/vendor_deps.ts",
package/plugin/index.ts CHANGED
@@ -180,9 +180,6 @@ async function stlStarlightAstroIntegration(
180
180
 
181
181
  updateConfig({
182
182
  vite: {
183
- ssr: {
184
- noExternal: ['@stainless-api/ui-primitives'],
185
- },
186
183
  plugins: [
187
184
  {
188
185
  name: 'stl-starlight-vite',
@@ -13,6 +13,19 @@ 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
+ @layer starlight.core {
22
+ .sidebar-pane {
23
+ li a[aria-current='page'] {
24
+ all: revert-layer;
25
+ }
26
+ }
27
+ }
28
+
16
29
  :global([aria-expanded='true']) ~ .sidebar-pane {
17
30
  --sl-sidebar-visibility: visible;
18
31
  }
@@ -24,6 +37,11 @@ import Sidebar from 'virtual:starlight/components/Sidebar';
24
37
  inset-inline-start: 0;
25
38
  width: 100%;
26
39
  overflow-y: auto;
40
+ left: 0;
41
+
42
+ a {
43
+ font-size: var(--sl-text-sm);
44
+ }
27
45
  }
28
46
 
29
47
  .sidebar-content {
@@ -32,6 +50,7 @@ import Sidebar from 'virtual:starlight/components/Sidebar';
32
50
  padding: 1rem var(--sl-sidebar-pad-x) 0;
33
51
  flex-direction: column;
34
52
  gap: 1rem;
53
+ background-color: var(--sl-color-black);
35
54
  }
36
55
 
37
56
  @media (min-width: 50rem) {
package/stl-docs/index.ts CHANGED
@@ -137,9 +137,6 @@ function stainlessDocsIntegration(
137
137
 
138
138
  updateConfig({
139
139
  vite: {
140
- ssr: {
141
- noExternal: ['@stainless-api/ui-primitives'],
142
- },
143
140
  plugins: [
144
141
  {
145
142
  name: 'stl-docs-vite',
package/styles/page.css CHANGED
@@ -13,10 +13,6 @@
13
13
  position: relative;
14
14
  max-width: var(--sl-page-max-width);
15
15
 
16
- .sidebar-pane {
17
- left: unset;
18
- }
19
-
20
16
  .right-sidebar {
21
17
  border-inline-start: unset;
22
18
  }
@@ -33,6 +29,9 @@
33
29
  }
34
30
 
35
31
  @media (min-width: 50rem) {
32
+ .page .sidebar-pane {
33
+ left: unset;
34
+ }
36
35
  /* on desktop, adjust sidebar so that its _text content_ aligns with the page left edge.
37
36
  * padding (visible on hover) bleeds out beyond the page left edge, covered by --stl-ui-page-padding-inline */
38
37
  .sidebar-pane {