-
Notifications
You must be signed in to change notification settings - Fork 0
/
docusaurus.config.ts
118 lines (116 loc) · 2.94 KB
/
docusaurus.config.ts
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
import type * as Preset from "@docusaurus/preset-classic";
import type { Config } from "@docusaurus/types";
import { themes as prismThemes } from "prism-react-renderer";
const config: Config = {
title: "SC2 Wiki",
tagline: "South Central STEM Collective's internal wiki",
url: "https://wiki.scstem.org",
baseUrl: "/",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
favicon: "image/logo.svg",
i18n: {
defaultLocale: "en",
locales: ["en"],
},
presets: [
[
"classic",
{
docs: {
routeBasePath: "/",
sidebarPath: require.resolve("./sidebars.config.ts"),
path: "./wiki",
},
theme: {
customCss: ["./src/css/custom.css", "./src/css/tailwind.css"],
},
gtag: {
trackingID: "G-LXG6C2VKTG",
},
} satisfies Preset.Options,
],
],
themeConfig: {
navbar: {
title: "South Central STEM Collective Wiki",
logo: {
alt: "South Central STEM Collective's logo",
src: "image/logo.svg",
},
items: [
// {
// type: "docSidebar",
// sidebarId: "wiki",
// position: "left",
// label: "Overview",
// },
{
href: "https://scstem.org",
label: "Main site",
position: "right",
},
],
},
footer: {
style: "dark",
links: [
{
title: "Where to find us",
items: [
{
label: "Our website",
href: "https://scstem.org",
},
{
label: "Facebook",
href: "https://go.scstem.tech/facebook",
},
{
label: "LinkedIn",
href: "https://go.scstem.tech/linkedin",
},
{
label: "GitHub",
href: "https://go.scstem.tech/github",
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} South Central STEM Collective.`,
},
colorMode: {
defaultMode: "dark",
disableSwitch: true,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
zoom: {
selector: ".markdown img, .zoomable img",
},
} satisfies Preset.ThemeConfig,
plugins: [
require.resolve("docusaurus-plugin-image-zoom"),
[
require.resolve("@docusaurus/plugin-ideal-image"),
{
disableInDev: false,
sizes: [250, 576, 768, 992, 1200, 1400, 2000],
name: "image/_optimized/[name].[hash:hex:7].[width].[ext]",
},
],
async function postcss(_context, _options) {
return {
name: "docusaurus-tailwindcss",
configurePostCss(postcssOptions) {
postcssOptions.plugins.push(require("tailwindcss"));
postcssOptions.plugins.push(require("autoprefixer"));
return postcssOptions;
},
};
},
],
};
export default config;