zsw-docs
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

188 lines
5.0 KiB

// @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 /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
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/Loki/zsw-docs/src/branch/master',
},
blog: {
showReadingTime: true,
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
'https://git.lotus-wallet.com/Loki/zsw-docs/src/branch/master',
},
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: 'tenantSidebar',
position: 'left',
label: '回乡商家端',
},
{
type: 'docSidebar',
sidebarId: 'appSidebar',
position: 'left',
label: '回乡App管理端',
},
{
type: 'docSidebar',
sidebarId: 'odooSidebar',
position: 'left',
label: 'Odoo操作指南',
},
{
type: 'docSidebar',
sidebarId: 'bxgSidebar',
position: 'left',
label: '一心回乡小程序',
},
{
type: 'docSidebar',
sidebarId: 'bxgoSidebar',
position: 'left',
label: '宝象go',
},
{
type: 'docSidebar',
sidebarId: 'crmSidebar',
position: 'left',
label: '回乡管理系统',
},
{
type: 'docSidebar',
sidebarId: 'erpSidebar',
position: 'left',
label: '回乡ERP管理系统',
},
// {to: '/blog', label: 'Blog', position: 'left'},
{
href: 'http://www.yixinhuixiang.com',
label: '一心回乡',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: '帮助',
items: [
{
label: '回乡门店',
to: '/docs/zsw/intro',
},
{
label: '回乡APP',
to: '/docs/app/start',
},
{
label: 'Odoo',
to: '/docs/odoo/start',
},
],
},
{
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;