| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305 |
- const path = require('path')
- const organizationName = 'dromara' // Usually your GitHub org/user name.
- const projectName = 'hertzbeat' // Usually your repo name.
- const branch = 'master'
- const repoUrl = `https://github.com/dromara/${projectName}`
- const cdnUrl = 'https://cdn.jsdelivr.net/gh/dromara/hertzbeat@gh-pages/'
- module.exports = {
- title: 'HertzBeat',
- tagline: '易用友好的云监控系统',
- url: 'https://hertzbeat.com',
- baseUrl: '/',
- onBrokenLinks: 'throw',
- onBrokenMarkdownLinks: 'throw',
- favicon: cdnUrl + 'img/tancloud-logo.svg',
- organizationName,
- projectName,
- customFields: {
- repoUrl,
- cdnUrl
- },
- i18n: {
- defaultLocale: 'zh-cn',
- locales: ['zh-cn', 'en'],
- },
- themeConfig: {
- image: cdnUrl + 'img/tancloud-logo.svg',
- liveCodeBlock: {
- playgroundPosition: 'bottom',
- },
- colorMode: {
- defaultMode: 'light',
- disableSwitch: false,
- respectPrefersColorScheme: false,
- switchConfig: {
- darkIcon: '🌜',
- lightIcon: '☀️',
- // React inline style object
- // see https://reactjs.org/docs/dom-elements.html#style
- darkIconStyle: {
- marginLeft: '2px',
- },
- lightIconStyle: {
- marginLeft: '1px',
- },
- },
- },
- prism: {
- theme: require('prism-react-renderer/themes/github'),
- darkTheme: require('prism-react-renderer/themes/dracula'),
- additionalLanguages: ['java'],
- },
- algolia: {
- apiKey: 'c7c84bfcc1495156f5730309d821ba8c',
- indexName: 'sureness',
- // appId: 'GNVT7Z0UI2',
- contextualSearch: true,
- },
- announcementBar: {
- id: "github-star",
- content:
- '<font style="font-size: medium; font-weight: bolder">If you like TANCLOUD-HertzBeat,</font> <a target="_blank" style="font-size: medium; font-weight: bolder" rel="noopener noreferrer" href="https://github.com/dromara/hertzbeat">give us a star on GitHub </a> <font style="font-size: medium; font-weight: bolder"> or </font><a target="_blank" style="font-size: medium; font-weight: bolder" rel="noopener noreferrer" href="https://gitee.com/dromara/hertzbeat">Gitee please! </a>⭐️⭐️',
- backgroundColor: '#7228B5',
- textColor: '#fafbfc',
- isCloseable: true,
- },
- navbar: {
- title: 'HertzBeat',
- logo: {
- alt: '易用友好的高性能监控云',
- src: cdnUrl + 'img/tancloud-logo.svg',
- },
- items: [
- {
- label: '首页',
- position: 'left',
- to: '/',
- },
- {
- label: '文档',
- position: 'left',
- to: 'docs/',
- },
- {
- label: '博客',
- position: 'left',
- to: 'blog/',
- },
- {
- label: '讨论交流',
- position: 'left',
- to: 'docs/others/contact',
- },
- {
- label: '私有化部署',
- position: 'left',
- to: 'docs/others/private',
- },
- {
- label: '项目看板',
- position: 'left',
- href: 'https://github.com/dromara/hertzbeat/projects/1',
- },
- {
- label: '其它',
- position: 'left',
- items: [
- {
- label: '设计文档',
- to: 'docs/others/design',
- },
- {
- label: '赞助我们',
- to: 'docs/others/sponsor',
- },
- {
- label: '相关资源',
- to: 'docs/others/resource',
- },
- ],
- },
- {
- type: 'localeDropdown',
- position: 'right',
- },
- {
- label: '登录/注册',
- href: 'https://console.tancloud.cn',
- position: 'right',
- className: 'header-console-link'
- },
- ],
- },
- footer: {
- style: 'light',
- links: [
- {
- title: '产品介绍',
- items: [
- {
- label: '使用介绍',
- to: 'docs/',
- },
- {
- label: '安装文档',
- to: 'docs/start/quickstart',
- },
- {
- label: '自定义监控',
- to: 'docs/advanced/extend-point'
- },
- {
- label: '帮助文档',
- to: 'docs/help/guide'
- },
- ],
- },
- {
- title: '社区交流',
- items: [
- {
- label: 'Dromara开源社区',
- href: 'https://dromara.org/',
- },
- {
- label: '交流联系',
- to: 'docs/others/contact',
- },
- {
- label: '我们的故事',
- href: 'https://support.qq.com/products/379369/team',
- },
- {
- label: 'TanCloud探云',
- href: 'https://tancloud.cn',
- }
- ],
- },
- {
- title: '相关资源',
- items: [
- {
- label: 'Github仓库',
- href: 'https://github.com/dromara/hertzbeat',
- },
- {
- label: 'Gitee仓库',
- href: 'https://gitee.com/dromara/hertzbeat',
- },
- {
- label: '相关资源',
- to: 'docs/others/resource',
- },
- ],
- },
- ],
- logo: {
- alt: 'TANCLOUD探云-易用友好的高性能监控云',
- src: 'https://cdn.jsdelivr.net/gh/dromara/hertzbeat/home/static/img/wechat.png',
- href: 'https://dromara.org/zh/',
- },
- copyright: '<a target="_blank" href="https://beian.miit.gov.cn/">蜀ICP备2022002218号</a>' + ` | Copyright TANCLOUD© ${new Date().getFullYear()}`,
- },
- },
- presets: [
- [
- '@docusaurus/preset-classic', {
- docs: {
- sidebarPath: require.resolve('./sidebars.json'),
- // Please change this to your repo.
- editUrl: `${repoUrl}/edit/${branch}/home/`,
- editLocalizedFiles: true,
- remarkPlugins: [
- [require('@docusaurus/remark-plugin-npm2yarn'), {sync: true}],
- ],
- },
- blog: {
- showReadingTime: true,
- postsPerPage: 3,
- feedOptions: {
- type: 'all',
- copyright: `Copyright © ${new Date().getFullYear()} TANCLOUD, Inc.`,
- },
- // Please change this to your repo.
- editUrl: `${repoUrl}/edit/${branch}/home/`,
- editLocalizedFiles: true,
- },
- theme: {
- customCss: require.resolve('./src/css/custom.css'),
- },
- },
- ],
- ],
- plugins: [
- [
- '@docusaurus/plugin-client-redirects',
- {
- fromExtensions: ['html'],
- }
- ],
- '@docusaurus/plugin-ideal-image',
- [
- '@docusaurus/plugin-pwa',
- {
- debug: false,
- offlineModeActivationStrategies: ['appInstalled', 'queryString'],
- // swRegister: false,
- swCustom: path.resolve(__dirname, 'src/sw.js'),
- pwaHead: [
- {
- tagName: 'link',
- rel: 'icon',
- href: 'img/tancloud-logo.svg',
- },
- {
- tagName: 'link',
- rel: 'manifest',
- href: 'manifest.json',
- },
- {
- tagName: 'meta',
- name: 'theme-color',
- content: 'rgb(234, 90, 7)',
- },
- {
- tagName: 'meta',
- name: 'apple-mobile-web-app-capable',
- content: 'yes',
- },
- {
- tagName: 'meta',
- name: 'apple-mobile-web-app-status-bar-style',
- content: '#000',
- },
- {
- tagName: 'link',
- rel: 'apple-touch-icon',
- href: 'img/tancloud-logo.svg',
- },
- {
- tagName: 'link',
- rel: 'mask-icon',
- href: 'img/tancloud-logo.svg',
- color: 'rgb(234, 90, 7)',
- },
- {
- tagName: 'meta',
- name: 'msapplication-TileImage',
- content: 'img/tancloud-logo.svg',
- },
- {
- tagName: 'meta',
- name: 'msapplication-TileColor',
- content: '#000',
- },
- ],
- },
- ],
- ],
- themes: ['@docusaurus/theme-live-codeblock'],
- scripts: [
- 'https://cdn.jsdelivr.net/gh/buttons/buttons.github.io/buttons.js'
- ]
- }
|