From b091f3f10dfcfadd0ece095218d5a2d09bdbf4a8 Mon Sep 17 00:00:00 2001 From: "qingwei.li" Date: Tue, 30 May 2017 12:36:23 +0800 Subject: [PATCH] docs(ssr): update --- docs/de-de/ssr.md | 13 ++++++++----- docs/index.html | 4 ++-- docs/ssr.html | 12 ++++++------ docs/ssr.md | 12 +++++++----- docs/zh-cn/ssr.md | 13 ++++++++----- 5 files changed, 31 insertions(+), 23 deletions(-) diff --git a/docs/de-de/ssr.md b/docs/de-de/ssr.md index ab517935..f93bcddb 100644 --- a/docs/de-de/ssr.md +++ b/docs/de-de/ssr.md @@ -8,20 +8,20 @@ See https://docsify.now.sh ## Quick start -Install `now` and `docsify-cli` in your project. +1. Install `now` and `docsify-cli` in your project. ```bash npm i now -g npm i docsify-cli -D ``` -Edit `package.json`. If the documentation in `./docs` subdirectory. +2. Edit `package.json`. If the documentation in `./docs` subdirectory. ```json { "name": "my-project", "scripts": { - "start": "docsify start docs" + "start": "docsify start ." }, "files": [ "docs" @@ -38,9 +38,12 @@ Edit `package.json`. If the documentation in `./docs` subdirectory. } ``` +3. Remove `index.html` + + !> The `basePath` just like webpack `publicPath`. You should config it if your docs is in the subdirectory. -We can preview in the local to see if it works. +4. We can preview in the local to see if it works. ```bash npm start @@ -48,7 +51,7 @@ npm start # open http://localhost:4000 ``` -Publish it! +5. Publish it! ```bash now -p diff --git a/docs/index.html b/docs/index.html index 1e21f656..703bfb8a 100644 --- a/docs/index.html +++ b/docs/index.html @@ -59,8 +59,8 @@ ] } - - + + diff --git a/docs/ssr.html b/docs/ssr.html index fec85288..739595ac 100644 --- a/docs/ssr.html +++ b/docs/ssr.html @@ -7,10 +7,10 @@ - - - - + + + +