docusaurus.config.js (320 lines of code) (raw):

/* * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ const darkCodeTheme = require('prism-react-renderer/themes/dracula'); /** @type {import('@docusaurus/types').Config} */ const config = { title: 'Apache StreamPark (incubating)', tagline: 'Apache StreamPark - Make stream processing easier! easy-to-use streaming application development framework and operation platform', url: 'https://streampark.apache.org/', baseUrl: '/', onBrokenLinks: 'ignore', onBrokenMarkdownLinks: 'warn', favicon: 'image/favicon.ico', i18n: { defaultLocale: "en", locales: ["en", "zh-CN"], localeConfigs: { en: { label: "English", direction: 'ltr', }, 'zh-CN': { label: "简体中文", direction: 'ltr', }, }, }, themes: [ [ require.resolve("@easyops-cn/docusaurus-search-local"), /** @type {import("@easyops-cn/docusaurus-search-local").PluginOptions} */ ({ // config url is: https://github.com/easyops-cn/docusaurus-search-local#theme-options hashed: true, indexDocs: true, indexPages: true, highlightSearchTermsOnTargetPage: false, // Highlight search terms on target page. explicitSearchResultPath: true, searchBarPosition: "right", searchBarShortcutHint: false, // Whether to show keyboard shortcut hint in search bar. Disable it if you need to hide the hint while shortcut is still enabled. language: ["zh", "en"], hideSearchBarWithNoSearchContext: true, }), ], ], presets: [ [ '@docusaurus/preset-classic', ({ docs: { sidebarPath: require.resolve('./sidebars.js'), sidebarCollapsible: true, editLocalizedFiles: true, sidebarCollapsed: false, // Please change this to your repo. editUrl: 'https://github.com/apache/incubator-streampark-website/edit/dev/' }, blog: { showReadingTime: true, // Please change this to your repo. editUrl: 'https://github.com/apache/incubator-streampark-website/edit/dev/', }, theme: { customCss: require.resolve('./src/css/custom.css'), }, }), ], ], themeConfig: ({ colorMode: { defaultMode: 'light', disableSwitch: true }, navbar: { title: 'Apache StreamPark', logo: { alt: 'StreamPark Logo', src: 'image/logo.png', }, items: [ { to: '/docs/intro', label: 'Document', position: 'left', activeBaseRegex: `/docs`, }, { to: '/download', position: 'left', label: 'Download', activeBaseRegex: '/download', }, { label: 'Community', position: 'left', items: [ { label: "Code of conduct", to: "https://www.apache.org/foundation/policies/conduct", }, { label: "Join the mailing lists", to: "/community/contribution_guide/mailing_lists", }, { label: "Become A Committer", to: "/community/contribution_guide/become_committer", }, { label: "Become A PMC member", to: "/community/contribution_guide/become_pmc_member", }, { label: "New Committer Process", to: "/community/contribution_guide/new_committer_process", }, { label: "New PMC Member Process", to: "/community/contribution_guide/new_pmc_ember_process", }, { label: "Documentation Notice", to: "/community/submit_guide/document", }, { label: "Submit Code", to: "/community/submit_guide/submit_code", }, { label: "How to release", to: "/community/release/how_to_release", }, ], }, { to: '/team', label: 'Team', position: 'left', activeBaseRegex: `/team`, }, { to: '/user', label: 'Users', position: 'left', activeBaseRegex: `/user`, }, { to: '/blog', label: 'Blog', position: 'left', activeBaseRegex: `/blog`, }, { to: 'https://github.com/apache/incubator-streampark/issues/507', position: 'left', label: 'FAQ' }, { 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-streampark', label: 'GitHub', position: 'left', }, { type: "localeDropdown", position: "right", }, ], }, footer: { style: 'dark', links: [ { items: [ { html: ` <div class="footer-left-box"> <div class="flex align-center footer-system"> <span class='system-title'>About StreamPark</span> </div> <p>Make stream processing easier! easy-to-use streaming application development framework and operation platform</p> </div> `, } ], }, { title: 'Resource', items: [ { label: 'Document', href: '/docs/intro', }, { label: 'Releases', href: 'https://github.com/apache/incubator-streampark/releases', }, { label: 'FAQ', href: 'https://github.com/apache/incubator-streampark/issues/507', } ], }, { title: 'Community', items: [ { label: 'GitHub', href: 'https://github.com/apache/incubator-streampark', }, { label: 'Issue Tracker', href: 'https://github.com/apache/incubator-streampark/issues', }, { label: 'Pull Requests', href: 'https://github.com/apache/incubator-streampark/pulls', }, ], }, { title: "Follow", items: [ { html: ` <div class="subscribe-box"> <div class="d-flex align-items-center" style="margin-bottom: 30px;padding-top: 11px"> <div class="subscribe-input flex-fill"> <input class="form-control" id="email_address" maxLength="60" type="text" name="email_address" placeholder="Subscribe with us"> </div> <div class="subscribe-submit-inner"> <a class="btn btn-white m-0" type="submit" href="mailto:dev-subscribe@streampark.apache.org"> <span><i class="fa fa-paper-plane text-white"></i></span> </a> </div> </div> <ul class="icon-bottom"> <li> <a href="javascript:void(0)"> <i class="fa fa-wechat"></i> <div class="wechat-dropdown"><img src="/image/join_wechat.png" alt="weChat"></div> </a> </li> <li><a href="javascript:void(0)"><i class="fa fa-twitter"></i></a></li> <li><a href="javascript:void(0)"><i class="fa fa-slack"></i></a></li> <li><a href="javascript:void(0)"><i class="fa fa-facebook"></i></a></li> </ul> </div> `, } ], } ], copyright: ` <div style="text-align: left;margin-top:30px"> <div class="d-flex align-items-center"> <div> <a href="https://incubator.apache.org/" class="footerLogoLink" one-link-mark="yes"> <img src="/image/apache-incubator.svg" alt="Apache Incubator logo" class="footer__logo"> </a> </div> <div> <p style="font-family: Avenir-Medium;font-size: 14px;color: #999;line-height: 25px;"> Apache StreamPark 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> </div> </div> <div style="border-top: 1px solid #525252;min-height: 60px;line-height: 25px;text-align: left;font-family: Avenir-Medium;font-size: 14px;color: #999;display: flex;align-items: center;"> <span> Copyright © 2022-${new Date().getFullYear()} The Apache Software Foundation. Apache StreamPark, StreamPark, and its feather logo are trademarks of The Apache Software Foundation. </span> </div> </div>`, }, prism: { theme: require('prism-react-renderer/themes/vsLight'), darkTheme: darkCodeTheme, additionalLanguages: ['powershell', 'java', 'scala', 'yaml'], } }), plugins: [ 'docusaurus-plugin-less', [ '@docusaurus/plugin-content-docs', { id: 'community', path: 'community', routeBasePath: 'community', sidebarPath: require.resolve('./sidebars.js'), }, ], ] }; module.exports = config;