-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore(deps): Docusaurus v3! * prettify code * fix misinterpretation of `<` (U+003C)
- Loading branch information
Showing
5 changed files
with
3,703 additions
and
925 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,128 +1,134 @@ | ||
const remarkMath = require("remark-math"); | ||
const rehypeKatex = require("rehype-katex"); | ||
const githubTheme = require("prism-react-renderer/themes/github"); | ||
const draculaTheme = require("prism-react-renderer/themes/dracula"); | ||
|
||
module.exports = { | ||
title: "Computerization", | ||
tagline: "C社 << Computerization << 世外信息化社", | ||
url: "https://computerization.io", | ||
baseUrl: "/", | ||
favicon: "img/favicon/favicon.ico", | ||
trailingSlash: true, | ||
i18n: { | ||
defaultLocale: "zh-Hans", | ||
locales: ["zh-Hans", "en"], | ||
localeConfigs: { | ||
"zh-Hans": { | ||
label: "中文(简体)", | ||
}, | ||
en: { | ||
label: "English", | ||
}, | ||
}, | ||
}, | ||
plugins: ["alumni"], | ||
themeConfig: { | ||
announcementBar: { | ||
id: "join_us", | ||
content: | ||
'<b>🎉 C社2023届开始招新啦</b>! <a target="_blank" rel="noopener noreferrer" href="https://mp.weixin.qq.com/s/K-qGy7XPybCxq0WBl9DV0A">了解更多</a>', | ||
backgroundColor: "#22292f", | ||
textColor: "#FFFFFF", | ||
isCloseable: false, | ||
}, | ||
navbar: { | ||
title: "世外信息化社", | ||
logo: { | ||
alt: "Computerization Logo", | ||
src: "img/logo.svg", | ||
srcDark: "img/logo.svg", | ||
}, | ||
|
||
items: [ | ||
{ to: "alumni", label: "往届成员", position: "left" }, | ||
{ to: "docs/about-us", label: "文档", position: "left" }, | ||
{ to: "blog", label: "博客", position: "left" }, | ||
{ | ||
type: "localeDropdown", | ||
position: "right", | ||
module.exports = async function createConfigAsync() { | ||
return { | ||
title: "Computerization", | ||
tagline: "C社 << Computerization << 世外信息化社", | ||
url: "https://computerization.io", | ||
baseUrl: "/", | ||
favicon: "img/favicon/favicon.ico", | ||
trailingSlash: true, | ||
i18n: { | ||
defaultLocale: "zh-Hans", | ||
locales: ["zh-Hans", "en"], | ||
localeConfigs: { | ||
"zh-Hans": { | ||
label: "中文(简体)", | ||
}, | ||
{ | ||
href: "https://github.com/Computerization", | ||
label: "GitHub", | ||
position: "right", | ||
en: { | ||
label: "English", | ||
}, | ||
], | ||
}, | ||
}, | ||
footer: { | ||
style: "dark", | ||
links: [ | ||
{ | ||
title: "文档", | ||
items: [ | ||
{ | ||
label: "文档", | ||
to: "docs/about-us", | ||
}, | ||
], | ||
}, | ||
{ | ||
title: "社区", | ||
items: [ | ||
{ | ||
label: "GitHub", | ||
href: "https://github.com/Computerization", | ||
}, | ||
], | ||
plugins: ["alumni"], | ||
themeConfig: { | ||
announcementBar: { | ||
id: "join_us", | ||
content: | ||
'<b>🎉 C社2023届开始招新啦</b>! <a target="_blank" rel="noopener noreferrer" href="https://mp.weixin.qq.com/s/K-qGy7XPybCxq0WBl9DV0A">了解更多</a>', | ||
backgroundColor: "#22292f", | ||
textColor: "#FFFFFF", | ||
isCloseable: false, | ||
}, | ||
navbar: { | ||
title: "世外信息化社", | ||
logo: { | ||
alt: "Computerization Logo", | ||
src: "img/logo.svg", | ||
srcDark: "img/logo.svg", | ||
}, | ||
{ | ||
title: "社交", | ||
items: [ | ||
{ | ||
label: "博客", | ||
to: "blog", | ||
}, | ||
], | ||
|
||
items: [ | ||
{ to: "alumni", label: "往届成员", position: "left" }, | ||
{ to: "docs/about-us", label: "文档", position: "left" }, | ||
{ to: "blog", label: "博客", position: "left" }, | ||
{ | ||
type: "localeDropdown", | ||
position: "right", | ||
}, | ||
{ | ||
href: "https://github.com/Computerization", | ||
label: "GitHub", | ||
position: "right", | ||
}, | ||
], | ||
}, | ||
footer: { | ||
style: "dark", | ||
links: [ | ||
{ | ||
title: "文档", | ||
items: [ | ||
{ | ||
label: "文档", | ||
to: "docs/about-us", | ||
}, | ||
], | ||
}, | ||
{ | ||
title: "社区", | ||
items: [ | ||
{ | ||
label: "GitHub", | ||
href: "https://github.com/Computerization", | ||
}, | ||
], | ||
}, | ||
{ | ||
title: "社交", | ||
items: [ | ||
{ | ||
label: "博客", | ||
to: "blog", | ||
}, | ||
], | ||
}, | ||
], | ||
logo: { | ||
alt: "Computerization Logo", | ||
src: "img/logo.svg", | ||
}, | ||
], | ||
logo: { | ||
alt: "Computerization Logo", | ||
src: "img/logo.svg", | ||
copyright: `世外信息化社 © ${new Date().getFullYear()} 版权所有. 使用 Docusaurus 搭建.`, | ||
}, | ||
prism: { | ||
theme: githubTheme, | ||
darkTheme: draculaTheme, | ||
}, | ||
copyright: `世外信息化社 © ${new Date().getFullYear()} 版权所有. 使用 Docusaurus 搭建.`, | ||
}, | ||
prism: { | ||
theme: githubTheme, | ||
darkTheme: draculaTheme, | ||
}, | ||
}, | ||
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", | ||
}, | ||
], | ||
presets: [ | ||
[ | ||
"classic", | ||
stylesheets: [ | ||
{ | ||
docs: { | ||
sidebarPath: require.resolve("./sidebars.js"), | ||
remarkPlugins: [remarkMath], | ||
rehypePlugins: [[rehypeKatex, { strict: false }]], | ||
}, | ||
blog: { | ||
remarkPlugins: [remarkMath], | ||
rehypePlugins: [[rehypeKatex, { strict: false }]], | ||
}, | ||
theme: { | ||
customCss: require.resolve("./src/css/custom.css"), | ||
}, | ||
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", | ||
}, | ||
], | ||
], | ||
presets: [ | ||
[ | ||
"classic", | ||
{ | ||
docs: { | ||
sidebarPath: require.resolve("./sidebars.js"), | ||
remarkPlugins: [(await import("remark-math")).default], | ||
rehypePlugins: [ | ||
(await import("rehype-katex")).default, | ||
{ strict: false }, | ||
], | ||
}, | ||
blog: { | ||
remarkPlugins: [(await import("remark-math")).default], | ||
rehypePlugins: [ | ||
(await import("rehype-katex")).default, | ||
{ strict: false }, | ||
], | ||
}, | ||
theme: { | ||
customCss: require.resolve("./src/css/custom.css"), | ||
}, | ||
}, | ||
], | ||
], | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.