-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathastro.config.mjs
138 lines (135 loc) · 3.85 KB
/
astro.config.mjs
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import starlightOpenAPI, { openAPISidebarGroups } from 'starlight-openapi';
import sitemap from '@astrojs/sitemap';
import icon from "astro-icon";
import robotsTxt from 'astro-robots-txt';
export default defineConfig({
site: 'https://docs.openaq.org',
integrations: [starlight({
title: 'OpenAQ Docs',
logo: {
light: './src/assets/logo.svg',
dark: './src/assets/logo-dark.svg',
},
favicon: '/favicon.svg',
editLink: {
baseUrl: 'https://github.com/openaq/docs.openaq.org/edit/main/',
},
head: [
{
tag: 'link',
attrs: {
rel: 'icon',
href: '/favicon.ico',
sizes: '16x16 32x32',
},
},
],
components: {
Head: './src/components/Head.astro',
},
social: {
github: 'https://github.com/openaq',
slack:
'https://join.slack.com/t/openaq/shared_invite/zt-yzqlgsva-v6McumTjy2BZnegIK9XCVw',
},
customCss: ['./src/styles/custom.css'],
plugins: [
starlightOpenAPI([
{
base: 'api',
label: 'API Reference',
collapsed: true,
schema: 'https://api.openaq.org/openapi.json',
},
]),
],
sidebar: [
{
label: 'About the API',
items: [
{ label: 'About the API', slug: 'about/about' },
{ label: 'Terms of use', slug: 'about/terms' },
],
},
{
label: 'Using the API',
items: [
{
label: 'Quick start',
slug: 'using-the-api/quick-start',
},
{ label: 'API key', slug: 'using-the-api/api-key' },
{
label: 'Rate limits',
slug: 'using-the-api/rate-limits',
},
{ label: 'Pagination', slug: 'using-the-api/pagination' },
{
label: 'Dates, datetimes and timezones',
slug: 'using-the-api/dates-datetimes',
},
{
label: 'Geospatial queries',
slug: 'using-the-api/geospatial',
},
{ label: 'Errors', slug: 'using-the-api/errors' },
{
label: 'Client libraries',
slug: 'using-the-api/libraries',
},
],
},
{
label: 'Examples',
items: [
{ label: 'Examples', slug: 'examples/examples' },
],
},
{
label: 'Resources',
items: [
{ label: 'Countries', slug: 'resources/countries' },
{ label: 'Instruments', slug: 'resources/instruments' },
{ label: 'Latest', slug: 'resources/latest' },
{ label: 'Licenses', slug: 'resources/licenses' },
{ label: 'Locations', slug: 'resources/locations' },
{
label: 'Manufacturers',
slug: 'resources/manufacturers',
},
{ label: 'Measurements', slug: 'resources/measurements' },
{ label: 'Owners', slug: 'resources/owners' },
{ label: 'Parameters', slug: 'resources/parameters' },
{ label: 'Providers', slug: 'resources/providers' },
{ label: 'Sensors', slug: 'resources/sensors' },
],
},
...openAPISidebarGroups,
{
label: 'Open Data on AWS',
items: [
{ label: 'Quick start', slug: 'aws/quick-start' },
{ label: 'About Open Data on AWS', slug: 'aws/about' },
{
label: 'Guide - Downloading a year of data',
slug: 'aws/year-guide',
},
{
label: 'Guide - Querying with Athena',
slug: 'aws/athena-guide',
},
],
},
],
})
, sitemap()
, robotsTxt()
, icon({
include: {
mdi: ["emoticon-happy-outline", "emoticon-sad-outline"], // Loads only Material Design Icon's "account" SVG
}
})
],
});