1
0
wiki/docusaurus.config.js

76 lines
2.0 KiB
JavaScript
Raw Normal View History

2022-01-12 15:43:01 +08:00
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
/** @type {import('@docusaurus/types').Config} */
const config = {
title: '7Wate',
tagline: 'For Freedom',
url: 'https://wiki.7wate.com',
2022-01-12 15:43:01 +08:00
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico',
organizationName: '7wate', // Usually your GitHub org/user name.
projectName: 'wiki', // Usually your repo name.
2022-01-12 15:43:01 +08:00
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo.
editUrl: 'https://git.7wate.com/zhouzhongping/wiki/src/branch/master',
routeBasePath: '/',
2022-01-12 15:43:01 +08:00
},
blog: {
showReadingTime: true,
// Please change this to your repo.
editUrl:
'https://git.7wate.com/zhouzhongping/wiki/src/branch/master',
2022-01-12 15:43:01 +08:00
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
navbar: {
title: '7Wate`s Wiki',
2022-01-12 15:43:01 +08:00
items: [
{
type: 'doc',
docId: 'home',
position: 'right',
label: '知识库',
2022-01-12 15:43:01 +08:00
},
{to: '/blog', label: '博客', position: 'right'},
2022-01-12 15:43:01 +08:00
{
href: 'https://git.7wate.com/zhouzhongping/wiki',
label: 'Gitea',
2022-01-12 15:43:01 +08:00
position: 'right',
},
],
},
footer: {
style: 'dark',
copyright: `Copyright © ${new Date().getFullYear()} 7Wate, Inc. Built with Docusaurus.`,
2022-01-12 15:43:01 +08:00
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
2022-01-12 15:43:01 +08:00
}),
};
module.exports = config;