// @ts-check // Note: type annotations allow type checking and IDEs autocompletion const lightCodeTheme = require('prism-react-renderer/themes/github'); const darkCodeTheme = require('prism-react-renderer/themes/dracula'); /** @type {import('@docusaurus/types').Config} */ const config = { title: '文档', tagline: 'power by 恐龙', favicon: 'img/favicon.ico', // Set the production url of your site here url: 'https://docs.lotus-wallet.com', // Set the // pathname under which your site is served // For GitHub pages deployment, it is often '//' baseUrl: '/', // GitHub pages deployment config. // If you aren't using GitHub pages, you don't need these. organizationName: 'zsw', // Usually your GitHub org/user name. projectName: 'zsw-docs', // Usually your repo name. onBrokenLinks: 'throw', onBrokenMarkdownLinks: 'warn', // 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 // to replace "en" with "zh-Hans". i18n: { defaultLocale: 'zh-Hans', locales: ['zh-Hans'], }, presets: [ [ 'classic', /** @type {import('@docusaurus/preset-classic').Options} */ ({ // docs: { // sidebarPath: require.resolve('./sidebars.js'), // // Please change this to your repo. // // Remove this to remove the "edit this page" links. // editUrl: // 'https://git.lotus-wallet.com/zyh/docs', // }, // blog: { // showReadingTime: true, // // Please change this to your repo. // // Remove this to remove the "edit this page" links. // editUrl: // 'https://git.lotus-wallet.com/zyh/docs', // }, theme: { customCss: require.resolve('./src/css/custom.css'), }, }), ], ], themeConfig: /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ ({ // Replace with your project's social card image: 'img/docusaurus-social-card.jpg', navbar: { title: '回乡门店软件运营文档', logo: { alt: 'Log', src: 'img/logo.svg', }, items: [ { type: 'docSidebar', sidebarId: 'defaultSidebar', position: 'left', label: '开始', }, {to: '/blog', label: 'Blog', position: 'left'}, // { // href: 'https://github.com/facebook/docusaurus', // label: 'GitHub', // position: 'right', // }, ], }, footer: { style: 'dark', links: [ { title: '帮助', items: [ { label: '开始', to: '/docs/intro', }, ], }, { title: '链接', items: [ { label: '商家端', href: 'https://pos.tenant.lotus-wallet.com', }, { label: '门店端', href: 'https://pos.merchant.lotus-wallet.com', }, { label: '平台端', href: 'https://pos.admin.lotus-wallet.com', }, ], }, { title: '更多', items: [ { label: 'Blog', to: '/blog', }, { label: '回乡', href: 'https://www.yixinhuixiang.com', }, ], }, ], copyright: `Copyright © ${new Date().getFullYear()} zsw Built with Docusaurus.`, }, prism: { theme: lightCodeTheme, darkTheme: darkCodeTheme, }, }), }; module.exports = config;