-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathobservablehq.config.js
70 lines (66 loc) · 3.27 KB
/
observablehq.config.js
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
import MarkdownItFootnote from "markdown-it-footnote";
// See https://observablehq.com/framework/config for documentation.
export default {
// The project’s title; used in the sidebar and webpage titles.
title: "OpenAQ - AQI Hub",
// 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.
head: `
<link rel="icon" href="favicon-16x16.png" type="image/png" sizes="16x16">
<link rel="icon" href="favicon-32x32.png" type="image/png" sizes="32x32">
<script defer data-domain="aqihub.info" src="https://plausible.io/js/script.js" crossorigin="anonymous"></script>
`,
pages: [
{
name: "",
pages: [
{name: "Introduction", path: "/index"},
{name: "Pollutants", path: "/pollutants"},
{name: "Reporting periods", path: "/reporting-periods"},
{name: "Methods", path: "/methods"},
]
},
{
name: "Indices",
pages: [
{name: "Australia", path: "/indices/australia"},
{name: "Canada", path: "/indices/canada"},
{name: "China", path: "/indices/china"},
{name: "Costa Rica", path: "/indices/costa-rica"},
{name: "European Union", path:"/indices/eu"},
{name: "Finland", path:"/indices/finland"},
{name: "Hong Kong", path: "/indices/hong-kong"},
{name: "India", path: "/indices/india"},
{name: "Indonesia", path: "/indices/indonesia"},
{name: "Israel", path: "/indices/israel"},
{name: "Kuwait", path: "/indices/kuwait"},
{name: "Macao", path: "/indices/macao"},
{name: "Malaysia", path: "/indices/malaysia"},
{name: "Mexico", path: "/indices/mexico"},
{name: "Peru", path: "/indices/peru"},
{name: "Singapore", path: "/indices/singapore"},
{name: "South Africa", path: "/indices/south-africa"},
{name: "South Korea", path: "/indices/south-korea"},
{name: "Taiwan", path: "/indices/taiwan"},
{name: "Thailand", path: "/indices/thailand"},
{name: "Türkiye", path: "/indices/turkiye"},
{name: "United Arab Emirates", path: "/indices/uae"},
{name: "United Kingdom", path: "/indices/uk"},
{name: "United States of America", path: "/indices/us"},
{name: "Vietnam", path: "/indices/vietnam"},
]
}
],
// Some additional configuration options and their defaults:
theme: "light", // try "light", "dark", "slate", etc.
header: '<h1 class="gradient-title">Air Quality Index Hub</h1>', // what to show in the header (HTML)
footer: '<div>Developed by <a href="https://openaq.org">OpenAQ</a>. Are we missing an AQI? Did you spot a bug? <a href="https://github.com/openaq/aqi-hub">contribute on github</a></div><div>Content licensed <a href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a></div>', // 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
style: "style.css",
root: "docs", // path to the source root for preview
output: "dist", // path to the output root for build
search: true, // activate search
markdownIt: (md) => md.use(MarkdownItFootnote)
};