1- const remarkMath = require ( ' remark-math' ) ;
2- const rehypeKatex = require ( ' rehype-katex' ) ;
3- const githubTheme = require ( ' prism-react-renderer/themes/github' ) ;
4- const draculaTheme = require ( ' prism-react-renderer/themes/dracula' ) ;
1+ const remarkMath = require ( " remark-math" ) ;
2+ const rehypeKatex = require ( " rehype-katex" ) ;
3+ const githubTheme = require ( " prism-react-renderer/themes/github" ) ;
4+ const draculaTheme = require ( " prism-react-renderer/themes/dracula" ) ;
55
66module . exports = {
7- title : ' Computerization' ,
8- tagline : ' C社 << Computerization << 世外信息化社' ,
9- url : ' https://computerization.io' ,
10- baseUrl : '/' ,
11- favicon : ' img/favicon/favicon.ico' ,
7+ title : " Computerization" ,
8+ tagline : " C社 << Computerization << 世外信息化社" ,
9+ url : " https://computerization.io" ,
10+ baseUrl : "/" ,
11+ favicon : " img/favicon/favicon.ico" ,
1212 trailingSlash : true ,
1313 i18n : {
14- defaultLocale : ' zh-Hans' ,
15- locales : [ ' zh-Hans' , 'en' ] ,
14+ defaultLocale : " zh-Hans" ,
15+ locales : [ " zh-Hans" , "en" ] ,
1616 localeConfigs : {
17- ' zh-Hans' : {
18- label : ' 中文(简体)' ,
17+ " zh-Hans" : {
18+ label : " 中文(简体)" ,
1919 } ,
2020 en : {
21- label : ' English' ,
21+ label : " English" ,
2222 } ,
2323 } ,
2424 } ,
25- plugins : [ ' alumni' ] ,
25+ plugins : [ " alumni" ] ,
2626 themeConfig : {
2727 navbar : {
28- title : ' 世外信息化社' ,
28+ title : " 世外信息化社" ,
2929 logo : {
30- alt : ' Computerization Logo' ,
31- src : ' img/logo.svg' ,
32- srcDark : ' img/logo.svg' ,
30+ alt : " Computerization Logo" ,
31+ src : " img/logo.svg" ,
32+ srcDark : " img/logo.svg" ,
3333 } ,
3434 items : [
35- { to : ' alumni' , label : ' 往届成员' , position : ' left' } ,
36- { to : ' docs/about-us' , label : '文档' , position : ' left' } ,
37- { to : ' blog' , label : '博客' , position : ' left' } ,
35+ { to : " alumni" , label : " 往届成员" , position : " left" } ,
36+ { to : " docs/about-us" , label : "文档" , position : " left" } ,
37+ { to : " blog" , label : "博客" , position : " left" } ,
3838 {
39- type : ' localeDropdown' ,
40- position : ' right' ,
39+ type : " localeDropdown" ,
40+ position : " right" ,
4141 } ,
4242 {
43- href : ' https://github.com/Computerization' ,
44- label : ' GitHub' ,
45- position : ' right' ,
43+ href : " https://github.com/Computerization" ,
44+ label : " GitHub" ,
45+ position : " right" ,
4646 } ,
4747 ] ,
4848 } ,
4949 footer : {
50- style : ' dark' ,
50+ style : " dark" ,
5151 links : [
5252 {
53- title : '文档' ,
53+ title : "文档" ,
5454 items : [
5555 {
56- label : '文档' ,
57- to : ' docs/about-us' ,
56+ label : "文档" ,
57+ to : " docs/about-us" ,
5858 } ,
5959 ] ,
6060 } ,
6161 {
62- title : '社区' ,
62+ title : "社区" ,
6363 items : [
6464 {
65- label : ' GitHub' ,
66- href : ' https://github.com/Computerization' ,
65+ label : " GitHub" ,
66+ href : " https://github.com/Computerization" ,
6767 } ,
6868 ] ,
6969 } ,
7070 {
71- title : '社交' ,
71+ title : "社交" ,
7272 items : [
7373 {
74- label : '博客' ,
75- to : ' blog' ,
74+ label : "博客" ,
75+ to : " blog" ,
7676 } ,
7777 ] ,
7878 } ,
7979 ] ,
8080 logo : {
81- alt : ' Computerization Logo' ,
82- src : ' img/logo.svg' ,
81+ alt : " Computerization Logo" ,
82+ src : " img/logo.svg" ,
8383 } ,
8484 copyright : `世外信息化社 © ${ new Date ( ) . getFullYear ( ) } 版权所有. 使用 Docusaurus 搭建.` ,
8585 } ,
@@ -90,28 +90,28 @@ module.exports = {
9090 } ,
9191 stylesheets : [
9292 {
93- href : ' https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.css' ,
94- type : ' text/css' ,
93+ href : " https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.css" ,
94+ type : " text/css" ,
9595 integrity :
96- ' sha384-AfEj0r4/OFrOo5t7NnNe46zW/tFgW6x/bCJG8FqQCEo3+Aro6EYUG4+cU+KJWu/X' ,
97- crossorigin : ' anonymous' ,
96+ " sha384-AfEj0r4/OFrOo5t7NnNe46zW/tFgW6x/bCJG8FqQCEo3+Aro6EYUG4+cU+KJWu/X" ,
97+ crossorigin : " anonymous" ,
9898 } ,
9999 ] ,
100100 scripts : [
101101 {
102- src : ' https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.js' ,
102+ src : " https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.js" ,
103103 integrity :
104- ' sha384-g7c+Jr9ZivxKLnZTDUhnkOnsh30B4H0rpLUpJ4jAIKs4fnJI+sEnkvrMWph2EDg4' ,
105- crossorigin : ' anonymous' ,
104+ " sha384-g7c+Jr9ZivxKLnZTDUhnkOnsh30B4H0rpLUpJ4jAIKs4fnJI+sEnkvrMWph2EDg4" ,
105+ crossorigin : " anonymous" ,
106106 defer : true ,
107107 } ,
108108 ] ,
109109 presets : [
110110 [
111- ' classic' ,
111+ " classic" ,
112112 {
113113 docs : {
114- sidebarPath : require . resolve ( ' ./sidebars.js' ) ,
114+ sidebarPath : require . resolve ( " ./sidebars.js" ) ,
115115 remarkPlugins : [ remarkMath ] ,
116116 rehypePlugins : [ [ rehypeKatex , { strict : false } ] ] ,
117117 } ,
@@ -120,7 +120,7 @@ module.exports = {
120120 rehypePlugins : [ [ rehypeKatex , { strict : false } ] ] ,
121121 } ,
122122 theme : {
123- customCss : require . resolve ( ' ./src/css/custom.css' ) ,
123+ customCss : require . resolve ( " ./src/css/custom.css" ) ,
124124 } ,
125125 } ,
126126 ] ,
0 commit comments