Skip to content

Commit 5523a2a

Browse files
committed
docs: update netlify demo
1 parent f8f22e5 commit 5523a2a

File tree

3 files changed

+30
-6
lines changed

3 files changed

+30
-6
lines changed

docs/de-de/deploy.md

+10-2
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,13 @@ server {
5757
## Netlify
5858

5959
1. Login to your [Netlify](https://www.netlify.com/) account.
60-
2. In the [dashboard](https://app.netlify.com/) page, click New site from Git.
61-
3. Choose a repository where you store your docs, leave the Build Command area blank, fill in the Publish directory area with the directory of your `index.html`, for example it should be docs if you populated it at `docs/index.html`.
60+
2. In the [dashboard](https://app.netlify.com/) page, click **New site from Git**.
61+
3. Choose a repository where you store your docs, leave the **Build Command** area blank, fill in the Publish directory area with the directory of your `index.html`, for example it should be docs if you populated it at `docs/index.html`.
62+
63+
### HTML5 router
64+
65+
When using the HTML5 router, you need to set up redirect rules that redirect all requests to your `index.html`, it's pretty simple when you're using Netlify, populate a `\redirects` file in the docs directory and you're all set:
66+
67+
```sh
68+
/* /index.html 200
69+
```

docs/deploy.md

+10-2
Original file line numberDiff line numberDiff line change
@@ -77,5 +77,13 @@ server {
7777
## Netlify
7878

7979
1. Login to your [Netlify](https://www.netlify.com/) account.
80-
2. In the [dashboard](https://app.netlify.com/) page, click New site from Git.
81-
3. Choose a repository where you store your docs, leave the Build Command area blank, fill in the Publish directory area with the directory of your `index.html`, for example it should be docs if you populated it at `docs/index.html`.
80+
2. In the [dashboard](https://app.netlify.com/) page, click **New site from Git**.
81+
3. Choose a repository where you store your docs, leave the **Build Command** area blank, fill in the Publish directory area with the directory of your `index.html`, for example it should be docs if you populated it at `docs/index.html`.
82+
83+
### HTML5 router
84+
85+
When using the HTML5 router, you need to set up redirect rules that redirect all requests to your `index.html`, it's pretty simple when you're using Netlify, populate a `\redirects` file in the docs directory and you're all set:
86+
87+
```sh
88+
/* /index.html 200
89+
```

docs/zh-cn/deploy.md

+10-2
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,13 @@ server {
5959
## Netlify
6060

6161
1. Login to your [Netlify](https://www.netlify.com/) account.
62-
2. In the [dashboard](https://app.netlify.com/) page, click New site from Git.
63-
3. Choose a repository where you store your docs, leave the Build Command area blank, fill in the Publish directory area with the directory of your `index.html`, for example it should be docs if you populated it at `docs/index.html`.
62+
2. In the [dashboard](https://app.netlify.com/) page, click **New site from Git**.
63+
3. Choose a repository where you store your docs, leave the **Build Command** area blank, fill in the Publish directory area with the directory of your `index.html`, for example it should be docs if you populated it at `docs/index.html`.
64+
65+
### HTML5 router
66+
67+
When using the HTML5 router, you need to set up redirect rules that redirect all requests to your `index.html`, it's pretty simple when you're using Netlify, populate a `\redirects` file in the docs directory and you're all set:
68+
69+
```sh
70+
/* /index.html 200
71+
```

0 commit comments

Comments
 (0)