From 0e74e6c15efa8b1a2d76734c723b9ee41c8cd74b Mon Sep 17 00:00:00 2001 From: "qingwei.li" Date: Tue, 30 May 2017 12:16:26 +0800 Subject: [PATCH 1/7] fix: remove history mode --- docs/index.html | 2 -- 1 file changed, 2 deletions(-) diff --git a/docs/index.html b/docs/index.html index 2113a1f12..1e21f6566 100644 --- a/docs/index.html +++ b/docs/index.html @@ -36,8 +36,6 @@ maxLevel: 4, subMaxLevel: 2, name: 'docsify', - // basePath: '/docs/', - routerMode: 'history', search: { noData: { '/de-de/': 'Keine Ergebnisse!', From b091f3f10dfcfadd0ece095218d5a2d09bdbf4a8 Mon Sep 17 00:00:00 2001 From: "qingwei.li" Date: Tue, 30 May 2017 12:36:23 +0800 Subject: [PATCH 2/7] 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 ab5179359..f93bcddb3 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 1e21f6566..703bfb8ae 100644 --- a/docs/index.html +++ b/docs/index.html @@ -59,8 +59,8 @@ ] } - - + + diff --git a/docs/ssr.html b/docs/ssr.html index fec852886..739595acc 100644 --- a/docs/ssr.html +++ b/docs/ssr.html @@ -7,10 +7,10 @@ - - - - + + + +