Skip to content

Commit c059d5e

Browse files
committed
doc: add unpack document.
1 parent 01d6208 commit c059d5e

File tree

6 files changed

+41
-1
lines changed

6 files changed

+41
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Android(Mac) 打包
2+
===
3+
4+
文档正在建设中...
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import Markdown, { importAll } from '../../../../component/Markdown';
2+
3+
export default class Page extends Markdown {
4+
path = '/website/src/pages/docs/unpack/android/README.md';
5+
getMarkdown = async () => {
6+
const md = await import('./README.md');
7+
// 支持 markdown 中,相对于当前 index.tsx 相对路径引入图片资源
8+
importAll((require as any).context('./', true, /\.(png|gif|jpg|svg)$/), this.imageFiles);
9+
return md.default || md;
10+
};
11+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
iOS 打包
2+
===
3+
4+
文档正在建设中...
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import Markdown, { importAll } from '../../../../component/Markdown';
2+
3+
export default class Page extends Markdown {
4+
path = '/website/src/pages/docs/unpack/ios/README.md';
5+
getMarkdown = async () => {
6+
const md = await import('./README.md');
7+
// 支持 markdown 中,相对于当前 index.tsx 相对路径引入图片资源
8+
importAll((require as any).context('./', true, /\.(png|gif|jpg|svg)$/), this.imageFiles);
9+
return md.default || md;
10+
};
11+
}

website/src/routes/menus.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ export const componentMenus: MenuData[] = [
1414
{ path: '/components/winblank', name: 'WingBlank 两翼留白' },
1515
{ divider: true, name: 'Navigation' },
1616
{ path: '/components/drawer', name: 'Drawer 抽屉' },
17-
{ path: '/components/dragdrawer', name: 'DragDrawer 拖曳抽屉' },
1817
{ path: '/components/menudropdown', name: 'MenuDropdown 菜单下拉按钮' },
1918
{ path: '/components/swipeaction', name: 'SwipeAction 滑动操作组件' },
2019
{ path: '/components/expandablesection', name: 'ExpandableSection 展开缩放组件' },
@@ -78,6 +77,9 @@ export const docsMenus: MenuData[] = [
7877
{ path: '/docs/environment-setup/ios', name: 'iOS 环境安装' },
7978
{ path: '/docs/environment-setup/android', name: 'Android(Mac) 环境安装' },
8079
{ path: '/docs/environment-setup/android-windows', name: 'Android(Windows) 环境安装' },
80+
{ divider: true, name: 'APP 打包' },
81+
{ path: '/docs/unpack/ios', name: 'iOS 打包' },
82+
{ path: '/docs/unpack/android', name: 'Android(Mac) 打包' },
8183
{ divider: true, name: '发布应用商店' },
8284
{ path: '/docs/app-store/ios', name: '发布 iOS 应用商店' },
8385
{ path: '/docs/app-store/android', name: '发布 Android 应用商店' },

website/src/routes/router.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@ export const routeData = [
4141
path: '/docs/app-store/android',
4242
component: lazy(() => import('../pages/docs/app-store/android')),
4343
},
44+
{
45+
path: '/docs/unpack/android',
46+
component: lazy(() => import('../pages/docs/unpack/android')),
47+
},
48+
{
49+
path: '/docs/unpack/ios',
50+
component: lazy(() => import('../pages/docs/unpack/ios')),
51+
},
4452
{
4553
path: '/docs/development/document',
4654
component: lazy(() => import('../pages/docs/development/document')),

0 commit comments

Comments
 (0)