Update docs

This commit is contained in:
qingwei.li 2016-12-24 11:33:48 +08:00
parent 54ba970552
commit 383b976ddd
2 changed files with 17 additions and 0 deletions

View File

@ -89,6 +89,14 @@ Code in `404.html`
</nav>
```
### Hash router
`404.html` is not SEO friendly, you can replace it use `index.html` and `data-router` [issue#7](https://github.com/QingWei-Li/docsify/issues/7)
index.html
```html
<script src="//unpkg.com/docsify" data-router></script>
```
### CDN
- UNPKG [https://unpkg.com/docsify/](https://unpkg.com/docsify/)

View File

@ -94,6 +94,15 @@ docsify serve docs
</nav>
```
### Hash router
`404.html` 对 SEO 不友好, 你可以用 `index.html` 代替并开启 `hash router` 功能。 [issue#7](https://github.com/QingWei-Li/docsify/issues/7)
index.html
```html
<script src="//unpkg.com/docsify" data-router></script>
```
### CDN
- UNPKG [https://unpkg.com/docsify/](https://unpkg.com/docsify/)