-
Notifications
You must be signed in to change notification settings - Fork 1
/
observablehq.config.ts
76 lines (67 loc) · 2.91 KB
/
observablehq.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
// See https://observablehq.com/framework/config for documentation.
export default {
// The project’s title; used in the sidebar and webpage titles.
title: "Visualizations",
// The pages and sections in the sidebar. If you don’t specify this option,
// all pages will be listed in alphabetical order. Listing pages explicitly
// lets you organize them into sections and have unlisted pages.
pages: [
{
name: "Variables in the Survey",
pages: [
{name: "Income over the years", path: "/income"},
{name: "New York area income over the years", path: "/new-york-area"},
{name: "New York area income across time, space, and race", path: "/new-york-area/income-by-race"}
]
}
],
// Some additional configuration options and their defaults:
// theme: "default", // try "light", "dark", "slate", etc.
// footer: "Built with Observable.", // what to show in the footer (HTML)
// toc: true, // whether to show the table of contents
// pager: true, // whether to show previous & next links in the footer
// root: "docs", // path to the source root for preview
// output: "dist", // path to the output root for build
header: `<style>
#observablehq-header a[href] {
color: inherit;
}
#observablehq-header a[target="_blank"] {
display: flex;
align-items: center;
gap: 0.25rem;
text-decoration: none;
}
#observablehq-header a[target="_blank"]:hover span {
text-decoration: underline;
}
#observablehq-header a[target="_blank"]::after {
content: "\\2197";
}
#observablehq-header a[target="_blank"]:not(:hover, :focus)::after {
color: var(--theme-foreground-muted);
}
@container not (min-width: 640px) {
.hide-if-small {
display: none;
}
}
</style>
<div style="display: flex; align-items: center; gap: 0.5rem; height: 2.2rem; margin: -1.5rem -2rem 2rem -2rem; padding: 0.5rem 2rem; border-bottom: solid 1px var(--theme-foreground-faintest); font: 500 16px var(--sans-serif);">
<a href="https://jaan.io/" style="display: flex; align-items: center;">
<svg width="22" height="22" viewBox="0 0 21.92930030822754 22.68549919128418" fill="currentColor">
<path d="M5.5 0L7 2H4zM16.5 0L18 2H15zM11 3V0h1v3zM0 7V5h3v1H1zM19 7V5h3v1h-2zM2 12h18v1H2zM0 17v-2h3v1H1zM19 17v-2h3v1h-2zM5.5 22L7 20h-3zM16.5 22L18 20h-3z"/>
<circle cx="11" cy="11" r="6" fill="none" stroke="currentColor" stroke-width="1.5"/>
<path d="M11 8v6h4" stroke="currentColor" stroke-width="1.5" fill="none"/>
</svg>
</a>
<div style="display: flex; flex-grow: 1; justify-content: space-between; align-items: baseline;">
<a href="/american-community-survey">
<span class="hide-if-small">Visualizing the Census Bureau</span> American Community Survey
</a>
<span style="display: flex; align-items: baseline; gap: 0.5rem; font-size: 14px;">
<a target="_blank" href="https://github.com/jaanli/american-community-survey/"><span>View source</span></a>
</span>
</div>
</div>`
};