-
Notifications
You must be signed in to change notification settings - Fork 46
/
astro.config.mjs
97 lines (91 loc) · 2.76 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
import { defineConfig } from 'astro/config';
import starlightLinksValidator from 'starlight-links-validator'
import starlight from '@astrojs/starlight';
import rehypeSlug from 'rehype-slug';
import rehypeAutolinkHeadings from 'rehype-autolink-headings';
// https://astro.build/config
export default defineConfig({
site: "https://docs.atuin.sh",
markdown: {
rehypePlugins: [
rehypeSlug,
[
rehypeAutolinkHeadings,
{
behavior: 'wrap',
headingProperties: {
className: ['anchor'],
},
properties: {
className: ['anchor-link'],
},
}
]
]
},
integrations: [
starlight({
plugins: [starlightLinksValidator()],
title: 'Atuin Docs',
favicon: 'atuin.png',
head: [{
tag: 'script',
attrs: {
src: 'https://plausible.io/js/script.js',
defer: true,
'data-domain': 'docs.atuin.sh',
}
}],
logo: {
light: './src/assets/logo-light.svg',
dark: './src/assets/logo-dark.png',
replacesTitle: true,
},
social: {
github: 'https://github.com/atuinsh/atuin',
discord: 'https://discord.gg/jR3tfchVvW',
mastodon: 'https://hachyderm.io/@atuin',
twitter: 'https://twitter.com/atuinsh',
linkedin: 'https://www.linkedin.com/company/atuin/'
},
defaultLocale: "root",
locales: {
root: { label: "English", lang: "en" }
},
sidebar: [
{
label: 'Guide',
items: [
{ label: 'Installation', link: '/guide/installation' },
{ label: 'Setting up sync', link: '/guide/sync' },
{ label: 'Import existing history', link: '/guide/import' },
{ label: 'Basic usage', link: '/guide/basic-usage' },
{ label: 'Syncing dotfiles', link: '/guide/dotfiles' },
{ label: 'Theming', link: '/guide/theming' },
],
},
{
label: 'Configuration',
autogenerate: { directory: 'configuration' },
},
{
label: 'Reference',
autogenerate: { directory: 'reference' },
},
{
label: 'Self hosting',
items: [
{ label: 'Server setup', link: '/self-hosting/server-setup' },
{ label: 'Usage', link: '/self-hosting/usage' },
{ label: 'Docker', link: '/self-hosting/docker' },
{ label: 'Kubernetes', link: '/self-hosting/kubernetes' },
{ label: 'Systemd', link: '/self-hosting/systemd' },
],
},
{ label: 'Known issues', link: '/known-issues' },
{ label: 'Integrations', link: '/integrations' },
{ label: 'FAQ', link: '/faq' },
],
}),
],
});