-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocusaurus.config.ts
More file actions
225 lines (212 loc) · 7.37 KB
/
Copy pathdocusaurus.config.ts
File metadata and controls
225 lines (212 loc) · 7.37 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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
import { themes as prismThemes } from "prism-react-renderer";
import type { Config } from "@docusaurus/types";
import type * as Preset from "@docusaurus/preset-classic";
// Base URL configuration
const baseUrl = "/";
const config: Config = {
title: "Cyd",
tagline: "Tech platforms can't be trusted.",
favicon: "img/icon.svg",
// Future flags, see https://docusaurus.io/docs/api/docusaurus-config#future
future: {
v4: true,
},
url: "https://cyd.social",
baseUrl,
// GitHub pages deployment config
organizationName: "lockdown-systems",
projectName: "cyd.social",
onBrokenLinks: "throw",
headTags: [
{
tagName: "link",
attributes: {
href: "https://infosec.exchange/@lockdownsystems",
rel: "me",
},
},
{
tagName: "meta",
attributes: {
name: "fediverse:creator",
content: "@cyd@infosec.exchange",
},
},
{
tagName: "link",
attributes: {
href: "https://infosec.exchange/@cyd",
rel: "me",
},
},
],
markdown: {
hooks: {
onBrokenMarkdownLinks: "warn",
},
},
i18n: {
defaultLocale: "en",
locales: ["en"],
},
presets: [
[
"classic",
{
docs: {
sidebarPath: "./sidebars.ts",
},
blog: {
showReadingTime: true,
feedOptions: {
type: ["rss", "atom"],
xslt: true,
},
onInlineTags: "warn",
onInlineAuthors: "warn",
onUntruncatedBlogPosts: "warn",
},
theme: {
customCss: "./src/css/custom.css",
},
pages: {},
} satisfies Preset.Options,
],
],
plugins: [
[
"docusaurus-lunr-search",
{
languages: ["en"],
},
],
[
"@docusaurus/plugin-client-redirects",
{
redirects: [
{
from: "/help-shape-the-future-of-cyd/",
to: "https://lockdown.systems/help-shape-the-future-of-cyd/",
},
{
from: "/migrate-your-tweets-to-bluesky-with-the-latest-version-of-cyd/",
to: "https://lockdown.systems/migrate-your-tweets-to-bluesky-with-the-latest-version-of-cyd/",
},
{
from: "/cyd-is-now-open-source/",
to: "https://lockdown.systems/cyd-is-now-open-source/",
},
{
from: "/want-to-quit-x-in-2025-heres-how-to-do-it-the-right-way-with-cyd/",
to: "https://lockdown.systems/want-to-quit-x-in-2025-heres-how-to-do-it-the-right-way-with-cyd/",
},
{
from: "/backup-and-delete-your-bookmarks-from-x-with-the-latest-version-of-cyd/",
to: "https://lockdown.systems/backup-and-delete-your-bookmarks-from-x-with-the-latest-version-of-cyd/",
},
{
from: "/cyd-is-approximately-a-bazillion-times-faster-now/",
to: "https://lockdown.systems/cyd-is-approximately-a-bazillion-times-faster-now/",
},
{
from: "/delete-all-your-tweets-for-free-with-cyd/",
to: "https://lockdown.systems/delete-all-your-tweets-for-free-with-cyd/",
},
{
from: "/docs/intro/",
to: "/docs/",
},
],
},
],
],
themeConfig: {
image: "img/cyd-social-card.png",
colorMode: {
defaultMode: "light",
disableSwitch: true,
respectPrefersColorScheme: false,
},
navbar: {
logo: {
alt: "Cyd Logo",
src: "img/cyd.svg",
},
items: [
{ to: "/", label: "Home", position: "left", exact: true },
{ to: "/pricing/", label: "Pricing", position: "left" },
{
type: "docSidebar",
sidebarId: "docsSidebar",
label: "Docs",
position: "left",
},
{
label: "Collective",
to: "https://lockdown.systems/",
position: "left",
},
{
label: "Login",
to: "https://dash.cyd.social/",
position: "left",
},
{
type: "html",
position: "left",
className: "hideOnMobileNav",
value: "<div class='navbar__separator'></div>",
},
{
to: "https://lockdown.systems/donate/",
html: `<img src="${baseUrl}img/heart-orange.svg" alt="" class="buttonIcon donateIconNormal" /><img src="${baseUrl}img/heart-white.svg" alt="" class="buttonIcon donateIconHover" /> Donate`,
className: "buttonPrimaryOutline buttonSmall hideOnMobileNav",
position: "right",
},
{
to: "/download/",
html: `<img src="${baseUrl}img/white-download.svg" alt="" class="buttonIcon" /> Download Cyd`,
className: "buttonSecondary buttonSmall hideOnMobileNav",
position: "right",
},
],
},
footer: {
style: "light",
links: [
{
html: `
<div style="width: 100%; box-sizing: border-box; padding: 0 1rem;">
<div style="display: flex; justify-content: center; align-items: center; column-gap: 20px; margin-bottom: 20px; flex-wrap: wrap;">
<a href="https://bsky.app/profile/cyd.social" style="display: inline-block;"><img src="${baseUrl}img/bluesky-brands.svg" alt="Bluesky" rel="me" style="width: 24px; height: 24px;"></a>
<a href="https://infosec.exchange/@cyd" style="display: inline-block;"><img src="${baseUrl}img/mastodon-brands.svg" alt="Mastodon" rel="me" style="width: 24px; height: 24px;"></a>
<a href="https://x.com/cyd_social" style="display: inline-block;"><img src="${baseUrl}img/x-twitter-brands.svg" alt="X Twitter" rel="me" style="width: 24px; height: 24px;"></a>
<a href="https://github.com/lockdown-systems/cyd/" style="display: inline-block;"><img src="${baseUrl}img/github-brands.svg" alt="GitHub" rel="me" style="width: 24px; height: 24px;"></a>
</div>
<div style="display: flex; justify-content: center; align-items: center; column-gap: 20px; flex-wrap: wrap;">
<a href="${baseUrl}privacy/" style="text-decoration: none; color: var(--ifm-footer-link-color);">Privacy Policy</a>
<a href="${baseUrl}terms/" style="text-decoration: none; color: var(--ifm-footer-link-color);">Terms of Use</a>
<a href="${baseUrl}contact/" style="text-decoration: none; color: var(--ifm-footer-link-color);">Contact</a>
<a href="${baseUrl}credits/" style="text-decoration: none; color: var(--ifm-footer-link-color);">Credits</a>
<a href="/blog" style="text-decoration: none; color: var(--ifm-footer-link-color);">Development Blog</a>
</div>
<p style="font-size: 0.8em; width: 100%; margin: 20px auto 0; text-align: center; box-sizing: border-box; overflow-wrap: break-word;">Cyd is a project of <a href="https://lockdown.systems/">Lockdown Systems</a>, a worker owned collective. Our fiscal sponsor is <a href="https://www.lucyparsonslabs.com">Lucy Parsons Labs</a>, a 501(c)(3) nonprofit.</p>
</div>
`,
},
],
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
} satisfies Preset.ThemeConfig,
scripts: [
{
src: "https://plausible.io/js/script.js",
defer: true,
"data-domain": "cyd.social",
},
],
};
export default config;