mirror of
https://github.com/docsifyjs/docsify.git
synced 2025-12-08 19:55:52 +00:00
Merge branch 'master' into develop
This commit is contained in:
commit
68327c5c9a
@ -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) |
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -436,4 +436,4 @@
|
||||
"integrity": "sha512-aSiJz7rGWNAQq7hjMK9ZYDuEawXupcCWgl3woQQSoDP2Oh8O4srWb/uO1PzzHIsrPEOqrjJ2sUb9FERfzuBabQ=="
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -35,9 +35,12 @@ $sidebar-width = 16rem
|
||||
color #333
|
||||
font-weight 400
|
||||
|
||||
.markdown-section strong
|
||||
color #333
|
||||
font-weight 600
|
||||
|
||||
.markdown-section a
|
||||
color var(--theme-color, $color-primary)
|
||||
font-weight 400
|
||||
|
||||
.markdown-section p, .markdown-section ul, .markdown-section ol
|
||||
line-height 1.6rem
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user