-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
104 lines (101 loc) · 3.42 KB
/
Copy pathdocusaurus.config.js
File metadata and controls
104 lines (101 loc) · 3.42 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
// @ts-check
const repoName = "scriptoria";
const orgName = "nikazzio";
/** @type {import('@docusaurus/types').Config} */
const config = {
title: "Scriptoria",
tagline: "A research workbench for IIIF manuscripts.",
url: `https://${orgName}.github.io`,
baseUrl: `/${repoName}/`,
favicon: "img/scriptoria-header.svg",
organizationName: orgName,
projectName: repoName,
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "throw",
i18n: {
defaultLocale: "en",
locales: ["en"],
},
markdown: {
mermaid: true,
},
themes: ["@docusaurus/theme-mermaid"],
presets: [
[
"classic",
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
routeBasePath: "/",
sidebarPath: require.resolve("./sidebars.js"),
editUrl: `https://github.com/${orgName}/${repoName}/tree/main/`,
exclude: ["wiki/**"],
},
blog: false,
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
announcementBar: {
id: "project-status",
isCloseable: true,
content:
'<a href="https://github.com/nikazzio/scriptoria" target="_blank" rel="noopener noreferrer">GitHub</a> · ' +
'<a href="https://github.com/nikazzio/scriptoria/issues" target="_blank" rel="noopener noreferrer">Issues</a> · ' +
'<a href="https://github.com/nikazzio/scriptoria/releases" target="_blank" rel="noopener noreferrer">Releases</a> · ' +
'<img alt="GitHub stars" src="https://img.shields.io/github/stars/nikazzio/scriptoria?style=flat-square&label=stars" /> ' +
'<img alt="Open issues" src="https://img.shields.io/github/issues/nikazzio/scriptoria?style=flat-square&label=issues" />',
},
navbar: {
title: "Scriptoria",
logo: {
alt: "Scriptoria",
src: "img/scriptoria-header.svg",
href: "/",
},
items: [
{to: "/", label: "Docs", position: "left"},
{to: "/reference/provider-support", label: "Libraries", position: "left"},
{to: "/reference/configuration", label: "Configuration", position: "left"},
{href: `https://github.com/${orgName}/${repoName}`, label: "GitHub", position: "right"},
{href: `https://github.com/${orgName}/${repoName}/issues`, label: "Issues", position: "right"},
{href: `https://github.com/${orgName}/${repoName}/wiki`, label: "Wiki", position: "right"},
],
},
footer: {
style: "dark",
links: [
{
title: "Docs",
items: [
{label: "Overview", to: "/"},
{label: "Getting Started", to: "/intro/getting-started"},
{label: "CLI Reference", to: "/reference/cli"},
],
},
{
title: "Project",
items: [
{label: "GitHub", href: `https://github.com/${orgName}/${repoName}`},
{label: "Issues", href: `https://github.com/${orgName}/${repoName}/issues`},
{label: "Wiki", href: `https://github.com/${orgName}/${repoName}/wiki`},
],
},
],
},
docs: {
sidebar: {
hideable: true,
},
},
prism: {
additionalLanguages: ["bash", "json"],
},
}),
};
module.exports = config;