From acafe0f386f645349245b1f8dfad4d26678c88e2 Mon Sep 17 00:00:00 2001 From: jack zhang <1098626505@qq.com> Date: Tue, 20 Jun 2023 17:11:18 +0800 Subject: [PATCH] fix: mobile docs style (#2083) --- .dumirc.ts | 4 ++-- docs/config.ts | 12 +++--------- docs/en-US/api/cli.md | 2 +- package.json | 2 +- yarn.lock | 8 ++++---- 5 files changed, 11 insertions(+), 17 deletions(-) diff --git a/.dumirc.ts b/.dumirc.ts index 71453f5951..eeb0d14d71 100644 --- a/.dumirc.ts +++ b/.dumirc.ts @@ -46,8 +46,8 @@ export default defineConfig({ github: 'https://github.com/nocobase/nocobase', footer: 'nocobase | Copyright © 2022', localesEnhance: [ - { id: 'zh-CN', switchPrefix: '中' }, - { id: 'en-US', switchPrefix: 'en' } + { id: 'zh-CN', switchPrefix: '中', hostname: 'docs-cn.nocobase.com' }, + { id: 'en-US', switchPrefix: 'en', hostname: 'docs.nocobase.com' } ], }), // mfsu: true, // 报错 diff --git a/docs/config.ts b/docs/config.ts index 47527f5b57..c0867ad3b4 100644 --- a/docs/config.ts +++ b/docs/config.ts @@ -285,23 +285,17 @@ const sidebar = { }, ], }, - '/api/cli', - '/api/actions', - '/api/sdk', { title: '@nocobase/cli', - path: '/api/cli', - type: 'item', + link: '/api/cli', }, { title: '@nocobase/actions', - path: '/api/actions', - type: 'item', + link: '/api/actions', }, { title: '@nocobase/sdk', - path: '/api/sdk', - type: 'item', + link: '/api/sdk', }, ], }; diff --git a/docs/en-US/api/cli.md b/docs/en-US/api/cli.md index 39be52aef4..a96084f02d 100644 --- a/docs/en-US/api/cli.md +++ b/docs/en-US/api/cli.md @@ -1,4 +1,4 @@ -# NocoBase CLI +# @nocobase/cli The NocoBase CLI is designed to help you develop, build, and deploy NocoBase applications. diff --git a/package.json b/package.json index e4a812d9ea..c466d1af17 100644 --- a/package.json +++ b/package.json @@ -57,7 +57,7 @@ "@vitejs/plugin-react": "^4.0.0", "auto-changelog": "^2.4.0", "dumi": "^2.2.0", - "dumi-theme-nocobase": "^0.2.11", + "dumi-theme-nocobase": "^0.2.12", "ghooks": "^2.0.4", "jsdom-worker": "^0.3.0", "prettier": "^2.2.1", diff --git a/yarn.lock b/yarn.lock index 875f1c0e43..12c11d8625 100644 --- a/yarn.lock +++ b/yarn.lock @@ -11727,10 +11727,10 @@ dumi-assets-types@2.0.0-alpha.0: resolved "https://registry.yarnpkg.com/dumi-assets-types/-/dumi-assets-types-2.0.0-alpha.0.tgz#46bf619ed1cb6d27bbe6a9cfe4be51e5e9589981" integrity sha512-a/Y5lf0G6gwsEQ9hop/n03CcjmHsGBk384Cz/AEX6mRYrfSpUx/lQvP9HLoXkCzScl9PL1sSmLPnMkgaXDCZLA== -dumi-theme-nocobase@^0.2.11: - version "0.2.11" - resolved "https://registry.npmjs.org/dumi-theme-nocobase/-/dumi-theme-nocobase-0.2.11.tgz#690c64cd284c913d7f6428bc291c3a6cdf0f2d50" - integrity sha512-hpMJPgIYeUIXKlfxYI1LD3KL4vr6ZlFzeSXNVqAurnlLmP5zkyiGekA/Azgg5zSkeWdaYa+fbB6CPAVE9RCZ+Q== +dumi-theme-nocobase@^0.2.12: + version "0.2.12" + resolved "https://registry.yarnpkg.com/dumi-theme-nocobase/-/dumi-theme-nocobase-0.2.12.tgz#663c9bab60ae6dcfd5255b99780b4ddb7942ace7" + integrity sha512-ObjJZkKWYqeZ+JlQGOX71vI+FPD9RxASYRrFZV9vpkIALwkLfolwX+8JZTHq9VS8dG3+3tAukVY25FOagVs4ZA== dependencies: "@ant-design/icons" "^5.1.3" "@babel/runtime" "^7.22.3"