-
Notifications
You must be signed in to change notification settings - Fork 18
/
docusaurus.config.js
254 lines (250 loc) · 10.6 KB
/
docusaurus.config.js
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
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
import { themes as prismThemes } from "prism-react-renderer";
/** @type {import('@docusaurus/types').Config} */
const config = {
title: "TagSpaces Docs",
tagline: "Documentation for TagSpaces",
url: "https://docs.tagspaces.org",
baseUrl: "/",
onBrokenLinks: "warn",
onBrokenMarkdownLinks: "warn",
favicon: "img/favicon.ico",
organizationName: "tagspaces", // Usually your GitHub org/user name.
projectName: "tagspaces", // Usually your repo name.
i18n: {
defaultLocale: "en",
locales: ["en"],
},
plugins: [
require.resolve("docusaurus-lunr-search"),
// [
// "@docusaurus/plugin-client-redirects",
// {
// redirects: [
// {
// from: ["/tutorials/web-edition-setup"],
// to: "/tutorials/setup-tagspaces-web",
// },
// ],
// },
// ],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
navbar: {
// title: "TagSpaces Docs",
hideOnScroll: true,
logo: {
alt: "TagSpaces Logo",
src: "img/tagspaces-docs-logo.svg",
},
items: [
// {
// to: "docs/",
// activeBasePath: "docs",
// label: "Docs",
// position: "left",
// },
{
href: "https://www.tagspaces.org/products/",
label: "Our Products",
position: "right",
},
{
href: "https://demo.tagspaces.com/",
label: "Live Demo",
position: "right",
},
{
href: "https://github.com/tagspaces/documentation",
label: "GitHub",
position: "right",
},
],
},
announcementBar: {
id: "supportus",
backgroundColor: "#525252",
textColor: "white",
content:
'⭐️ If you like TagSpaces, upvote it on <a target="_blank" href="https://www.producthunt.com/posts/tagspaces-2">Product Hunt</a> or recommend it on <a target="_blank" rel="noopener noreferrer" href="https://alternativeto.net/software/tagspaces/about/">AlternativeTo</a>!! ⭐️',
},
// announcementBar: {
// id: "blackweek2022",
// backgroundColor: "#525252",
// textColor: "white",
// content:
// 'Black Week 2022 - 10% off for <a href="https://www.tagspaces.org/products/">TagSpaces Pro</a>!',
// },
footer: {
style: "dark",
links: [
// {
// title: "Docs",
// items: [
// {
// label: "Style Guide",
// to: "docs/",
// },
// ],
// },
{
title: "Products",
items: [
{
label: "Overview",
href: "https://www.tagspaces.org/products/",
},
{
label: "Lite",
href: "https://www.tagspaces.org/products/lite/",
},
{
label: "Pro",
href: "https://www.tagspaces.org/products/pro/",
},
{
label: "Enterprise",
href: "https://www.tagspaces.org/products/enterprise/",
},
{
label: "Demo",
href: "https://demo.tagspaces.com/",
},
],
},
{
title: "Company",
items: [
{
label: "About",
href: "https://www.tagspaces.org/about/",
},
{
label: "Press and Media",
href: "https://www.tagspaces.org/press/",
},
{
label: "Imprint",
href: "https://www.tagspaces.org/about/imprint/",
},
{
label: "Privacy Policy",
href: "https://www.tagspaces.org/about/privacy/",
},
],
},
{
title: "Community",
items: [
{
label: "Forums",
href: "https://tagspaces.discourse.group",
},
{
label: "Suggest Feature",
href: "https://tagspaces.discourse.group/c/feature-requests/6",
},
{
label: "Report Issue",
href: "https://github.com/tagspaces/tagspaces/issues",
},
{
label: "Source Code",
href: "https://github.com/tagspaces/tagspaces",
},
{
label: "Contribute",
href: "https://www.tagspaces.org/contribute/",
},
{
label: "Help with translation",
href: "https://www.transifex.com/tagspaces/tagspaces/",
},
],
},
{
title: "Spread the word",
items: [
{
label: "Like us on AlternativeTo",
href: "https://alternativeto.net/software/tagspaces/",
},
{
label: "Featured on Product Hunt",
href: "https://www.producthunt.com/products/tagspaces",
},
{
label: "Like us on Slant",
href: "https://www.slant.co/options/17524/~tagspaces-review",
},
// {
// label: "Email",
// href: customFields.emailUsUrl,
// },
{
html: `
<br>
<a href="https://www.youtube.com/@tagspaces" target="_blank" rel="noreferrer noopener"><svg class="footerIcon" viewBox="0 0 24 24" aria-hidden="true"><path d="M10 15l5.19-3L10 9v6m11.56-7.83c.13.47.22 1.1.28 1.9.07.8.1 1.49.1 2.09L22 12c0 2.19-.16 3.8-.44 4.83-.25.9-.83 1.48-1.73 1.73-.47.13-1.33.22-2.65.28-1.3.07-2.49.1-3.59.1L12 19c-4.19 0-6.8-.16-7.83-.44-.9-.25-1.48-.83-1.73-1.73-.13-.47-.22-1.1-.28-1.9-.07-.8-.1-1.49-.1-2.09L2 12c0-2.19.16-3.8.44-4.83.25-.9.83-1.48 1.73-1.73.47-.13 1.33-.22 2.65-.28 1.3-.07 2.49-.1 3.59-.1L12 5c4.19 0 6.8.16 7.83.44.9.25 1.48.83 1.73 1.73z"></path></svg></a>
<a href="https://twitter.com/tagspaces" target="_blank" rel="noreferrer noopener"><svg class="footerIcon" viewBox="0 0 24 24" aria-hidden="true"><path d="M22.46 6c-.77.35-1.6.58-2.46.69.88-.53 1.56-1.37 1.88-2.38-.83.5-1.75.85-2.72 1.05C18.37 4.5 17.26 4 16 4c-2.35 0-4.27 1.92-4.27 4.29 0 .34.04.67.11.98C8.28 9.09 5.11 7.38 3 4.79c-.37.63-.58 1.37-.58 2.15 0 1.49.75 2.81 1.91 3.56-.71 0-1.37-.2-1.95-.5v.03c0 2.08 1.48 3.82 3.44 4.21a4.22 4.22 0 0 1-1.93.07 4.28 4.28 0 0 0 4 2.98 8.521 8.521 0 0 1-5.33 1.84c-.34 0-.68-.02-1.02-.06C3.44 20.29 5.7 21 8.12 21 16 21 20.33 14.46 20.33 8.79c0-.19 0-.37-.01-.56.84-.6 1.56-1.36 2.14-2.23z"></path></svg></a>
<a href="https://instagram.com/tagspaces/" target="_blank" rel="noreferrer noopener"><svg class="footerIcon" viewBox="0 0 24 24" aria-hidden="true"><path d="M7.8 2h8.4C19.4 2 22 4.6 22 7.8v8.4a5.8 5.8 0 0 1-5.8 5.8H7.8C4.6 22 2 19.4 2 16.2V7.8A5.8 5.8 0 0 1 7.8 2m-.2 2A3.6 3.6 0 0 0 4 7.6v8.8C4 18.39 5.61 20 7.6 20h8.8a3.6 3.6 0 0 0 3.6-3.6V7.6C20 5.61 18.39 4 16.4 4H7.6m9.65 1.5a1.25 1.25 0 0 1 1.25 1.25A1.25 1.25 0 0 1 17.25 8 1.25 1.25 0 0 1 16 6.75a1.25 1.25 0 0 1 1.25-1.25M12 7a5 5 0 0 1 5 5 5 5 0 0 1-5 5 5 5 0 0 1-5-5 5 5 0 0 1 5-5m0 2a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3z"></path></svg></a>
<a href="https://www.tagspaces.org/blog/rss.xml" target="_blank" rel="noreferrer noopener"><svg class="footerIcon" viewBox="0 0 24 24" aria-hidden="true"><circle cx="6.18" cy="17.82" r="2.18"></circle><path d="M4 4.44v2.83c7.03 0 12.73 5.7 12.73 12.73h2.83c0-8.59-6.97-15.56-15.56-15.56zm0 5.66v2.83c3.9 0 7.07 3.17 7.07 7.07h2.83c0-5.47-4.43-9.9-9.9-9.9z"></path></svg></a>
<a href="https://github.com/tagspaces/tagspaces" target="_blank" rel="noreferrer noopener"><svg class="footerIcon" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 .3a12 12 0 0 0-3.8 23.4c.6.1.8-.3.8-.6v-2c-3.3.7-4-1.6-4-1.6-.6-1.4-1.4-1.8-1.4-1.8-1-.7.1-.7.1-.7 1.2 0 1.9 1.2 1.9 1.2 1 1.8 2.8 1.3 3.5 1 0-.8.4-1.3.7-1.6-2.7-.3-5.5-1.3-5.5-6 0-1.2.5-2.3 1.3-3.1-.2-.4-.6-1.6 0-3.2 0 0 1-.3 3.4 1.2a11.5 11.5 0 0 1 6 0c2.3-1.5 3.3-1.2 3.3-1.2.6 1.6.2 2.8 0 3.2.9.8 1.3 1.9 1.3 3.2 0 4.6-2.8 5.6-5.5 5.9.5.4.9 1 .9 2.2v3.3c0 .3.1.7.8.6A12 12 0 0 0 12 .3"></path></svg></a>
<br><br>
<iframe height=40 src="https://ghbtns.com/github-btn.html?user=tagspaces&repo=tagspaces&type=watch&count=true"></iframe>
<a href="https://www.producthunt.com/posts/tagspaces-2?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-tagspaces-2" target="_blank"><img src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=371129&theme=light" alt="TagSpaces - A file manager with tagging and note-taking capabilities. | Product Hunt" style="width: 250px; height: 54px;" width="250" height="54" /></a>
`,
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} TagSpaces GmbH. Built with Docusaurus.`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
}),
scripts: [
{
src: "https://consent.cookiebot.com/uc.js",
"data-cbid": "ce1b9450-89a1-425c-861d-2c4b50a53c53",
// async: true,
// "data-blockingmode": "auto",
},
{
src: "https://plausible.io/js/plausible.js",
"data-domain": "docs.tagspaces.org",
// async: true,
defer: true,
},
],
presets: [
[
"classic",
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
routeBasePath: "/",
// homePageId: "intro",
sidebarPath: "./sidebars.js",
showLastUpdateTime: true,
editUrl: "https://github.com/tagspaces/documentation/edit/master/",
// admonitions: {
// keywords: ["note", "tip", "info", "warning", "danger"],
// extendDefaults: true,
// },
},
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
sitemap: {
changefreq: "weekly",
priority: 0.5,
// trailingSlash: true,
},
}),
],
],
};
export default config;