代码拉取完成,页面将自动刷新
const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
/** @type {import('@docusaurus/types').DocusaurusConfig} */
module.exports = {
title: 'Apache ShenYu (Incubating)',
tagline: 'Apache ShenYu (Incubating) - High-performance, multi-protocol, extensible, responsive API Gateway',
url: 'https://shenyu.apache.org/',
baseUrl: '/',
onBrokenLinks: 'log',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.svg',
organizationName: 'apache', // Usually your GitHub org/user name.
projectName: 'incubator-shenyu', // Usually your repo name.
i18n: {
defaultLocale: "en",
locales: ["en", "zh"],
localeConfigs: {
en: {
label: "English",
direction: 'ltr',
},
zh: {
label: "简体中文",
direction: 'ltr',
},
},
},
themeConfig: {
navbar: {
// title: 'Apache ShenYu (Incubating)',
logo: {
alt: 'Apache ShenYu Logo',
src: 'img/logo.svg',
srcDark: 'img/logo-light.svg'
},
items: [
{to: '/download', label: 'Download', position: 'left'},
// {
// type: 'docsVersionDropdown',
// label: 'doc',
// position: 'left',
// dropdownActiveClassDisabled: true,
// dropdownItemsAfter: [
// {
// to: '/versions',
// label: 'All versions',
// },
// ],
// },
{
label: 'Docs',
position: 'left',
items: [
{
label: "next",
to: "/docs/next/index",
},
{
label: "2.4.3",
to: "/docs/index",
},
{
label: "2.4.2",
to: "/docs/2.4.2/index",
},
{
label: "2.4.1",
to: "/docs/2.4.1/index",
},
{
label: "2.4.1",
to: "/docs/2.4.0/index",
},
{
label: "2.3.0-Legacy",
to: "/docs/2.3.0-Legacy/index",
},
{
label: "All Versions",
to: "/versions",
},
],
},
{
to: '/community/contributor-guide',
label: 'Community',
position: 'left',
activeBaseRegex: `/community/`,
},
{
label: 'Event',
position: 'left',
to: '/event',
activeBaseRegex: `/event/`,
},
{to: '/news', label: 'News', position: 'left'},
{to: '/blog', label: 'Blog', position: 'left'},
{to: '/users', label: 'Users', position: 'left'},
{
label: 'ASF',
position: 'left',
items: [
{
label: "Foundation",
to: "https://www.apache.org/",
},
{
label: "License",
to: "https://www.apache.org/licenses/",
},
{
label: "Events",
to: "https://www.apache.org/events/current-event",
},
{
label: "Security",
to: "https://www.apache.org/security/",
},
{
label: "Sponsorship",
to: "https://www.apache.org/foundation/sponsorship.html",
},
{
label: "Privacy",
to: "https://www.apache.org/foundation/policies/privacy.html",
},
{
label: "Thanks",
to: "https://www.apache.org/foundation/thanks.html",
},
],
},
{
href: 'https://github.com/apache/incubator-shenyu',
label: 'GitHub',
position: 'right',
},
{
type: "localeDropdown",
position: "right",
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Events',
items: [
{
label: 'ApacheCon',
href: 'https://www.apachecon.com',
},
],
},
{
title: 'ShenYu',
items: [
{
label: 'Download',
to: '/download',
},
{
label: 'Document',
to: '/docs/index',
},
{
label: 'News',
to: '/news',
},
{
label: 'Blog',
to: '/blog',
},
{
label: 'Releases',
href: 'https://github.com/apache/incubator-shenyu/releases',
},
],
},
{
title: 'Community',
items: [
{
label: 'Community',
to: '/community/contributor-guide',
},
{
label: 'GitHub',
href: 'https://github.com/apache/incubator-shenyu',
},
{
label: 'Issue Tracker',
href: 'https://github.com/apache/incubator-shenyu/issues',
},
],
},
{
title: 'Subscribe mailing list',
items: [
{
label: 'How to subscribe',
to: '/community/contributor-guide#join-the-discussion',
},
{
label: 'Subscribe Mail',
href: 'mailto://dev-subscribe@shenyu.apache.org',
},
{
label: 'Mail Archive',
href: 'https://lists.apache.org/list.html?dev@shenyu.apache.org',
},
],
},
],
copyright: `<div><img style="height:50px" alt="Apache Software Foundation" src="/img/incubator-logo.png" /><p style="color:#ffffffcf;font-size:14px;text-align:left">Apache ShenYu is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.</p>
<p style="color:white;font-size:14px;"> Copyright © ${new Date().getFullYear()} The Apache Software Foundation. Licensed under the Apache License, Version 2.0. Apache ShenYu, Apache Incubator, Apache, the Apache feather logo, the Apache ShenYu logo and the Apache Incubator project logo are trademarks of The Apache Software Foundation.</p>
<div>`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
additionalLanguages: ['java'],
},
algolia: {
apiKey: '5f882bef2dfc81f5f1b4e5ea87b2f165',
indexName: 'apache_shenyu',
// Optional: see doc section below
contextualSearch: true,
},
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
sidebarPath: require.resolve('./sidebars.js'),
editLocalizedFiles: true,
// Please change this to your repo.
editUrl:
'https://github.com/apache/incubator-shenyu-website/edit/main/',
},
blog: {
showReadingTime: true,
blogSidebarCount: 0,
blogSidebarTitle: 'All Blog Posts',
editLocalizedFiles: true,
// Please change this to your repo.
editUrl:
'https://github.com/apache/incubator-shenyu-website/edit/main/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
},
],
],
plugins: [
[
'@docusaurus/plugin-content-docs',
{
id: 'community',
path: 'community',
routeBasePath: 'community',
editUrl: ({locale, versionDocsDirPath, docPath}) => {
if (locale !== 'en') {
return `https://github.com/apache/incubator-shenyu-website/edit/main/i18n/${locale}/docusaurus-plugin-content-docs-community/current/${docPath}`;
}
return `https://github.com/apache/incubator-shenyu-website/edit/main/${versionDocsDirPath}/${docPath}`;
},
editCurrentVersion: true,
editLocalizedFiles: true,
sidebarPath: require.resolve('./sidebarsCommunity.js'),
showLastUpdateAuthor: true,
showLastUpdateTime: true,
},
],
// [
// '@docusaurus/plugin-content-docs',
// {
// id: 'download',
// path: 'download',
// routeBasePath: 'download',
// editUrl: ({locale, versionDocsDirPath, docPath}) => {
// if (locale !== 'en') {
// return `https://github.com/apache/incubator-shenyu-website/edit/main/i18n/${locale}/docusaurus-plugin-content-docs-event/current/${docPath}`;
// }
// return `https://github.com/apache/incubator-shenyu-website/edit/main/${versionDocsDirPath}/${docPath}`;
// },
// }
// ],
[
'@docusaurus/plugin-content-docs',
{
id: 'event',
path: 'event',
routeBasePath: 'event',
editUrl: ({locale, versionDocsDirPath, docPath}) => {
if (locale !== 'en') {
return `https://github.com/apache/incubator-shenyu-website/edit/main/i18n/${locale}/docusaurus-plugin-content-docs-event/current/${docPath}`;
}
return `https://github.com/apache/incubator-shenyu-website/edit/main/${versionDocsDirPath}/${docPath}`;
},
editCurrentVersion: true,
editLocalizedFiles: true,
sidebarPath: false,
showLastUpdateAuthor: true,
showLastUpdateTime: true,
}
],
[
"@docusaurus/plugin-content-blog",
{
id: "news",
routeBasePath: "news",
path: "news",
blogSidebarCount:0,
},
],
]
};
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。