Update docs
This commit is contained in:
parent
54ba970552
commit
383b976ddd
2 changed files with 17 additions and 0 deletions
|
|
@ -89,6 +89,14 @@ Code in `404.html`
|
||||||
</nav>
|
</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
|
### CDN
|
||||||
- UNPKG [https://unpkg.com/docsify/](https://unpkg.com/docsify/)
|
- UNPKG [https://unpkg.com/docsify/](https://unpkg.com/docsify/)
|
||||||
|
|
|
||||||
|
|
@ -94,6 +94,15 @@ docsify serve docs
|
||||||
</nav>
|
</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
|
### CDN
|
||||||
- UNPKG [https://unpkg.com/docsify/](https://unpkg.com/docsify/)
|
- UNPKG [https://unpkg.com/docsify/](https://unpkg.com/docsify/)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue