-
Notifications
You must be signed in to change notification settings - Fork 0
/
docusaurus.config.js
105 lines (98 loc) · 2.91 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
import { themes } from "prism-react-renderer";
export default async function createConfigAsync() {
return {
title: "Docs Previewer",
tagline: "Documentation for Seqera Labs products",
favicon: "img/favicon--dynamic.svg",
// Set the production url of your site here
url: "https://docs.seqera.io",
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: "/",
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: "seqeralabs", // Usually your GitHub org/user name.
projectName: "docs-previewer", // Usually your repo name.
onBrokenLinks: "warn",
onBrokenMarkdownLinks: "warn",
// Even if you don't use internalization, you can use this field to set useful
// metadata like html lang. For example, if your site is Chinese, you may want
// to replace "en" with "zh-Hans".
i18n: {
defaultLocale: "en",
locales: ["en"],
},
presets: [
[
"classic",
{
docs: {
routeBasePath: "/",
sidebarPath: "docs/sidebar.json",
editUrl: "https://github.com/seqeralabs/docs/tree/master/",
remarkPlugins: [
(await import("remark-code-import")).default,
(await require("remark-math")).default,
(await require("remark-yaml-to-table")).default,
],
rehypePlugins: [(await require("rehype-katex")).default],
},
theme: {
customCss: [
require.resolve("./src/css/custom.css"),
require.resolve("./src/css/branding.css"),
require.resolve("./src/css/fonts/inter.css"),
],
},
},
],
],
themeConfig: {
image: "img/share.jpg",
navbar: {
logo: {
alt: "Seqera Docs Previewer",
src: "img/logo2-dark.png",
srcDark: "img/logo2-dark.png",
},
items: [
{
type: "docSidebar",
sidebarId: "sidebar",
position: "left",
label: "Previewer",
},
],
},
footer: {
style: "dark",
links: [],
copyright: `${new Date().getFullYear()} © Seqera`,
},
prism: {
theme: themes.oneLight,
darkTheme: themes.oneDark,
additionalLanguages: [
"json",
"yaml",
"groovy",
"ini",
"nginx",
"bash",
"docker",
"python",
"typescript",
],
},
},
stylesheets: [
{
href: "https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css",
type: "text/css",
integrity:
"sha384-AfEj0r4/OFrOo5t7NnNe46zW/tFgW6x/bCJG8FqQCEo3+Aro6EYUG4+cU+KJWu/X",
crossorigin: "anonymous",
},
],
};
}