-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
103 lines (100 loc) · 2.77 KB
/
Copy pathdocusaurus.config.js
File metadata and controls
103 lines (100 loc) · 2.77 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
// @ts-check
// `@type` JSDoc annotations allow editor autocompletion and type checking
// (when paired with `@ts-check`).
// There are various equivalent ways to declare your Docusaurus config.
// See: https://docusaurus.io/docs/api/docusaurus-config
// const { themes } = require("prism-react-renderer");
import { themes } from "prism-react-renderer";
const lightCodeTheme = themes.github;
const darkCodeTheme = themes.dracula;
/** @type {import("@docusaurus/types").Config} */
const config = {
title: "あなたのためのプログラミング",
tagline: "ut.code(); 第98回五月祭企画",
favicon: "/img/favicon.svg",
url: "https://mf98.utcode.net",
baseUrl: "/",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "throw",
i18n: {
defaultLocale: "ja",
locales: ["ja"],
},
presets: [
[
"classic",
/** @type {import("@docusaurus/preset-classic").Options} */
({
docs: false,
blog: false,
theme: {
customCss: "./src/css/custom.css",
},
}),
],
],
stylesheets: [
{
href: "https://cdn.jsdelivr.net/npm/katex@0.13.24/dist/katex.min.css",
type: "text/css",
integrity:
"sha384-odtC+0UGzzFL/6PNoE8rX/SPcQDXBJ+uRepguP4QkPCm2LBxH3FA3y+fKSiJ+AmM",
crossorigin: "anonymous",
},
],
themeConfig:
/** @type {import("@docusaurus/preset-classic").ThemeConfig} */
({
navbar: {
title: "あなたのためのプログラミング",
logo: {
alt: "ut.code();",
src: "img/favicon.svg",
},
items: [
{
type: "html",
position: "right",
value: `<a href="/vote" class="tooltip">
<div style="display: flex; align-items: center;">
<img src="/img/trophy.svg" id="trophy-icon" alt="Vote" style="margin-right: 8px;" />
<div>
この企画に投票する
</div>
</div>
</a>
`,
},
{
href: "https://utcode.net/",
label: "ut.code();",
position: "right",
},
],
},
footer: {
style: "dark",
links: [
{
title: "ut.code(); について",
items: [
{
label: "公式ウェブサイト",
href: "https://utcode.net/",
},
{
label: "Twitter",
href: "https://twitter.com/utokyo_code",
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} ut.code();. Built with Docusaurus.`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
}),
};
module.exports = config;