-
Notifications
You must be signed in to change notification settings - Fork 3
/
astro.config.mjs
69 lines (67 loc) · 1.96 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
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
// https://astro.build/config
export default defineConfig({
site: 'https://har.fyi',
integrations: [
starlight({
title: 'har.fyi 🧪',
head: [
{
tag: 'script',
attrs: {
async: true,
src: 'https://www.googletagmanager.com/gtag/js?id=G-SK2FZXB50K'
}
},
{
tag: 'script',
content: `
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-SK2FZXB50K');`
}
],
social: {
github: 'https://github.com/HTTPArchive/har.fyi',
twitter: 'https://twitter.com/HTTPArchive',
},
editLink: {
baseUrl: 'https://github.com/HTTPArchive/har.fyi/edit/main/'
},
sidebar: [
{
label: 'Guides',
items: [
{ label: 'Getting started', link: '/guides/getting-started/' },
{ label: 'Minimizing query costs', link: '/guides/minimizing-costs/' },
{ label: 'Guided tour', link: '/guides/guided-tour/' },
{ label: 'Release cycle', link: '/guides/release-cycle/' },
{ label: 'Migrate queries to `crawl` dataset', link: '/guides/migrating-to-crawl-dataset/' },
],
},
{
label: 'Tables',
autogenerate: { directory: 'reference/tables' }
},
{
label: 'Structs',
autogenerate: { directory: 'reference/structs' }
},
{
label: 'Blobs',
autogenerate: { directory: 'reference/blobs' }
},
{
label: 'Custom Metrics',
autogenerate: { directory: 'reference/custom-metrics' }
},
{
label: 'Functions',
autogenerate: { directory: 'reference/functions' }
},
],
}),
],
});