Skip to content

Commit

Permalink
website: Add environment-setup/android
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Aug 2, 2021
1 parent e416f1c commit 9563e18
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Android 环境安装(for Windows)
---

这里介绍,使用 React Native CLI 运行一个 Android 环境下的 app。

正在编辑中....
11 changes: 11 additions & 0 deletions website/src/pages/docs/environment-setup/android-windows/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import Markdown, { importAll } from '../../../../component/Markdown';

export default class Page extends Markdown {
path = "/website/src/pages/docs/environment-setup/android-windows/README.md";
getMarkdown = async () => {
const md = await import('./README.md');
// 支持 markdown 中,相对于当前 index.tsx 相对路径引入图片资源
importAll((require as any).context('./', true, /\.(png|gif|jpg)$/), this.imageFiles);
return md.default || md;
}
}
6 changes: 6 additions & 0 deletions website/src/pages/docs/environment-setup/android/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Android 环境安装(for Mac)
---

这里介绍,使用 React Native CLI 运行一个 Android 环境下的 app。

正在编辑中....
11 changes: 11 additions & 0 deletions website/src/pages/docs/environment-setup/android/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import Markdown, { importAll } from '../../../../component/Markdown';

export default class Page extends Markdown {
path = "/website/src/pages/docs/environment-setup/android/README.md";
getMarkdown = async () => {
const md = await import('./README.md');
// 支持 markdown 中,相对于当前 index.tsx 相对路径引入图片资源
importAll((require as any).context('./', true, /\.(png|gif|jpg)$/), this.imageFiles);
return md.default || md;
}
}
1 change: 1 addition & 0 deletions website/src/routes/menus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,6 @@ export const docsMenus: MenuData[] = [
{ path: '/docs/getting-started', name: '快速上手' },
{ divider: true, name: "环境安装" },
{ path: '/docs/environment-setup/ios', name: 'iOS 环境安装' },
{ path: '/docs/environment-setup/android', name: 'Android 环境安装(Mac)' },
{ href: 'https://github.com/uiwjs/react-native-uiw/releases', target: '_blank', name: '更新日志' },
]
3 changes: 3 additions & 0 deletions website/src/routes/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ export const getRouterData = {
'/docs/environment-setup/ios': {
component: dynamicWrapper([], () => import('../pages/docs/environment-setup/ios')),
},
'/docs/environment-setup/android': {
component: dynamicWrapper([], () => import('../pages/docs/environment-setup/android')),
},
'/docs/getting-started': {
component: dynamicWrapper([], () => import('../pages/docs/getting-started')),
},
Expand Down

0 comments on commit 9563e18

Please sign in to comment.