From 5523a2a2a968f206b6163849c10bd963f4a3d157 Mon Sep 17 00:00:00 2001 From: "qingwei.li" Date: Tue, 19 Jun 2018 08:35:23 +0800 Subject: [PATCH] docs: update netlify demo --- docs/de-de/deploy.md | 12 ++++++++++-- docs/deploy.md | 12 ++++++++++-- docs/zh-cn/deploy.md | 12 ++++++++++-- 3 files changed, 30 insertions(+), 6 deletions(-) diff --git a/docs/de-de/deploy.md b/docs/de-de/deploy.md index 7519fc1a..2e39c3ca 100644 --- a/docs/de-de/deploy.md +++ b/docs/de-de/deploy.md @@ -57,5 +57,13 @@ server { ## Netlify 1. Login to your [Netlify](https://www.netlify.com/) account. -2. In the [dashboard](https://app.netlify.com/) page, click New site from Git. -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`. +2. In the [dashboard](https://app.netlify.com/) page, click **New site from Git**. +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`. + +### HTML5 router + +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: + +```sh +/* /index.html 200 +``` diff --git a/docs/deploy.md b/docs/deploy.md index 3554e474..af3a7f3c 100644 --- a/docs/deploy.md +++ b/docs/deploy.md @@ -77,5 +77,13 @@ server { ## Netlify 1. Login to your [Netlify](https://www.netlify.com/) account. -2. In the [dashboard](https://app.netlify.com/) page, click New site from Git. -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`. +2. In the [dashboard](https://app.netlify.com/) page, click **New site from Git**. +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`. + +### HTML5 router + +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: + +```sh +/* /index.html 200 +``` diff --git a/docs/zh-cn/deploy.md b/docs/zh-cn/deploy.md index 249e66fd..b80cf22d 100644 --- a/docs/zh-cn/deploy.md +++ b/docs/zh-cn/deploy.md @@ -59,5 +59,13 @@ server { ## Netlify 1. Login to your [Netlify](https://www.netlify.com/) account. -2. In the [dashboard](https://app.netlify.com/) page, click New site from Git. -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`. +2. In the [dashboard](https://app.netlify.com/) page, click **New site from Git**. +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`. + +### HTML5 router + +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: + +```sh +/* /index.html 200 +```