Skip to content

Commit

Permalink
upgrade vitepress to 1.0.0-rc.12 (#1844)
Browse files Browse the repository at this point in the history
* upgrade vitepress to 1.0.0-rc.10

* brand color fixes

* 1.0.0-rc.12

* upgrade dependencies

* recompute brand colors

* fix observable promo button

---------

Co-authored-by: Mike Bostock <[email protected]>
  • Loading branch information
Fil and mbostock authored Sep 11, 2023
1 parent 5208841 commit e22c41e
Show file tree
Hide file tree
Showing 6 changed files with 288 additions and 408 deletions.
4 changes: 0 additions & 4 deletions docs/.vitepress/theme/CustomFooter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@

<style>
footer a:hover {
text-decoration: underline;
}
.has-sidebar ~ footer {
display: none;
}
Expand Down
5 changes: 4 additions & 1 deletion docs/.vitepress/theme/ObservablePromo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ a.button {
display: inline-block;
border: 1px solid transparent;
text-align: center;
text-decoration: none;
font-weight: 600;
white-space: nowrap;
background-color: var(--vp-c-neutral);
Expand All @@ -75,10 +76,12 @@ a.button {
line-height: 38px;
font-size: 14px;
margin: 0 24px;
opacity: 0.9;
}
a.button:hover {
text-decoration: none;;
opacity: 1;
color: var(--vp-c-neutral-inverse);
}
@media (min-width: 640px) {
Expand Down
28 changes: 23 additions & 5 deletions docs/.vitepress/theme/custom.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,24 @@
:root {
--vp-c-purple-1: #7135be;
--vp-c-purple-2: #7f42cd;
--vp-c-purple-3: #9555e2;
--vp-c-purple-soft: rgba(155, 91, 233, 0.14);
}

.dark {
--vp-c-purple-1: #db96ff;
--vp-c-purple-2: #9a5ae8;
--vp-c-purple-3: #884ad6;
--vp-c-purple-soft: rgba(155, 91, 233, 0.16);
}

:root {
--vp-c-blue: #0092ff;
--vp-c-purple: #a463f2;
--vp-c-brand-lighter: #d893ff;
--vp-c-brand-light: #be7bff;
--vp-c-brand: var(--vp-c-purple);
--vp-c-brand-dark: #8a4cd8;
--vp-c-brand-darker: #7135be;
--vp-c-brand-1: var(--vp-c-purple-1);
--vp-c-brand-2: var(--vp-c-purple-2);
--vp-c-brand-3: var(--vp-c-purple-3);
--vp-c-brand-soft: var(--vp-c-purple-soft);
--vp-font-family-base: -apple-system, BlinkMacSystemFont, "avenir next", avenir, helvetica, "helvetica neue", ubuntu, roboto, noto, "segoe ui", arial, sans-serif;
}

Expand Down Expand Up @@ -48,6 +61,10 @@
letter-spacing: -0.01em;
}

.vp-doc .plot a {
text-decoration: none;
}

.vp-doc .plot a:hover {
text-decoration: initial;
}
Expand Down Expand Up @@ -100,6 +117,7 @@ a.plot-fork {
margin-left: 8px;
margin-top: 18px;
color: var(--vp-c-text-2);
text-decoration: none;
}

a.plot-fork::after {
Expand Down
4 changes: 2 additions & 2 deletions docs/index.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@
"topojson-client": "^3.1.0",
"ts-morph": "^19.0.0",
"typescript": "^5.0.2",
"vite": "4.4.7",
"vitepress": "1.0.0-beta.7"
"vite": "^4.4.9",
"vitepress": "^1.0.0-rc.12"
},
"c8": {
"all": true,
Expand Down
Loading

0 comments on commit e22c41e

Please sign in to comment.