2023-03-15 10:38:43 +08:00
|
|
|
const lightCodeTheme = require('prism-react-renderer/themes/github');
|
|
|
|
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
|
|
|
|
|
|
|
|
/** @type {import('@docusaurus/types').DocusaurusConfig} */
|
|
|
|
module.exports = {
|
2023-03-15 13:56:22 +08:00
|
|
|
title: 'gitlink',
|
|
|
|
tagline: 'gitlink帮助中心',
|
2023-03-15 10:38:43 +08:00
|
|
|
onBrokenLinks: 'throw',
|
|
|
|
onBrokenMarkdownLinks: 'warn',
|
2023-03-15 13:56:22 +08:00
|
|
|
favicon: 'img/icon.ico',
|
2023-03-15 10:38:43 +08:00
|
|
|
url: 'https://luffyzh.github.io',
|
|
|
|
baseUrl: '/',
|
|
|
|
organizationName: 'luffyZh', // Usually your GitHub org/user name.
|
|
|
|
projectName: 'docusaurus-luffyzh-website', // Usually your repo name.
|
|
|
|
themeConfig: {
|
|
|
|
algolia: {
|
|
|
|
apiKey: '25626fae796133dc1e734c6bcaaeac3c',
|
|
|
|
indexName: 'docsearch',
|
|
|
|
},
|
|
|
|
navbar: {
|
2023-03-15 13:56:22 +08:00
|
|
|
title: '',
|
2023-03-15 10:38:43 +08:00
|
|
|
logo: {
|
2023-03-15 13:56:22 +08:00
|
|
|
alt: 'gitlink',
|
|
|
|
src: 'img/gitlink.png',
|
2023-03-15 10:38:43 +08:00
|
|
|
},
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
type: 'doc',
|
|
|
|
docId: 'intro',
|
|
|
|
position: 'left',
|
2023-03-15 13:56:22 +08:00
|
|
|
label: '帮助中心',
|
2023-03-15 10:38:43 +08:00
|
|
|
},
|
2023-03-15 13:56:22 +08:00
|
|
|
// {
|
|
|
|
// position: 'left',
|
|
|
|
// to: '/blog',
|
|
|
|
// label: '博客',
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// href: 'https://github.com/luffyZh/docusaurus-luffyzh-website',
|
|
|
|
// label: 'GitHub',
|
|
|
|
// position: 'right',
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// type: 'localeDropdown',
|
|
|
|
// position: 'right',
|
|
|
|
// },
|
2023-03-15 10:38:43 +08:00
|
|
|
],
|
|
|
|
},
|
|
|
|
footer: {
|
|
|
|
style: 'dark',
|
|
|
|
links: [
|
|
|
|
{
|
|
|
|
title: 'Docs',
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
label: '文档',
|
|
|
|
to: '/docs/intro',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'Blog',
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
label: '博客',
|
|
|
|
to: '/blog',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: '更多',
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
label: '掘金',
|
|
|
|
href: 'https://juejin.cn/user/96412752681079'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'GitHub',
|
|
|
|
href: 'https://github.com/luffzh/docusaurus-luffyzh-website',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
2023-03-23 11:33:46 +08:00
|
|
|
copyright: `©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号`,
|
2023-03-15 10:38:43 +08:00
|
|
|
},
|
|
|
|
prism: {
|
|
|
|
theme: lightCodeTheme,
|
|
|
|
darkTheme: darkCodeTheme,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
presets: [
|
|
|
|
[
|
|
|
|
'@docusaurus/preset-classic',
|
|
|
|
{
|
|
|
|
docs: {
|
|
|
|
sidebarPath: require.resolve('./sidebars.js'),
|
|
|
|
// Please change this to your repo.
|
|
|
|
editUrl:
|
|
|
|
'https://github.com/facebook/docusaurus/edit/master/website/',
|
|
|
|
},
|
|
|
|
blog: {
|
|
|
|
showReadingTime: true,
|
|
|
|
// Please change this to your repo.
|
|
|
|
editUrl:
|
|
|
|
'https://github.com/facebook/docusaurus/edit/master/website/blog/',
|
|
|
|
},
|
|
|
|
theme: {
|
|
|
|
customCss: require.resolve('./src/css/custom.css'),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
2023-03-23 11:33:46 +08:00
|
|
|
i18n: {
|
|
|
|
defaultLocale: 'zh-cn',
|
|
|
|
locales: ['en', 'zh-cn'],
|
|
|
|
},
|
2023-03-15 10:38:43 +08:00
|
|
|
};
|