@ -6,215 +6,215 @@ const darkCodeTheme = require('prism-react-renderer/themes/dracula');
/** @type {import('@docusaurus/types').Config} */
/** @type {import('@docusaurus/types').Config} */
const config = {
const config = {
title : 'Hippo4j' ,
title : 'Hippo4j' ,
tagline : '动态可观测线程池框架,为业务系统提高线上运行保障能力' ,
tagline : '动态可观测线程池框架,为业务系统提高线上运行保障能力' ,
url : 'https://hippo4j.cn' ,
url : 'https://hippo4j.cn' ,
baseUrl : '/' ,
baseUrl : '/' ,
onBrokenLinks : 'throw' ,
onBrokenLinks : 'throw' ,
onBrokenMarkdownLinks : 'warn' ,
onBrokenMarkdownLinks : 'warn' ,
favicon : 'img/hippo4j_favicon.ico' ,
favicon : 'img/hippo4j_favicon.ico' ,
// GitHub pages deployment config.
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
// If you aren't using GitHub pages, you don't need these.
organizationName : 'hippo4j' , // Usually your GitHub org/user name.
organizationName : 'hippo4j' , // Usually your GitHub org/user name.
projectName : 'hippo4j.github.io' , // Usually your repo name.
projectName : 'hippo4j.github.io' , // Usually your repo name.
deploymentBranch : "main" ,
deploymentBranch : 'main' ,
// Even if you don't use internalization, you can use this field to set useful
// Even if you don't use internalization, you can use this field to set useful
// metadata like html lang. For example, if your site is Chinese, you may want
// metadata like html lang. For example, if your site is Chinese, you may want
// to replace "en" with "zh-Hans".
// to replace "en" with "zh-Hans".
i18n : {
i18n : {
defaultLocale : "en" ,
defaultLocale : 'en' ,
locales : [ "en" , "zh" ] ,
locales : [ 'en' , 'zh' ] ,
localeConfigs : {
localeConfigs : {
en : {
en : {
label : "English" ,
label : 'English' ,
direction : "ltr" ,
direction : 'ltr' ,
} ,
} ,
zh : {
zh : {
label : "简体中文" ,
label : '简体中文' ,
direction : "ltr" ,
direction : 'ltr' ,
} ,
} ,
} ,
} ,
} ,
} ,
presets : [
presets : [
[
[
'classic' ,
'classic' ,
/** @type {import('@docusaurus/preset-classic').Options} */
/** @type {import('@docusaurus/preset-classic').Options} */
( {
( {
docs : {
docs : {
sidebarPath : require . resolve ( './sidebars.js' ) ,
sidebarPath : require . resolve ( './sidebars.js' ) ,
// Please change this to your repo.
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
// Remove this to remove the "edit this page" links.
sidebarCollapsed : false ,
sidebarCollapsed : false ,
/*editUrl: 'https://github.com/longtai-cn',*/
/*editUrl: 'https://github.com/longtai-cn',*/
} ,
} ,
blog : {
blog : {
showReadingTime : true ,
showReadingTime : true ,
// Please change this to your repo.
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
// Remove this to remove the "edit this page" links.
editUrl :
editUrl :
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/' ,
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/' ,
} ,
} ,
theme : {
theme : {
customCss : require . resolve ( './src/css/custom.css' ) ,
customCss : require . resolve ( './src/css/custom.css' ) ,
} ,
} ,
} ) ,
} ) ,
] ,
] ,
] ,
] ,
plugins : [
[
plugins : [
"@docusaurus/plugin-content-docs" ,
[
{
'@docusaurus/plugin-content-docs' ,
id : "community" ,
{
path : "community" ,
id : 'community' ,
routeBasePath : "community" ,
path : 'community' ,
sidebarPath : require . resolve ( "./sidebarsCommunity.js" ) ,
routeBasePath : 'community' ,
} ,
sidebarPath : require . resolve ( './sidebarsCommunity.js' ) ,
] ,
} ,
] ,
] ,
] ,
themeConfig :
themeConfig :
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
( {
( {
autoCollapseCategories : true ,
autoCollapseCategories : true ,
announcementBar : {
announcementBar : {
id : 'announcementBar-1' , // Increment on change
id : 'announcementBar-1' , // Increment on change
// content: `⭐️ If you like hippo4j, give it a star on <a target="_blank" rel="noopener noreferrer" href="https://gitee.com/mabaiwancn/hippo4j">Gitee</a>, thanks.`,
// content: `⭐️ If you like hippo4j, give it a star on <a target="_blank" rel="noopener noreferrer" href="https://gitee.com/mabaiwancn/hippo4j">Gitee</a>, thanks.`,
// content: `⭐️ 如果您喜欢 hippo4j, 请在 <a target="_blank" rel="noopener noreferrer" href="https://gitee.com/mabaiwancn/hippo4j">Gitee</a> 和 <a target="_blank" rel="noopener noreferrer" href="https://github.com/opengoofy/hippo4j">GitHub</a> 上给它一个 star, 谢谢! `,
// content: `⭐️ 如果您喜欢 hippo4j, 请在 <a target="_blank" rel="noopener noreferrer" href="https://gitee.com/mabaiwancn/hippo4j">Gitee</a> 和 <a target="_blank" rel="noopener noreferrer" href="https://github.com/opengoofy/hippo4j">GitHub</a> 上给它一个 star, 谢谢! `,
content : ` ⭐️ 开源不易, hippo4j 如果对您工作 有帮助,请在 <a target="_blank" rel="noopener noreferrer" href="https://github.com/opengoofy/hippo4j">GitHub</a> 上给它一个 🌟` ,
content : ` ⭐️ 开源不易, 如果 Hippo4j 对您 有帮助,请在 <a target="_blank" rel="noopener noreferrer" href="https://github.com/opengoofy/hippo4j">GitHub</a> 上给它一个 Star 🌟` ,
// content: `<a target="_blank" rel="noopener noreferrer" href="https://xiaomage.info/knowledge-planet/">👉 《小马哥的代码实战课》官方知识星球来啦!!!</a>`,
// content: `<a target="_blank" rel="noopener noreferrer" href="https://xiaomage.info/knowledge-planet/">👉 《小马哥的代码实战课》官方知识星球来啦!!!</a>`,
} ,
} ,
navbar : {
navbar : {
title : '' ,
title : '' ,
logo : {
logo : {
alt : 'Hippo4j 动态可观测线程池框架' ,
alt : 'Hippo4j 动态可观测线程池框架' ,
src : 'img/hippo4j.png' ,
src : 'img/hippo4j.png' ,
} ,
} ,
items : [
items : [
{
{
type : 'docSidebar' ,
type : 'docSidebar' ,
docId : 'intro' ,
docId : 'intro' ,
position : 'left' ,
position : 'left' ,
sidebarId : 'user_docs' ,
sidebarId : 'user_docs' ,
label : '文档' ,
label : '文档' ,
} ,
} ,
{
{
to : "/community/contributor-guide" ,
to : '/community/contributor-guide' ,
label : "社区" ,
label : '社区' ,
position : "left" ,
position : 'left' ,
activeBaseRegex : ` /community/ ` ,
activeBaseRegex : ` /community/ ` ,
} ,
} ,
/*{ to: "/team", label: "团队", position: "left" },*/
/*{ to: "/team", label: "团队", position: "left" },*/
{ to : "/users" , label : "采用公司" , position : "left" } ,
{ to : '/users' , label : '采用公司' , position : 'left' } ,
{ to : "/group" , label : "加群沟通" , position : "left" } ,
{ to : '/group' , label : '加群沟通' , position : 'left' } ,
/*{to: '/blog', label: '博客', position: 'left'},*/
/*{to: '/blog', label: '博客', position: 'left'},*/
{
{
href : 'http://console.hippo4j.cn/index.html' ,
href : 'http://console.hippo4j.cn/index.html' ,
label : '控制台样例' ,
label : '控制台样例' ,
position : 'left' ,
position : 'left' ,
} ,
} ,
{
{
href : 'https://gitee.com/opengoofy/congomall' ,
href : 'https://gitee.com/opengoofy/congomall' ,
label : '👉 刚果商城' ,
label : '👉 刚果商城' ,
position : 'left' ,
position : 'left' ,
} ,
} ,
{
{
type : 'docsVersionDropdown' ,
type : 'docsVersionDropdown' ,
position : 'right' ,
position : 'right' ,
dropdownActiveClassDisabled : true ,
dropdownActiveClassDisabled : true ,
} ,
} ,
{ type : 'localeDropdown' , position : 'right' } ,
{ type : 'localeDropdown' , position : 'right' } ,
/ * {
/ * {
href : 'https://gitee.com/mabaiwancn/hippo4j' ,
href : 'https://gitee.com/mabaiwancn/hippo4j' ,
label : 'Gitee' ,
label : 'Gitee' ,
position : 'right' ,
position : 'right' ,
} , * /
} , * /
{
{
href : 'https://github.com/opengoofy/hippo4j' ,
href : 'https://github.com/opengoofy/hippo4j' ,
className : 'header-github-link' ,
className : 'header-github-link' ,
'aria-label' : 'GitHub repository' ,
'aria-label' : 'GitHub repository' ,
position : 'right' ,
position : 'right' ,
} ,
} ,
/ * {
/ * {
href : 'https://github.com/opengoofy/hippo4j' ,
href : 'https://github.com/opengoofy/hippo4j' ,
label : 'GitHub' ,
label : 'GitHub' ,
position : 'right' ,
position : 'right' ,
} , * /
} , * /
] ,
] ,
} ,
} ,
footer : {
footer : {
style : 'dark' ,
style : 'dark' ,
links : [
links : [
{
{
title : 'Docs' ,
title : 'Docs' ,
items : [
items : [
{
{
label : 'Intro' ,
label : 'Intro' ,
to : '/docs/user_docs/intro' ,
to : '/docs/user_docs/intro' ,
} ,
} ,
{
{
label : 'Config Mode' ,
label : 'Config Mode' ,
to : '/docs/user_docs/getting_started/config/hippo4j-config-start' ,
to : '/docs/user_docs/getting_started/config/hippo4j-config-start' ,
} ,
} ,
{
{
label : 'Server Mode' ,
label : 'Server Mode' ,
to : '/docs/user_docs/getting_started/server/hippo4j-server-start' ,
to : '/docs/user_docs/getting_started/server/hippo4j-server-start' ,
} ,
} ,
] ,
] ,
} ,
} ,
{
{
title : 'Community' ,
title : 'Community' ,
items : [
items : [
{
{
label : 'Group' ,
label : 'Group' ,
href : 'https://hippo4j.cn/group' ,
href : 'https://hippo4j.cn/group' ,
} ,
} ,
{
{
label : 'WeChat' ,
label : 'WeChat' ,
href : 'https://mp.weixin.qq.com/s/diVHYvwiuYH9aWpZDPc27g' ,
href : 'https://mp.weixin.qq.com/s/diVHYvwiuYH9aWpZDPc27g' ,
} ,
} ,
] ,
] ,
} ,
} ,
{
{
title : 'More' ,
title : 'More' ,
items : [
items : [
{
{
label : 'Gitee' ,
label : 'Gitee' ,
href : 'https://gitee.com/opengoofy/hippo4j' ,
href : 'https://gitee.com/opengoofy/hippo4j' ,
} ,
} ,
{
{
label : 'GitHub' ,
label : 'GitHub' ,
href : 'https://github.com/opengoofy/hippo4j' ,
href : 'https://github.com/opengoofy/hippo4j' ,
} ,
} ,
] ,
] ,
} ,
} ,
{
{
title : 'Links' ,
title : 'Links' ,
items : [
items : [
{
{
label : '书源' ,
label : '书源' ,
href : 'https://bookyuan.cn/' ,
href : 'https://bookyuan.cn/' ,
} ,
} ,
{
{
label : '推广合作' ,
label : '推广合作' ,
href : 'https://hippo4j.cn/docs/user_docs/other/operation' ,
href : 'https://hippo4j.cn/docs/user_docs/other/operation' ,
} ,
} ,
] ,
] ,
} ,
} ,
] ,
] ,
copyright : ` Copyright © 2021-2022 马丁版权所有 <a href="https://beian.miit.gov.cn">京ICP备2021038095号
copyright : ` Copyright © 2021-2022 马丁版权所有 <a href="https://beian.miit.gov.cn">京ICP备2021038095号
< / a > ` ,
< / a > ` ,
} ,
} ,
prism : {
prism : {
theme : lightCodeTheme ,
theme : lightCodeTheme ,
darkTheme : darkCodeTheme ,
darkTheme : darkCodeTheme ,
additionalLanguages : [ 'java' ] ,
additionalLanguages : [ 'java' ] ,
} ,
} ,
} ) ,
} ) ,
} ;
} ;
module . exports = config ;
module . exports = config ;