-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
385 additions
and
696 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
module.exports = { | ||
title: 'UmiJS', | ||
description: '极快的类 Next.js 的 React 应用框架。', | ||
// locales: { | ||
// '/': { | ||
// lang: 'en-US', | ||
// description: 'Blazing-fast next.js-like framework for React apps.', | ||
// }, | ||
// '/zh/': { | ||
// lang: 'zh-CN', | ||
// description: '极快的类 Next.js 的 React 应用框架。', | ||
// }, | ||
// }, | ||
themeConfig: { | ||
lastUpdated: 'Last Updated', | ||
editLinks: true, | ||
editLinkText: '在 GitHub 上编辑此页', | ||
nav: [ | ||
{ text: '指南', link: '/guide/' }, | ||
{ text: '配置', link: '/config/' }, | ||
{ text: 'API', link: '/api/' }, | ||
{ text: '发布日志', link: 'https://github.com/umijs/umi/releases' }, | ||
], | ||
sidebar: { | ||
'/guide/': [ | ||
{ | ||
title: '指南', | ||
collapsable: false, | ||
children: [ | ||
'', | ||
'getting-started', | ||
'app-structure', | ||
'router', | ||
'navigate-between-pages', | ||
'config', | ||
'add-404-page', | ||
'html-template', | ||
'load-on-demand', | ||
'deploy', | ||
'env-variables', | ||
'faq', | ||
], | ||
}, | ||
], | ||
'/config/': [''], | ||
'/api/': [''], | ||
}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
$accentColor = #DC7675 | ||
$textColor = #2c3e50 | ||
$borderColor = #EFD4E3 | ||
$codeBgColor = #282c34 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
home: true | ||
actionText: 快速上手 → | ||
actionLink: /guide/ | ||
features: | ||
- title: 开箱即用 | ||
details: 你只需一个依赖 umi 就可启动开发,而无需安装 react、preact、react-router、eslint、babel、jest 等。 | ||
- title: 高性能 | ||
details: PWA、按需加载、tree-shake、scope-hoist、智能提取公共文件、Critical CSS、preload、hash build、preact 等等,并且,你相同的代码会随着 umi 的改进而不断提升性能。 | ||
- title: 扩展性 | ||
details: umi 的整个生命周期都是插件化的,甚至就是由大量插件组成,比如 http mock、service worker、layout、高清方案等,都是一个个的插件。 | ||
footer: MIT Licensed | Copyright © 2017-present | ||
--- | ||
|
||
### 入门非常简单 | ||
|
||
```bash | ||
# 安装 | ||
$ yarn global add umi # 或者:npm install -g umi | ||
|
||
# 新建一个页面 | ||
$ mkdir pages | ||
$ echo 'export default () => <h1>Hello umi</h1>;' > pages/index.js | ||
|
||
# 启动调试服务器 | ||
$ umi dev | ||
|
||
# 构建 | ||
$ umi build | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.