mirror of
https://github.com/zhigang1992/docsify.git
synced 2026-03-30 17:04:27 +08:00
Update docs
This commit is contained in:
@@ -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/)
|
||||
|
||||
@@ -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/)
|
||||
|
||||
Reference in New Issue
Block a user