-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
69 lines (67 loc) · 1.8 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';
import tailwind from '@astrojs/tailwind';
import rehypeAstroRelativeMarkdownLinks from 'astro-rehype-relative-markdown-links';
// https://astro.build/config
export default defineConfig({
integrations: [
starlight({
title: 'The DDoS Report',
description:
'The complete guide to Distributed Denial of Service (DDoS) attacks for developers and operators.',
favicon: '/favicon.png',
logo: {
dark: './src/assets/icon-dark.png',
light: './src/assets/icon-light.png',
},
social: {
github: 'https://github.com/relaycorp/ddos-report',
twitter: 'https://twitter.com/ddos_report',
},
editLink: {
baseUrl: 'https://github.com/relaycorp/ddos-report/tree/main',
},
sidebar: [
{
label: 'How DDoS Attacks Work',
link: '/overview',
},
{
label: 'Mitigate DDoS Attacks',
link: '/mitigation',
},
{
label: 'All mitigation tactics',
autogenerate: {
directory: 'tactics',
},
collapsed: true,
},
{
label: 'About',
link: '/about',
},
],
head: [
{
tag: 'script',
attrs: {
src: 'https://cdn.usefathom.com/script.js',
'data-site': 'FEHALQQK',
defer: true,
},
},
],
customCss: ['./src/tailwind.css', './src/custom.css'],
components: {
Footer: './src/components/Footer.astro',
},
}),
tailwind({
applyBaseStyles: false,
}),
],
markdown: {
rehypePlugins: [[rehypeAstroRelativeMarkdownLinks, { contentPath: 'src/content/docs' }]],
},
});