Commit 79dd7d4
committed
docs: fix sidebar overflow at mid-width viewports and add a favicon
The --vp-layout-max-width: 1680px override interacts badly with the
default theme's (min-width: 1440px) rules, which assume the layout max
width never exceeds 1440px: on viewports between 1440px and 1680px their
calc() goes negative, collapsing the sidebar and spilling the nav title
over the search bar. Clamp the override to the viewport
(min(100vw, 1680px)) so those rules resolve to their stock values on
narrower viewports.
Also add the MCP logo favicon (the same asset the Python SDK docs use)
to both the v2 and v1 sites. The v1 site's content/ is build-generated,
so build-docs-site.sh copies the shared asset into its public dir.1 parent 7635115 commit 79dd7d4
5 files changed
Lines changed: 28 additions & 1 deletion
File tree
- docs
- .vitepress
- theme
- public
- v1/.vitepress
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
16 | 23 | | |
17 | 24 | | |
18 | | - | |
| 25 | + | |
19 | 26 | | |
20 | 27 | | |
21 | 28 | | |
| |||
Loading
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
102 | 106 | | |
103 | 107 | | |
104 | 108 | | |
| |||
0 commit comments