-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathastro.config.mjs
More file actions
61 lines (60 loc) · 2 KB
/
Copy pathastro.config.mjs
File metadata and controls
61 lines (60 loc) · 2 KB
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
// @ts-check
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import starlightThemeTerminal from 'starlight-theme-terminal'
// https://astro.build/config
export default defineConfig({
site: 'https://dssh.grolmes.com',
integrations: [
starlight({
plugins: [starlightThemeTerminal()],
title: 'dssh',
customCss: ['./src/styles/custom.css'],
head: [
{
tag: 'script',
content: `
try {
var key = 'starlight-synced-tabs__installers';
if (!localStorage.getItem(key)) {
var p = (navigator.userAgentData && navigator.userAgentData.platform
|| navigator.platform || navigator.userAgent).toLowerCase();
var label = null;
if (p.indexOf('win') !== -1) label = 'winget';
else if (p.indexOf('mac') !== -1 || p.indexOf('iphone') !== -1
|| p.indexOf('ipad') !== -1 || p.indexOf('darwin') !== -1) label = 'Homebrew';
else if (p.indexOf('linux') !== -1 || p.indexOf('x11') !== -1
|| p.indexOf('bsd') !== -1) label = 'AUR';
if (label) localStorage.setItem(key, label);
}
} catch (e) {}
`,
},
],
social: [{ icon: 'github', label: 'GitHub', href: 'https://github.com/madLinux7/dssh' }],
sidebar: [
{ label: 'Get started', slug: 'getting-started' },
{
label: 'Guides',
items: [
{ label: 'Grouping', slug: 'guides/grouping' },
{ label: 'Security model', slug: 'guides/security' },
{ label: 'Migration', slug: 'guides/migration' },
{ label: 'Troubleshooting', slug: 'guides/troubleshooting' },
{ label: 'FAQ', slug: 'guides/faq' },
],
},
{
label: 'Reference',
items: [
{ label: 'Commands', slug: 'reference/commands' },
{ label: 'TUI keybindings', slug: 'reference/tui-keys' },
{ label: 'Configuration', slug: 'reference/config' },
{ label: 'Limitations', slug: 'reference/limitations' },
],
},
{ label: 'Contributing', slug: 'contributing' },
],
}),
],
});