2023-07-05 16:43:45 +08:00
|
|
|
|
const lightCodeTheme = require('prism-react-renderer/themes/github');
|
|
|
|
|
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
|
2023-07-17 10:06:24 +08:00
|
|
|
|
import("@easyops-cn/docusaurus-search-local").PluginOptions;
|
2023-03-15 10:38:43 +08:00
|
|
|
|
|
|
|
|
|
/** @type {import('@docusaurus/types').DocusaurusConfig} */
|
|
|
|
|
module.exports = {
|
2023-07-05 16:43:45 +08:00
|
|
|
|
title: 'gitlink',
|
|
|
|
|
tagline:'gitlink帮助中心',
|
2023-07-05 14:43:25 +08:00
|
|
|
|
url: 'https://boxyhq.com',
|
2023-03-15 10:38:43 +08:00
|
|
|
|
baseUrl: '/',
|
2023-07-05 16:43:45 +08:00
|
|
|
|
onBrokenLinks: 'ignore',
|
|
|
|
|
onBrokenMarkdownLinks: 'ignore',
|
|
|
|
|
favicon: 'img/icon.ico',
|
|
|
|
|
organizationName: 'luffyZh', // Usually your GitHub org/user name.
|
|
|
|
|
projectName: 'docusaurus-luffyzh-website', // Usually your repo name.
|
2023-07-05 14:43:25 +08:00
|
|
|
|
scripts: [],
|
|
|
|
|
// stylesheets: ['styles/dark-mode.css'],
|
2023-03-15 10:38:43 +08:00
|
|
|
|
themeConfig: {
|
2023-07-05 14:43:25 +08:00
|
|
|
|
prism: {
|
2023-07-05 16:43:45 +08:00
|
|
|
|
theme: lightCodeTheme,
|
|
|
|
|
darkTheme: darkCodeTheme,
|
2023-07-05 14:43:25 +08:00
|
|
|
|
},
|
|
|
|
|
zoom: {
|
|
|
|
|
selector: '.markdown :not(em) > img',
|
|
|
|
|
config: {
|
|
|
|
|
background: {
|
|
|
|
|
light: 'rgb(255, 255, 255)',
|
|
|
|
|
dark: 'rgb(50, 50, 50)',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
2023-06-30 14:25:37 +08:00
|
|
|
|
colorMode: {
|
|
|
|
|
defaultMode: 'light',
|
|
|
|
|
disableSwitch: false,
|
|
|
|
|
respectPrefersColorScheme: true,
|
|
|
|
|
},
|
2023-03-15 10:38:43 +08:00
|
|
|
|
navbar: {
|
2023-07-05 16:43:45 +08:00
|
|
|
|
style:"dark",
|
|
|
|
|
title: '',
|
2023-03-15 10:38:43 +08:00
|
|
|
|
logo: {
|
2023-07-05 16:43:45 +08:00
|
|
|
|
// width: '32px',
|
|
|
|
|
// height: '32px',
|
|
|
|
|
alt: 'gitlink',
|
|
|
|
|
src: 'img/gitlink.png'
|
|
|
|
|
// srcDark: 'img/logo-dark.png',
|
2023-03-15 10:38:43 +08:00
|
|
|
|
},
|
|
|
|
|
items: [
|
2023-07-05 16:43:45 +08:00
|
|
|
|
{
|
|
|
|
|
type: 'doc',
|
|
|
|
|
docId: 'intro',
|
|
|
|
|
position: 'left',
|
|
|
|
|
label: '帮助中心'
|
2023-07-05 14:43:25 +08:00
|
|
|
|
},
|
2023-07-05 16:43:45 +08:00
|
|
|
|
// {
|
|
|
|
|
// href: 'https://github.com/boxyhq',
|
|
|
|
|
// position: 'right',
|
|
|
|
|
// className: 'header-github-link',
|
|
|
|
|
// },
|
2023-07-05 14:43:25 +08:00
|
|
|
|
],
|
2023-03-15 10:38:43 +08:00
|
|
|
|
},
|
|
|
|
|
footer: {
|
|
|
|
|
style: 'dark',
|
2023-07-05 16:43:45 +08:00
|
|
|
|
logo:{
|
|
|
|
|
src:"img/gitlink.png"
|
|
|
|
|
},
|
2023-03-15 10:38:43 +08:00
|
|
|
|
links: [
|
|
|
|
|
{
|
2023-07-05 16:43:45 +08:00
|
|
|
|
title: '社区',
|
2023-03-15 10:38:43 +08:00
|
|
|
|
items: [
|
|
|
|
|
{
|
2023-07-05 16:43:45 +08:00
|
|
|
|
label: '网站首页',
|
|
|
|
|
to: 'https://www.gitlink.org.cn',
|
2023-06-28 18:19:43 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2023-07-05 16:43:45 +08:00
|
|
|
|
label: '关于我们',
|
|
|
|
|
to: 'https://www.gitlink.org.cn/aboutus',
|
2023-06-28 18:19:43 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2023-07-05 16:43:45 +08:00
|
|
|
|
label: '教学实践',
|
|
|
|
|
to: 'https://www.gitlink.org.cn/educoder',
|
2023-06-28 18:19:43 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2023-07-05 16:43:45 +08:00
|
|
|
|
label: '合作伙伴',
|
|
|
|
|
to: 'https://forum.trustie.net/forums/5030/detail',
|
2023-03-15 10:38:43 +08:00
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
2023-07-05 16:43:45 +08:00
|
|
|
|
title: '支持与服务',
|
2023-03-15 10:38:43 +08:00
|
|
|
|
items: [
|
|
|
|
|
{
|
2023-07-05 16:43:45 +08:00
|
|
|
|
label: 'API文档',
|
|
|
|
|
to: 'https://forgeplus.trustie.net/docs/api',
|
2023-07-05 14:43:25 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2023-07-05 16:43:45 +08:00
|
|
|
|
label: 'Git常用命令',
|
|
|
|
|
to: 'https://git-scm.com',
|
2023-06-28 18:19:43 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2023-07-05 16:43:45 +08:00
|
|
|
|
label: '引擎使用手册',
|
|
|
|
|
to: 'https://forum.gitlink.org.cn/forums/7487/detail',
|
2023-06-28 18:19:43 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2023-07-05 16:43:45 +08:00
|
|
|
|
label: '服务协议',
|
|
|
|
|
to: 'https://forum.trustie.net/forums/5029/detail',
|
2023-03-15 10:38:43 +08:00
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
2023-07-05 16:43:45 +08:00
|
|
|
|
title: '加入我们',
|
2023-03-15 10:38:43 +08:00
|
|
|
|
items: [
|
|
|
|
|
{
|
2023-07-05 16:43:45 +08:00
|
|
|
|
label: '官网邮箱:gitlink@ccf.org.cn',
|
|
|
|
|
to:"https://www.gitlink.org.cn"
|
2023-03-15 10:38:43 +08:00
|
|
|
|
},
|
2023-06-29 10:18:19 +08:00
|
|
|
|
{
|
2023-07-05 16:43:45 +08:00
|
|
|
|
label:'QQ群',
|
|
|
|
|
to:'https://www.gitlink.org.cn'
|
2023-06-29 10:18:19 +08:00
|
|
|
|
},
|
2023-07-05 16:43:45 +08:00
|
|
|
|
{
|
|
|
|
|
label:'公众号',
|
|
|
|
|
to:'https://www.gitlink.org.cn'
|
|
|
|
|
}
|
2023-03-15 10:38:43 +08:00
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
],
|
2023-07-05 16:43:45 +08:00
|
|
|
|
copyright: `<p>©Copyright ${new Date().getFullYear()} CCF 开源发展委员会</p><p>Powered by Trustie& IntelliDE 京ICP备13000930号</p>`,
|
2023-03-15 10:38:43 +08:00
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
presets: [
|
|
|
|
|
[
|
|
|
|
|
'@docusaurus/preset-classic',
|
|
|
|
|
{
|
|
|
|
|
docs: {
|
2023-07-05 16:43:45 +08:00
|
|
|
|
// sidebarPath: require.resolve('./sidebars.js'),
|
|
|
|
|
editUrl:'https://www.gitlink.org.cn/Gitlink/gitlink_help_center/tree/master/',
|
|
|
|
|
routeBasePath: "/",
|
2023-07-05 14:43:25 +08:00
|
|
|
|
},
|
2023-03-15 10:38:43 +08:00
|
|
|
|
theme: {
|
|
|
|
|
customCss: require.resolve('./src/css/custom.css'),
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
],
|
2023-07-17 10:06:24 +08:00
|
|
|
|
themes: [
|
|
|
|
|
// ... Your other themes.
|
|
|
|
|
[
|
|
|
|
|
require.resolve("@easyops-cn/docusaurus-search-local"),
|
|
|
|
|
{
|
|
|
|
|
// ... Your options.
|
|
|
|
|
// `hashed` is recommended as long-term-cache of index file is possible.
|
|
|
|
|
hashed: true,
|
|
|
|
|
language: ["en", "zh"],
|
|
|
|
|
highlightSearchTermsOnTargetPage: true,
|
2023-07-20 17:24:09 +08:00
|
|
|
|
blogRouteBasePath: "/",
|
2023-07-17 10:06:24 +08:00
|
|
|
|
explicitSearchResultPath: true,
|
|
|
|
|
// For Docs using Chinese, The `language` is recommended to set to:
|
|
|
|
|
// ```
|
|
|
|
|
// language: ["en", "zh"],
|
|
|
|
|
// ```
|
|
|
|
|
},
|
|
|
|
|
],
|
2023-06-28 18:19:43 +08:00
|
|
|
|
],
|
2023-07-05 16:43:45 +08:00
|
|
|
|
i18n: {
|
|
|
|
|
defaultLocale: 'zh-cn',
|
|
|
|
|
locales: ['zh-cn'],
|
|
|
|
|
},
|
2023-03-15 10:38:43 +08:00
|
|
|
|
};
|