Repository navigation
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
83 lines (81 loc) · 2.3 KB
/
Copy pathdocusaurus.config.js
File metadata and controls
83 lines (81 loc) · 2.3 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
/* eslint-disable */
const plugins = require('./src/config/plugins');
const navbarItem = require('./src/config/navbarItem');
const isDev = process.env.NODE_ENV === 'development';
const pageRef = require('./src/plugins/pageRef');
const pageOptions = {
sidebarCollapsible: false,
// editUrl: 'https://github.com/pateln123/digital-support-notes/tree/main',
// showLastUpdateAuthor: true,
// showLastUpdateTime: true,
beforeDefaultRemarkPlugins: [pageRef],
};
/** @type {import('@docusaurus/types').DocusaurusConfig} */
module.exports = {
title: '小狮子前端',
tagline: 'An awesome textbook alternative, that you can contribute to! 🚀',
url: 'https://docs.yangchaoyi.vip',
baseUrl: '/',
onBrokenLinks: 'warn',
onBrokenMarkdownLinks: 'warn',
favicon: 'favicon.ico',
organizationName: 'LionCubFrontEnd', // Usually your GitHub org/user name.
projectName: 'docs', // Usually your repo name.
clientModules: [require.resolve('./src/css/tailwind.css')],
themeConfig: {
announcementBar: {
id: 'beta', // Any value that will identify this message.
content: '❤欢迎来到小狮子前端编程成长圈,学如逆水行舟,不进则退~',
backgroundColor: '#fafbfc', // Defaults to `#fff`.
textColor: '#091E42', // Defaults to `#000`.
isCloseable: true, // Defaults to `true`.
},
colorMode: {
defaultMode: 'light',
disableSwitch: false,
},
navbar: {
title: '小狮子前端',
hideOnScroll: false,
logo: {
alt: '小狮子前端',
src: '/img/lion-logo.png',
},
items: navbarItem,
},
hideableSidebar: true,
prism: {
additionalLanguages: [
'dart',
'ruby',
'groovy',
'kotlin',
'java',
'swift',
'objectivec',
],
theme: require('prism-react-renderer/themes/vsDark'),
},
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
path: 'docs/main',
id: 'default',
routeBasePath: 'docs',
sidebarPath: require.resolve('./sidebars/sidebars-home.js'),
sidebarCollapsible: false,
...pageOptions,
},
blog: false,
sitemap: {
changefreq: "daily",
priority: 0.5,
},
},
],
],
plugins: plugins,
};