-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathastro.config.mjs
More file actions
108 lines (107 loc) · 2.49 KB
/
astro.config.mjs
File metadata and controls
108 lines (107 loc) · 2.49 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
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
import starlight from "@astrojs/starlight";
import { defineConfig } from "astro/config";
import smartypants from "remark-smartypants";
import { generateFilesFromMainRepo } from "./src/generate/generate";
// https://astro.build/config
export default defineConfig({
site: "https://lychee.cli.rs",
markdown: {
remarkPlugins: [
// automatically converting smart dashes causes problems with cli arguments.
// to insert dashes, use unicode or — or –.
[smartypants, { dashes: false }],
],
},
redirects: {
"/introduction": "/overview/",
},
integrations: [
generateFilesFromMainRepo(),
starlight({
expressiveCode: {
themes: ["catppuccin-frappe", "catppuccin-latte"],
},
title: "Docs",
description:
"Official documentation for lychee - a fast, asynchronous link checker",
editLink: {
baseUrl:
"https://github.com/lycheeverse/lycheeverse.github.io/edit/master/",
},
logo: {
alt: "lychee Logo",
replacesTitle: true,
src: "./src/assets/logo.svg",
},
social: [
{
icon: "github",
label: "GitHub",
href: "https://github.com/lycheeverse/lychee/",
},
],
customCss: ["./src/styles/index.css", "./src/fonts/font-face.css"],
sidebar: [
{
label: "Overview",
link: "/overview",
},
{
label: "Guides",
items: [
"guides/getting-started",
"guides/cli",
"guides/config",
"guides/output",
"guides/preprocessing",
"guides/library",
],
},
{
label: "Recipes",
items: [
"recipes/anchors",
"recipes/caching",
"recipes/excluding-links",
"recipes/excluding-paths",
"recipes/local-folder",
"recipes/migration",
"recipes/base-url",
"recipes/root-dir",
"recipes/pretty-urls",
"recipes/md-wikilinks",
],
},
{
label: "Continuous integration",
items: [
"continuous-integration/github",
"continuous-integration/gitlab",
],
},
{
label: "Troubleshooting",
items: [
"troubleshooting/rate-limits",
"troubleshooting/custom-headers",
"troubleshooting/mail",
"troubleshooting/network-errors",
"troubleshooting/open-files",
"troubleshooting/redirects",
"troubleshooting/status-codes",
],
},
{
label: "Internals",
items: [
"internals/how-it-works",
"internals/contributing",
"internals/sponsors",
"internals/credits",
"internals/users",
],
},
],
}),
],
});