diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index f9f9c6b5..4ba1d91d 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -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: { diff --git a/docs/.vitepress/theme/CustomFooter.vue b/docs/.vitepress/theme/CustomFooter.vue new file mode 100644 index 00000000..71f7243d --- /dev/null +++ b/docs/.vitepress/theme/CustomFooter.vue @@ -0,0 +1,51 @@ + + + diff --git a/docs/.vitepress/theme/custom.css b/docs/.vitepress/theme/custom.css index dcc4a87b..5e195eb8 100644 --- a/docs/.vitepress/theme/custom.css +++ b/docs/.vitepress/theme/custom.css @@ -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; + } +} diff --git a/docs/community.md b/docs/community.md index 0810a982..3014b5bb 100644 --- a/docs/community.md +++ b/docs/community.md @@ -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.