mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-06 16:06:28 +08:00
Merge pull request #704 from yubozhao/doc-translation
Add basic English doc for install
This commit is contained in:
commit
b758855186
59
docs/install_en.md
Normal file
59
docs/install_en.md
Normal file
@ -0,0 +1,59 @@
|
||||
## Using npm to install
|
||||
|
||||
**We recommend use npm to install**,Not only it makes development easier,also you can take advantage of the whole ecosystem.
|
||||
|
||||
|
||||
If using npm to install, you could use `import` or `require`.
|
||||
|
||||
Stable version <span class="versions" id="stable-version"></span>:
|
||||
|
||||
[](https://www.npmjs.org/package/antd)
|
||||
|
||||
```bash
|
||||
$ npm install antd --save
|
||||
```
|
||||
|
||||
Beta version <span class="versions" id="latest-version"></span>:
|
||||
|
||||
[](https://www.npmjs.org/package/antd)
|
||||
|
||||
```bash
|
||||
$ npm install antd@beta --save
|
||||
```
|
||||
|
||||
> **Past releases**:https://github.com/ant-design/ant-design/releases
|
||||
|
||||
|
||||
## Development tool
|
||||
|
||||
We provide React components [Scaffold tool](https://github.com/ant-design/antd-init).
|
||||
|
||||
```bash
|
||||
$ npm install antd-init -g
|
||||
```
|
||||
|
||||
Inside an empty folder run `antd-init` to init.
|
||||
|
||||
> [More tools](https://github.com/ant-tool/xtool/)。
|
||||
|
||||
<style>
|
||||
.versions {
|
||||
font-weight: bold;
|
||||
color: #C05B4D;
|
||||
font-family: Consolas;
|
||||
margin-left: 0.3em;
|
||||
background: #FFF1E7;
|
||||
padding: 2px 5px;
|
||||
border-radius: 3px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script>
|
||||
$('#latest-version').html(antdVersion.latest);
|
||||
|
||||
if (antdVersion.stable) {
|
||||
$('#stable-version').html(antdVersion.stable);
|
||||
} else {
|
||||
$('#stable-version').html('not available');
|
||||
}
|
||||
</script>
|
Loading…
Reference in New Issue
Block a user