mirror of
https://github.com/d3/d3.git
synced 2025-12-08 19:46:24 +00:00
custom footer
This commit is contained in:
parent
b43304d6c8
commit
e9b2d69f03
@ -1,4 +1,5 @@
|
||||
import path from "path";
|
||||
import {fileURLToPath, URL} from "node:url";
|
||||
import path from "node:path";
|
||||
import {defineConfig} from "vitepress";
|
||||
|
||||
// https://vitepress.dev/reference/site-config
|
||||
@ -13,9 +14,10 @@ export default defineConfig({
|
||||
],
|
||||
vite: {
|
||||
resolve: {
|
||||
alias: {
|
||||
d3: path.resolve("./dist/d3.mjs")
|
||||
}
|
||||
alias: [
|
||||
{find: "d3", replacement: path.resolve("./dist/d3.mjs")},
|
||||
{find: /^.*\/VPFooter\.vue$/, replacement: fileURLToPath(new URL("./theme/CustomFooter.vue", import.meta.url))}
|
||||
]
|
||||
}
|
||||
},
|
||||
themeConfig: {
|
||||
|
||||
51
docs/.vitepress/theme/CustomFooter.vue
Normal file
51
docs/.vitepress/theme/CustomFooter.vue
Normal file
File diff suppressed because one or more lines are too long
@ -67,3 +67,53 @@
|
||||
.vp-doc sub {
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.bg-alt {
|
||||
background: var(--vp-c-bg-alt);
|
||||
}
|
||||
|
||||
.lh-normal {
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
.flex {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.flex-grow-1 {
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.ma4 {
|
||||
margin: 2rem;
|
||||
}
|
||||
|
||||
.ml1 {
|
||||
margin-left: 1rem;
|
||||
}
|
||||
|
||||
.mb2 {
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.f12 {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.f14 {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.fw6 {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.fb6 {
|
||||
flex-basis: 8rem;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 960px) {
|
||||
.flex-l {
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
|
||||
@ -12,7 +12,7 @@ And of course, follow us on [Observable](https://observablehq.com/@observablehq?
|
||||
|
||||
## Getting help
|
||||
|
||||
We recommend asking for help on the [Observable forum](https://talk.observablehq.com/c/help/6). Or if you prefer chat, join the [Observable community Slack](https://observable-community.slack.com/ssb/redirect).
|
||||
We recommend asking for help on the [Observable forum](https://talk.observablehq.com). Or if you prefer chat, join the [Observable community Slack](https://observable-community.slack.com/ssb/redirect).
|
||||
|
||||
We encourage you to share your work, no matter how messy, on [Observable](https://observablehq.com). Sharing live code is the easiest way to let people see what you see, and to debug your problem. Strive for a [minimal, reproducible example](https://stackoverflow.com/help/minimal-reproducible-example)—it helps people hone in on your problem more quickly.
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user