-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathastro.config.mjs
More file actions
170 lines (168 loc) · 5.57 KB
/
Copy pathastro.config.mjs
File metadata and controls
170 lines (168 loc) · 5.57 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
// @ts-check
import { defineConfig } from "astro/config";
import starlight from "@astrojs/starlight";
import svelte from "@astrojs/svelte";
import starlightOpenAPI, { openAPISidebarGroups } from "starlight-openapi";
import starlightBlog from "starlight-blog";
import starlightLinksValidator from "starlight-links-validator";
import starlightImageZoom from "starlight-image-zoom";
import remarkPrefixBase from "./plugins/remark-prefix-base.mjs";
const githubRepo = "https://github.com/vazra/simpledeploy";
const siteBase = "/simpledeploy";
export default defineConfig({
site: "https://vazra.github.io",
base: siteBase,
markdown: {
remarkPlugins: [[remarkPrefixBase, { base: siteBase }]],
},
integrations: [
svelte(),
starlight({
title: "SimpleDeploy",
description:
"Single binary that deploys Docker Compose apps with HTTPS, backups, alerts, metrics.",
logo: {
src: "./src/assets/logo.svg",
replacesTitle: false,
},
favicon: "/favicon.svg",
social: [
{ icon: "github", label: "GitHub", href: githubRepo },
],
editLink: {
baseUrl: `${githubRepo}/edit/main/docs-site/`,
},
customCss: ["./src/styles/custom.css"],
components: {
SocialIcons: "./src/components/SocialIconsWithStar.astro",
},
plugins: [
starlightImageZoom(),
starlightBlog({
title: "Blog",
postCount: 10,
}),
starlightLinksValidator({
// Wave 1A scaffold: keep validation reports in build output but
// do not break the build while other waves are authoring content.
failOnError: false,
errorOnRelativeLinks: false,
errorOnInvalidHashes: false,
exclude: [
"/reference/api",
"/reference/api/**",
"/simpledeploy/blog",
"/simpledeploy/blog/",
"http://localhost:**",
"https://localhost:**",
],
}),
starlightOpenAPI([
{
base: "reference/api",
label: "REST API",
schema: "./openapi/simpledeploy.yaml",
},
]),
],
sidebar: [
{
label: "Start Here",
items: [
{ label: "What is SimpleDeploy", link: "/start/what-is/" },
{ label: "How it Works", link: "/start/how-it-works/" },
{ label: "When to Use", link: "/start/when-to-use/" },
{ label: "5-Minute Quickstart", link: "/start/quickstart/" },
],
},
{
label: "Install",
items: [
{ label: "Overview", link: "/install/" },
{ label: "macOS (Homebrew)", link: "/install/macos/" },
{ label: "Ubuntu / Debian (apt)", link: "/install/ubuntu/" },
{ label: "Generic Linux (binary)", link: "/install/linux/" },
{ label: "From Source", link: "/install/from-source/" },
{ label: "Docker", link: "/install/docker/" },
{ label: "Upgrading", link: "/install/upgrading/" },
],
},
{
label: "Deploy Your First App",
items: [
{ label: "Prepare the Server", link: "/first-deploy/prepare/" },
{ label: "Generate Config", link: "/first-deploy/config/" },
{ label: "Create Admin User", link: "/first-deploy/admin/" },
{ label: "Write a docker-compose.yml", link: "/first-deploy/compose/" },
{ label: "Deploy via UI", link: "/first-deploy/ui/" },
{ label: "Deploy via CLI", link: "/first-deploy/cli/" },
{ label: "Verify", link: "/first-deploy/verify/" },
],
},
{
label: "Core Concepts",
autogenerate: { directory: "concepts" },
},
{
label: "Guides",
autogenerate: { directory: "guides" },
},
{
label: "Playground",
items: [
{ label: "Compose Label Builder", link: "/playground/compose/" },
],
},
{
label: "Reference",
items: [
{ label: "Compose Labels", link: "/reference/compose-labels/" },
{ label: "Configuration", link: "/reference/configuration/" },
{ label: "CLI", link: "/reference/cli/" },
{ label: "WebSocket Endpoints", link: "/reference/websocket/" },
{ label: "Environment Variables", link: "/reference/env-vars/" },
{ label: "Ports and Firewall", link: "/reference/ports/" },
{ label: "Directory Layout", link: "/reference/directory-layout/" },
...openAPISidebarGroups,
],
},
{
label: "Operations",
autogenerate: { directory: "operations" },
},
{
label: "Integrations",
autogenerate: { directory: "integrations" },
},
{
label: "Architecture",
autogenerate: { directory: "architecture" },
},
{
label: "Contributing",
autogenerate: { directory: "contributing" },
},
{
label: "Community",
autogenerate: { directory: "community" },
},
{
label: "FAQ",
link: "/faq/",
},
{
label: "Changelog",
link: "/changelog/",
},
{
label: "Legal",
items: [
{ label: "License", link: "/license/" },
{ label: "Privacy Policy", link: "/legal/privacy/" },
{ label: "Terms of Use", link: "/legal/terms/" },
],
},
],
}),
],
});