From 751b980665cd46f4603628af4a5e44054be31c13 Mon Sep 17 00:00:00 2001 From: Boom <654612@qq.com> Date: Tue, 18 Jul 2023 16:04:30 +0800 Subject: [PATCH 1/4] :+1: add app --- README.md | 51 +++-------- docs/app/start.md | 6 ++ docs/app/test.md | 6 ++ docs/bxg/start.md | 6 ++ docs/intro.md | 12 --- docs/odoo/start.md | 9 ++ docs/{ => zsw}/banner_settings.md | 0 docs/{ => zsw}/cashier_system/_category_.json | 0 docs/{ => zsw}/cashier_system/img/image-1.png | Bin docs/{ => zsw}/cashier_system/img/image-2.png | Bin docs/{ => zsw}/cashier_system/img/image-3.png | Bin docs/{ => zsw}/cashier_system/img/image-4.png | Bin docs/{ => zsw}/cashier_system/img/image-5.png | Bin docs/{ => zsw}/cashier_system/img/image.png | Bin docs/{ => zsw}/cashier_system/img/image1.png | Bin docs/{ => zsw}/cashier_system/img/image7.png | Bin docs/{ => zsw}/cashier_system/inventory.md | 0 docs/{ => zsw}/cashier_system/login.md | 0 .../{ => zsw}/cashier_system/order process.md | 0 docs/{ => zsw}/coupon.md | 0 docs/{ => zsw}/goods/_category_.json | 0 docs/{ => zsw}/goods/details.md | 0 docs/{ => zsw}/goods/img/details1.png | Bin docs/{ => zsw}/goods/img/details2.png | Bin docs/{ => zsw}/goods/img/good.dat | Bin docs/{ => zsw}/goods/img/spec1.dat | Bin docs/{ => zsw}/goods/img/spec2.dat | Bin docs/{ => zsw}/goods/img/spec3.png | Bin docs/{ => zsw}/goods/img/spec4.png | Bin docs/{ => zsw}/goods/info.md | 0 docs/{ => zsw}/goods/spec.md | 0 docs/{ => zsw}/gusangyuan.md | 0 docs/{ => zsw}/img/banner1.png | Bin docs/{ => zsw}/img/banner2.png | Bin docs/{ => zsw}/img/gsy-1.png | Bin docs/{ => zsw}/img/gsy-2.png | Bin docs/{ => zsw}/img/gsy-3.png | Bin docs/{ => zsw}/img/image-1.png | Bin docs/{ => zsw}/img/image.png | Bin docs/{ => zsw}/img/image10.png | Bin docs/{ => zsw}/img/image3.png | Bin docs/{ => zsw}/img/image4.png | Bin docs/{ => zsw}/img/image5.png | Bin docs/{ => zsw}/img/image6.png | Bin docs/{ => zsw}/img/image7.png | Bin docs/{ => zsw}/img/image8.png | Bin docs/{ => zsw}/img/image9.png | Bin docs/{ => zsw}/img/login.dat | Bin docs/{ => zsw}/img/order1.png | Bin docs/{ => zsw}/img/order5.png | Bin docs/{ => zsw}/img/ques-1.png | Bin docs/{ => zsw}/img/ques-2.png | Bin docs/{ => zsw}/img/ques-3.png | Bin docs/{ => zsw}/img/ques-4.png | Bin docs/{ => zsw}/img/ques.png | Bin docs/{ => zsw}/img/sts3.png | Bin docs/zsw/intro.md | 25 ++++++ docs/{ => zsw}/login.md | 0 docs/{ => zsw}/order.md | 0 docs/{ => zsw}/product _catalog.md | 0 docs/{ => zsw}/promotion.md | 0 docs/{ => zsw}/ques_tickets.md | 0 docs/{ => zsw}/store_settings.md | 0 docusaurus.config.js | 82 ++++++++++++------ sidebars.js | 32 ++++--- src/pages/index.js | 4 +- 66 files changed, 141 insertions(+), 92 deletions(-) create mode 100644 docs/app/start.md create mode 100644 docs/app/test.md create mode 100644 docs/bxg/start.md delete mode 100644 docs/intro.md create mode 100644 docs/odoo/start.md rename docs/{ => zsw}/banner_settings.md (100%) rename docs/{ => zsw}/cashier_system/_category_.json (100%) rename docs/{ => zsw}/cashier_system/img/image-1.png (100%) rename docs/{ => zsw}/cashier_system/img/image-2.png (100%) rename docs/{ => zsw}/cashier_system/img/image-3.png (100%) rename docs/{ => zsw}/cashier_system/img/image-4.png (100%) rename docs/{ => zsw}/cashier_system/img/image-5.png (100%) rename docs/{ => zsw}/cashier_system/img/image.png (100%) rename docs/{ => zsw}/cashier_system/img/image1.png (100%) rename docs/{ => zsw}/cashier_system/img/image7.png (100%) rename docs/{ => zsw}/cashier_system/inventory.md (100%) rename docs/{ => zsw}/cashier_system/login.md (100%) rename docs/{ => zsw}/cashier_system/order process.md (100%) rename docs/{ => zsw}/coupon.md (100%) rename docs/{ => zsw}/goods/_category_.json (100%) rename docs/{ => zsw}/goods/details.md (100%) rename docs/{ => zsw}/goods/img/details1.png (100%) rename docs/{ => zsw}/goods/img/details2.png (100%) rename docs/{ => zsw}/goods/img/good.dat (100%) rename docs/{ => zsw}/goods/img/spec1.dat (100%) rename docs/{ => zsw}/goods/img/spec2.dat (100%) rename docs/{ => zsw}/goods/img/spec3.png (100%) rename docs/{ => zsw}/goods/img/spec4.png (100%) rename docs/{ => zsw}/goods/info.md (100%) rename docs/{ => zsw}/goods/spec.md (100%) rename docs/{ => zsw}/gusangyuan.md (100%) rename docs/{ => zsw}/img/banner1.png (100%) rename docs/{ => zsw}/img/banner2.png (100%) rename docs/{ => zsw}/img/gsy-1.png (100%) rename docs/{ => zsw}/img/gsy-2.png (100%) rename docs/{ => zsw}/img/gsy-3.png (100%) rename docs/{ => zsw}/img/image-1.png (100%) rename docs/{ => zsw}/img/image.png (100%) rename docs/{ => zsw}/img/image10.png (100%) rename docs/{ => zsw}/img/image3.png (100%) rename docs/{ => zsw}/img/image4.png (100%) rename docs/{ => zsw}/img/image5.png (100%) rename docs/{ => zsw}/img/image6.png (100%) rename docs/{ => zsw}/img/image7.png (100%) rename docs/{ => zsw}/img/image8.png (100%) rename docs/{ => zsw}/img/image9.png (100%) rename docs/{ => zsw}/img/login.dat (100%) rename docs/{ => zsw}/img/order1.png (100%) rename docs/{ => zsw}/img/order5.png (100%) rename docs/{ => zsw}/img/ques-1.png (100%) rename docs/{ => zsw}/img/ques-2.png (100%) rename docs/{ => zsw}/img/ques-3.png (100%) rename docs/{ => zsw}/img/ques-4.png (100%) rename docs/{ => zsw}/img/ques.png (100%) rename docs/{ => zsw}/img/sts3.png (100%) create mode 100644 docs/zsw/intro.md rename docs/{ => zsw}/login.md (100%) rename docs/{ => zsw}/order.md (100%) rename docs/{ => zsw}/product _catalog.md (100%) rename docs/{ => zsw}/promotion.md (100%) rename docs/{ => zsw}/ques_tickets.md (100%) rename docs/{ => zsw}/store_settings.md (100%) diff --git a/README.md b/README.md index aaba2fa..be41c58 100644 --- a/README.md +++ b/README.md @@ -1,41 +1,10 @@ -# Website - -This website is built using [Docusaurus 2](https://docusaurus.io/), a modern static website generator. - -### Installation - -``` -$ yarn -``` - -### Local Development - -``` -$ yarn start -``` - -This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server. - -### Build - -``` -$ yarn build -``` - -This command generates static content into the `build` directory and can be served using any static contents hosting service. - -### Deployment - -Using SSH: - -``` -$ USE_SSH=true yarn deploy -``` - -Not using SSH: - -``` -$ GIT_USER= yarn deploy -``` - -If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch. +# 文档系统 + +- 使用git克隆检出 +- npm i 安装依赖 +- npm start启动 +- 支持热更新 +- 图片请放在文档目录下对应的images目录,并维护好目录顺序 +- 请尽量注意格式 使用英文翻译命名 +- 文档长期更新 共同参与 +- 博客和单页暂时不动 \ No newline at end of file diff --git a/docs/app/start.md b/docs/app/start.md new file mode 100644 index 0000000..49cd577 --- /dev/null +++ b/docs/app/start.md @@ -0,0 +1,6 @@ +--- +sidebar_position: 0 +sidebar_label: App +title: App +--- +## 回乡平台端设置 \ No newline at end of file diff --git a/docs/app/test.md b/docs/app/test.md new file mode 100644 index 0000000..57049a5 --- /dev/null +++ b/docs/app/test.md @@ -0,0 +1,6 @@ +--- +sidebar_position: 0 +sidebar_label: 开始 +title: 开始 +--- +## 回乡平台端设置 \ No newline at end of file diff --git a/docs/bxg/start.md b/docs/bxg/start.md new file mode 100644 index 0000000..de0f98c --- /dev/null +++ b/docs/bxg/start.md @@ -0,0 +1,6 @@ +--- +sidebar_position: 0 +sidebar_label: 一心回乡小程序后台 +title: 一心回乡小程序后台 +--- +## **一心回乡小程序后台** diff --git a/docs/intro.md b/docs/intro.md deleted file mode 100644 index eaba73c..0000000 --- a/docs/intro.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -sidebar_position: 1 -sidebar_label: 帮助首页 ---- - -## 页面帮助 - -``` -正文从这里开始 -``` - -[页面顶部标签集合](https://docusaurus.io/zh-CN/docs/api/plugins/@docusaurus/plugin-content-docs#sidebar_label) diff --git a/docs/odoo/start.md b/docs/odoo/start.md new file mode 100644 index 0000000..f3c32b3 --- /dev/null +++ b/docs/odoo/start.md @@ -0,0 +1,9 @@ +--- +sidebar_position: 0 +sidebar_label: Odoo +title: Odoo +--- +## **Odoo** +Odoo 是基于 Python 写的一系列开源商业应用程序套装,前身是 OpenERP。 + +此套装可满足中小型企业的一切应用需求,例如,企业基本的进销存、采购、销售、MRP 生产制造、品保质量保障、企业招聘、员工合同、休假、午餐管理、内部论坛、车队管理、内部聊天 IM 沟通、客诉追溯管理、CRM 客户关系管理、VOIP、E-Shop 电子商务、网店、企业官方网站,财务会计、银行对账、资产管理、HR 工资管理、预算管理、WMS 仓库库存管理、POS 街边小摊、社区商店、项目管理、条码、PLM 等等 \ No newline at end of file diff --git a/docs/banner_settings.md b/docs/zsw/banner_settings.md similarity index 100% rename from docs/banner_settings.md rename to docs/zsw/banner_settings.md diff --git a/docs/cashier_system/_category_.json b/docs/zsw/cashier_system/_category_.json similarity index 100% rename from docs/cashier_system/_category_.json rename to docs/zsw/cashier_system/_category_.json diff --git a/docs/cashier_system/img/image-1.png b/docs/zsw/cashier_system/img/image-1.png similarity index 100% rename from docs/cashier_system/img/image-1.png rename to docs/zsw/cashier_system/img/image-1.png diff --git a/docs/cashier_system/img/image-2.png b/docs/zsw/cashier_system/img/image-2.png similarity index 100% rename from docs/cashier_system/img/image-2.png rename to docs/zsw/cashier_system/img/image-2.png diff --git a/docs/cashier_system/img/image-3.png b/docs/zsw/cashier_system/img/image-3.png similarity index 100% rename from docs/cashier_system/img/image-3.png rename to docs/zsw/cashier_system/img/image-3.png diff --git a/docs/cashier_system/img/image-4.png b/docs/zsw/cashier_system/img/image-4.png similarity index 100% rename from docs/cashier_system/img/image-4.png rename to docs/zsw/cashier_system/img/image-4.png diff --git a/docs/cashier_system/img/image-5.png b/docs/zsw/cashier_system/img/image-5.png similarity index 100% rename from docs/cashier_system/img/image-5.png rename to docs/zsw/cashier_system/img/image-5.png diff --git a/docs/cashier_system/img/image.png b/docs/zsw/cashier_system/img/image.png similarity index 100% rename from docs/cashier_system/img/image.png rename to docs/zsw/cashier_system/img/image.png diff --git a/docs/cashier_system/img/image1.png b/docs/zsw/cashier_system/img/image1.png similarity index 100% rename from docs/cashier_system/img/image1.png rename to docs/zsw/cashier_system/img/image1.png diff --git a/docs/cashier_system/img/image7.png b/docs/zsw/cashier_system/img/image7.png similarity index 100% rename from docs/cashier_system/img/image7.png rename to docs/zsw/cashier_system/img/image7.png diff --git a/docs/cashier_system/inventory.md b/docs/zsw/cashier_system/inventory.md similarity index 100% rename from docs/cashier_system/inventory.md rename to docs/zsw/cashier_system/inventory.md diff --git a/docs/cashier_system/login.md b/docs/zsw/cashier_system/login.md similarity index 100% rename from docs/cashier_system/login.md rename to docs/zsw/cashier_system/login.md diff --git a/docs/cashier_system/order process.md b/docs/zsw/cashier_system/order process.md similarity index 100% rename from docs/cashier_system/order process.md rename to docs/zsw/cashier_system/order process.md diff --git a/docs/coupon.md b/docs/zsw/coupon.md similarity index 100% rename from docs/coupon.md rename to docs/zsw/coupon.md diff --git a/docs/goods/_category_.json b/docs/zsw/goods/_category_.json similarity index 100% rename from docs/goods/_category_.json rename to docs/zsw/goods/_category_.json diff --git a/docs/goods/details.md b/docs/zsw/goods/details.md similarity index 100% rename from docs/goods/details.md rename to docs/zsw/goods/details.md diff --git a/docs/goods/img/details1.png b/docs/zsw/goods/img/details1.png similarity index 100% rename from docs/goods/img/details1.png rename to docs/zsw/goods/img/details1.png diff --git a/docs/goods/img/details2.png b/docs/zsw/goods/img/details2.png similarity index 100% rename from docs/goods/img/details2.png rename to docs/zsw/goods/img/details2.png diff --git a/docs/goods/img/good.dat b/docs/zsw/goods/img/good.dat similarity index 100% rename from docs/goods/img/good.dat rename to docs/zsw/goods/img/good.dat diff --git a/docs/goods/img/spec1.dat b/docs/zsw/goods/img/spec1.dat similarity index 100% rename from docs/goods/img/spec1.dat rename to docs/zsw/goods/img/spec1.dat diff --git a/docs/goods/img/spec2.dat b/docs/zsw/goods/img/spec2.dat similarity index 100% rename from docs/goods/img/spec2.dat rename to docs/zsw/goods/img/spec2.dat diff --git a/docs/goods/img/spec3.png b/docs/zsw/goods/img/spec3.png similarity index 100% rename from docs/goods/img/spec3.png rename to docs/zsw/goods/img/spec3.png diff --git a/docs/goods/img/spec4.png b/docs/zsw/goods/img/spec4.png similarity index 100% rename from docs/goods/img/spec4.png rename to docs/zsw/goods/img/spec4.png diff --git a/docs/goods/info.md b/docs/zsw/goods/info.md similarity index 100% rename from docs/goods/info.md rename to docs/zsw/goods/info.md diff --git a/docs/goods/spec.md b/docs/zsw/goods/spec.md similarity index 100% rename from docs/goods/spec.md rename to docs/zsw/goods/spec.md diff --git a/docs/gusangyuan.md b/docs/zsw/gusangyuan.md similarity index 100% rename from docs/gusangyuan.md rename to docs/zsw/gusangyuan.md diff --git a/docs/img/banner1.png b/docs/zsw/img/banner1.png similarity index 100% rename from docs/img/banner1.png rename to docs/zsw/img/banner1.png diff --git a/docs/img/banner2.png b/docs/zsw/img/banner2.png similarity index 100% rename from docs/img/banner2.png rename to docs/zsw/img/banner2.png diff --git a/docs/img/gsy-1.png b/docs/zsw/img/gsy-1.png similarity index 100% rename from docs/img/gsy-1.png rename to docs/zsw/img/gsy-1.png diff --git a/docs/img/gsy-2.png b/docs/zsw/img/gsy-2.png similarity index 100% rename from docs/img/gsy-2.png rename to docs/zsw/img/gsy-2.png diff --git a/docs/img/gsy-3.png b/docs/zsw/img/gsy-3.png similarity index 100% rename from docs/img/gsy-3.png rename to docs/zsw/img/gsy-3.png diff --git a/docs/img/image-1.png b/docs/zsw/img/image-1.png similarity index 100% rename from docs/img/image-1.png rename to docs/zsw/img/image-1.png diff --git a/docs/img/image.png b/docs/zsw/img/image.png similarity index 100% rename from docs/img/image.png rename to docs/zsw/img/image.png diff --git a/docs/img/image10.png b/docs/zsw/img/image10.png similarity index 100% rename from docs/img/image10.png rename to docs/zsw/img/image10.png diff --git a/docs/img/image3.png b/docs/zsw/img/image3.png similarity index 100% rename from docs/img/image3.png rename to docs/zsw/img/image3.png diff --git a/docs/img/image4.png b/docs/zsw/img/image4.png similarity index 100% rename from docs/img/image4.png rename to docs/zsw/img/image4.png diff --git a/docs/img/image5.png b/docs/zsw/img/image5.png similarity index 100% rename from docs/img/image5.png rename to docs/zsw/img/image5.png diff --git a/docs/img/image6.png b/docs/zsw/img/image6.png similarity index 100% rename from docs/img/image6.png rename to docs/zsw/img/image6.png diff --git a/docs/img/image7.png b/docs/zsw/img/image7.png similarity index 100% rename from docs/img/image7.png rename to docs/zsw/img/image7.png diff --git a/docs/img/image8.png b/docs/zsw/img/image8.png similarity index 100% rename from docs/img/image8.png rename to docs/zsw/img/image8.png diff --git a/docs/img/image9.png b/docs/zsw/img/image9.png similarity index 100% rename from docs/img/image9.png rename to docs/zsw/img/image9.png diff --git a/docs/img/login.dat b/docs/zsw/img/login.dat similarity index 100% rename from docs/img/login.dat rename to docs/zsw/img/login.dat diff --git a/docs/img/order1.png b/docs/zsw/img/order1.png similarity index 100% rename from docs/img/order1.png rename to docs/zsw/img/order1.png diff --git a/docs/img/order5.png b/docs/zsw/img/order5.png similarity index 100% rename from docs/img/order5.png rename to docs/zsw/img/order5.png diff --git a/docs/img/ques-1.png b/docs/zsw/img/ques-1.png similarity index 100% rename from docs/img/ques-1.png rename to docs/zsw/img/ques-1.png diff --git a/docs/img/ques-2.png b/docs/zsw/img/ques-2.png similarity index 100% rename from docs/img/ques-2.png rename to docs/zsw/img/ques-2.png diff --git a/docs/img/ques-3.png b/docs/zsw/img/ques-3.png similarity index 100% rename from docs/img/ques-3.png rename to docs/zsw/img/ques-3.png diff --git a/docs/img/ques-4.png b/docs/zsw/img/ques-4.png similarity index 100% rename from docs/img/ques-4.png rename to docs/zsw/img/ques-4.png diff --git a/docs/img/ques.png b/docs/zsw/img/ques.png similarity index 100% rename from docs/img/ques.png rename to docs/zsw/img/ques.png diff --git a/docs/img/sts3.png b/docs/zsw/img/sts3.png similarity index 100% rename from docs/img/sts3.png rename to docs/zsw/img/sts3.png diff --git a/docs/zsw/intro.md b/docs/zsw/intro.md new file mode 100644 index 0000000..c918676 --- /dev/null +++ b/docs/zsw/intro.md @@ -0,0 +1,25 @@ +--- +sidebar_position: 1 +sidebar_label: 帮助首页 +title: 帮助 +--- + +## 开始 + + +- 使用git克隆检出 +``` +git clone https://git.lotus-wallet.com/Loki/zsw-docs.git +``` +- npm i +- npm start +- 编写过程支持热更新 +- 图片请放在文档目录下对应的images目录,并维护好目录顺序 +- 请尽量注意格式 使用英文翻译命名 +- 文档长期更新 共同参与 + +### 官方帮助文档 + +[标签集合](https://docusaurus.io/zh-CN/docs/api/plugins/@docusaurus/plugin-content-docs#sidebar_label) + +[github](https://github.com/facebook/docusaurus.git) \ No newline at end of file diff --git a/docs/login.md b/docs/zsw/login.md similarity index 100% rename from docs/login.md rename to docs/zsw/login.md diff --git a/docs/order.md b/docs/zsw/order.md similarity index 100% rename from docs/order.md rename to docs/zsw/order.md diff --git a/docs/product _catalog.md b/docs/zsw/product _catalog.md similarity index 100% rename from docs/product _catalog.md rename to docs/zsw/product _catalog.md diff --git a/docs/promotion.md b/docs/zsw/promotion.md similarity index 100% rename from docs/promotion.md rename to docs/zsw/promotion.md diff --git a/docs/ques_tickets.md b/docs/zsw/ques_tickets.md similarity index 100% rename from docs/ques_tickets.md rename to docs/zsw/ques_tickets.md diff --git a/docs/store_settings.md b/docs/zsw/store_settings.md similarity index 100% rename from docs/store_settings.md rename to docs/zsw/store_settings.md diff --git a/docusaurus.config.js b/docusaurus.config.js index 503eb49..e2ea761 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -6,8 +6,8 @@ const darkCodeTheme = require('prism-react-renderer/themes/dracula'); /** @type {import('@docusaurus/types').Config} */ const config = { - title: '文档', - tagline: 'power by 恐龙', + title: '回乡文档', + // tagline: 'power by 恐龙', favicon: 'img/favicon.ico', // Set the production url of your site here @@ -37,20 +37,20 @@ const config = { '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', - // }, + 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'), }, @@ -64,7 +64,7 @@ const config = { // Replace with your project's social card image: 'img/docusaurus-social-card.jpg', navbar: { - title: '回乡门店软件运营文档', + title: '回乡信息-软件使用文档', logo: { alt: 'Log', src: 'img/logo.svg', @@ -72,16 +72,38 @@ const config = { items: [ { type: 'docSidebar', - sidebarId: 'defaultSidebar', + sidebarId: 'tenantSidebar', + position: 'left', + label: '回乡商家端', + }, + + { + type: 'docSidebar', + sidebarId: 'appSidebar', + position: 'left', + label: '回乡App管理端', + }, + + { + type: 'docSidebar', + sidebarId: 'odooSidebar', position: 'left', - label: '开始', + label: 'Odoo操作指南', + }, + + { + type: 'docSidebar', + sidebarId: 'bxgSidebar', + position: 'left', + label: '一心回乡小程序', + }, + + // {to: '/blog', label: 'Blog', position: 'left'}, + { + href: 'http://www.yixinhuixiang.com', + label: '一心回乡', + position: 'right', }, - {to: '/blog', label: 'Blog', position: 'left'}, - // { - // href: 'https://github.com/facebook/docusaurus', - // label: 'GitHub', - // position: 'right', - // }, ], }, footer: { @@ -91,9 +113,17 @@ const config = { title: '帮助', items: [ { - label: '开始', + label: '回乡门店', to: '/docs/intro', }, + { + label: '回乡APP', + to: '/app/start', + }, + { + label: 'Odoo', + to: '/odoo/start', + }, ], }, { diff --git a/sidebars.js b/sidebars.js index 9ab54c2..7525ade 100644 --- a/sidebars.js +++ b/sidebars.js @@ -13,21 +13,31 @@ /** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */ const sidebars = { - // By default, Docusaurus generates a sidebar from the docs folder structure - tutorialSidebar: [{type: 'autogenerated', dirName: '.'}], - // But you can create a sidebar manually - /* - tutorialSidebar: [ - 'intro', - 'hello', + tenantSidebar: [ { - type: 'category', - label: 'Tutorial', - items: ['tutorial-basics/create-a-document'], + type: 'autogenerated', + dirName: 'zsw' + }, + ], + appSidebar: [ + { + type: 'autogenerated', + dirName: 'app', + }, + ], + odooSidebar: [ + { + type: 'autogenerated', + dirName: 'odoo', + }, + ], + bxgSidebar: [ + { + type: 'autogenerated', + dirName: 'bxg', }, ], - */ }; module.exports = sidebars; diff --git a/src/pages/index.js b/src/pages/index.js index f482b9f..06d0e9a 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -17,8 +17,8 @@ function HomepageHeader() {
- Docusaurus 教程 - 5分钟 ⏱️ + to="/docs/zsw/intro"> + 门店后台文档 ⏱️
From 543e5b7042e943b4f9ae52e77490f66c75a80fe7 Mon Sep 17 00:00:00 2001 From: Boom <654612@qq.com> Date: Tue, 18 Jul 2023 16:09:38 +0800 Subject: [PATCH 2/4] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8D=E9=A6=96?= =?UTF-8?q?=E9=A1=B5=E9=94=99=E8=AF=AF=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docusaurus.config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index e2ea761..04f862f 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -114,15 +114,15 @@ const config = { items: [ { label: '回乡门店', - to: '/docs/intro', + to: '/docs/zsw/intro', }, { label: '回乡APP', - to: '/app/start', + to: '/docs/app/start', }, { label: 'Odoo', - to: '/odoo/start', + to: '/docs/odoo/start', }, ], }, From 94ed77e744a36ac94286ad30224fbd38c79fdfdc Mon Sep 17 00:00:00 2001 From: Boom <654612@qq.com> Date: Tue, 18 Jul 2023 16:16:46 +0800 Subject: [PATCH 3/4] =?UTF-8?q?:+1:=20=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/zsw/intro.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/zsw/intro.md b/docs/zsw/intro.md index c918676..f2cbbad 100644 --- a/docs/zsw/intro.md +++ b/docs/zsw/intro.md @@ -12,12 +12,17 @@ title: 帮助 git clone https://git.lotus-wallet.com/Loki/zsw-docs.git ``` - npm i -- npm start -- 编写过程支持热更新 +- npm start,本地调试,编写过程支持热更新 +- 发布前用serve命令确认文档可以在线上正常构建 +``` +npm run serve -- --build --port 3000 --host 0.0.0.0 +``` + - 图片请放在文档目录下对应的images目录,并维护好目录顺序 - 请尽量注意格式 使用英文翻译命名 - 文档长期更新 共同参与 + ### 官方帮助文档 [标签集合](https://docusaurus.io/zh-CN/docs/api/plugins/@docusaurus/plugin-content-docs#sidebar_label) From 970e11d75c02f185bd04e930a1a7cb2a2a5a89f2 Mon Sep 17 00:00:00 2001 From: Boom <654612@qq.com> Date: Tue, 18 Jul 2023 16:18:32 +0800 Subject: [PATCH 4/4] =?UTF-8?q?:+1:=20=E5=B8=AE=E5=8A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/zsw/intro.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/zsw/intro.md b/docs/zsw/intro.md index f2cbbad..05c9e49 100644 --- a/docs/zsw/intro.md +++ b/docs/zsw/intro.md @@ -20,6 +20,7 @@ npm run serve -- --build --port 3000 --host 0.0.0.0 - 图片请放在文档目录下对应的images目录,并维护好目录顺序 - 请尽量注意格式 使用英文翻译命名 +- 使用问题:小璇兰东 格式及规范:黄婷 - 文档长期更新 共同参与