-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathdocusaurus.config.js
121 lines (121 loc) · 3.25 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
const isI18nStaging = process.env.I18N_STAGING === 'true';
const math = require('remark-math');
const katex = require('rehype-katex');
/** @type {import('@docusaurus/types').DocusaurusConfig} */
module.exports = {
title: 'Fortran 从入门到实践',
tagline: '从零开始你的 Fortran 之旅',
url: 'https://fortran-tutorial.lisz.me',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico',
organizationName: 'zhonger', // Usually your GitHub org/user name.
projectName: 'fortran-tutorial', // Usually your repo name.
trailingSlash: false,
stylesheets: [
{
href: 'https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.css',
type: 'text/css',
integrity:
'sha384-AfEj0r4/OFrOo5t7NnNe46zW/tFgW6x/bCJG8FqQCEo3+Aro6EYUG4+cU+KJWu/X',
crossorigin: 'anonymous',
},
],
themeConfig: {
metadata: [{name: 'keywords', content: 'fortran, tutorial, quick'}],
navbar: {
title: 'Fortran 从入门到实践',
logo: {
alt: 'My Site Logo',
src: 'img/logo.svg',
},
items: [
{
type: 'doc',
docId: 'intro',
position: 'left',
label: '入门实践',
},
{to: '/blog', label: '博客', position: 'left'},
{
href: 'https://github.com/zhonger/fortran-tutorial',
'aria-label': 'GitHub',
className: 'header-github-link',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: '文档',
items: [
{
label: '开始页',
to: '/docs/intro',
},
],
},
{
title: '更多',
items: [
{
label: 'Blog',
to: '/blog',
},
{
label: 'GitHub',
href: 'https://github.com/zhonger/fortran-tutorial',
},
],
},
],
copyright: `版权所有 © ${new Date().getFullYear()} <a href="https://lisz.me">zhonger</a>, 此网站使用 <a href="https://docusaurus.io/">Docusaurus</a> 构建。 `,
},
prism: {
additionalLanguages: ['fortran'],
theme: require('prism-react-renderer/themes/github'),
},
docs: {
sidebar: {
hideable: true,
}
},
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo.
editUrl:
'https://github.com/zhonger/fortran-tutorial/edit/master/',
remarkPlugins: [math],
rehypePlugins: [katex],
showLastUpdateTime: true,
showLastUpdateAuthor: true,
},
blog: {
showReadingTime: true,
// Please change this to your repo.
editUrl:
'https://github.com/zhonger/fortran-tutorial/edit/master/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
gtag: {
trackingID: 'G-ZL1C0Z88NL',
anonymizeIP: true,
},
sitemap: {
changefreq: 'weekly',
priority: 0.5,
},
},
],
],
};