mirror of
https://github.com/docsifyjs/docsify.git
synced 2025-12-08 19:55:52 +00:00
Update docs
This commit is contained in:
parent
54ba970552
commit
383b976ddd
@ -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/)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user