mirror of
https://github.com/wahyd4/docsify.git
synced 2026-08-09 05:16:06 +10:00
Merge branch 'master' into develop
This commit is contained in:
+1
-2
@@ -82,7 +82,7 @@ server {
|
||||
|
||||
### HTML5 router
|
||||
|
||||
When using the HTML5 router, you need to set up redirect rules that redirect all requests to your `index.html`, it's pretty simple when you're using Netlify, populate a `\redirects` file in the docs directory and you're all set:
|
||||
When using the HTML5 router, you need to set up redirect rules that redirect all requests to your `index.html`, it's pretty simple when you're using Netlify, create a file named `_redirects` in the docs directory, add this snippet to the file and you're all set:
|
||||
|
||||
```sh
|
||||
/* /index.html 200
|
||||
@@ -134,4 +134,3 @@ frontend:
|
||||
|----------------|----------------|---------------|
|
||||
| /<*>.md | /<*>.md | 200 (Rewrite) |
|
||||
| /<*> | /index.html | 200 (Rewrite) |
|
||||
|
||||
|
||||
+3
-3
@@ -18,9 +18,9 @@ Matching routes
|
||||
|
||||
```text
|
||||
docs/README.md => http://domain.com
|
||||
docs/guide.md => http://domain.com/guide
|
||||
docs/zh-cn/README.md => http://domain.com/zh-cn/
|
||||
docs/zh-cn/guide.md => http://domain.com/zh-cn/guide
|
||||
docs/guide.md => http://domain.com/#/guide
|
||||
docs/zh-cn/README.md => http://domain.com/#/zh-cn/
|
||||
docs/zh-cn/guide.md => http://domain.com/#/zh-cn/guide
|
||||
```
|
||||
|
||||
## Sidebar
|
||||
|
||||
Reference in New Issue
Block a user