-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from l10178/doks-1.6
Bump doks from 1.4 to 1.6
- Loading branch information
Showing
34 changed files
with
6,025 additions
and
6,206 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
*.html | ||
*.ico | ||
*.png | ||
*.jp*g | ||
*.toml | ||
*.*ignore | ||
*.svg | ||
*.xml | ||
LICENSE | ||
.npmrc | ||
.gitkeep | ||
*.woff* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Default config | ||
tabWidth: 4 | ||
endOfLine: lf | ||
singleQuote: true | ||
printWidth: 100000 | ||
trailingComma: none | ||
bracketSameLine: true | ||
quoteProps: consistent | ||
experimentalTernaries: true | ||
|
||
# Overrided config | ||
overrides: | ||
- files: ["*.md", "*.json", "*.yaml"] | ||
options: | ||
tabWidth: 2 | ||
singleQuote: false | ||
- files: ["*.scss"] | ||
options: | ||
singleQuote: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"editor.wordWrap": "off", | ||
"files.trimTrailingWhitespace": true, | ||
"files.insertFinalNewline": true, | ||
"editor.tabSize": 2, | ||
"editor.insertSpaces": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import mermaid from 'mermaid'; | ||
|
||
document.addEventListener('DOMContentLoaded', () => { | ||
mermaid.initialize({ startOnLoad: true }); | ||
}); | ||
mermaid.initialize({ startOnLoad: true }); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
.container-fw { | ||
// 原 docs 文本阅读内容是1200px,太窄了,加宽 | ||
max-width: 1800px; | ||
// 原 docs 文本阅读内容是1200px,太窄了,加宽 | ||
max-width: 1800px; | ||
} | ||
|
||
.btn-toggle { | ||
text-transform: none; | ||
} | ||
text-transform: none; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,104 +1,97 @@ | ||
/* Darkmode */ | ||
|
||
:root { | ||
--docsearch-primary-color: var(--sl-color-text-accent); | ||
--docsearch-text-color: var(--sl-color-text); | ||
--docsearch-spacing: 12px; | ||
--docsearch-icon-stroke-width: 1.4; | ||
--docsearch-highlight-color: var(--docsearch-primary-color); | ||
--docsearch-muted-color: var(--sl-color-gray-3); | ||
--docsearch-container-background: var(--sl-color-backdrop-overlay); | ||
|
||
/* modal */ | ||
--docsearch-modal-width: 560px; | ||
--docsearch-modal-height: 600px; | ||
--docsearch-modal-background: var(--sl-color-gray-6); | ||
--docsearch-modal-shadow: var(--sl-shadow-lg); | ||
|
||
/* searchbox */ | ||
--docsearch-searchbox-height: 56px; | ||
--docsearch-searchbox-background: var(--sl-color-gray-7, var(--sl-color-gray-6)); | ||
--docsearch-searchbox-focus-background: var(--sl-color-black); | ||
--docsearch-searchbox-shadow: inset 0 0 0 1px var(--docsearch-primary-color); | ||
|
||
/* hit */ | ||
--docsearch-hit-height: 56px; | ||
--docsearch-hit-color: var(--sl-color-white); | ||
--docsearch-hit-active-color: var(--sl-color-black); | ||
--docsearch-hit-background: var(--sl-color-black); | ||
|
||
/* key */ | ||
--docsearch-key-gradient: linear-gradient( | ||
var(--sl-color-bg-inline-code) 0%, | ||
var(--sl-color-bg-inline-code) 100% | ||
); | ||
|
||
/* footer */ | ||
--docsearch-footer-height: 44px; | ||
--docsearch-footer-background: var(--sl-color-black); | ||
--docsearch-footer-shadow: 0 -1px 0 0 var(--sl-color-hairline-light); | ||
--docsearch-primary-color: var(--sl-color-text-accent); | ||
--docsearch-text-color: var(--sl-color-text); | ||
--docsearch-spacing: 12px; | ||
--docsearch-icon-stroke-width: 1.4; | ||
--docsearch-highlight-color: var(--docsearch-primary-color); | ||
--docsearch-muted-color: var(--sl-color-gray-3); | ||
--docsearch-container-background: var(--sl-color-backdrop-overlay); | ||
|
||
/* modal */ | ||
--docsearch-modal-width: 560px; | ||
--docsearch-modal-height: 600px; | ||
--docsearch-modal-background: var(--sl-color-gray-6); | ||
--docsearch-modal-shadow: var(--sl-shadow-lg); | ||
|
||
/* searchbox */ | ||
--docsearch-searchbox-height: 56px; | ||
--docsearch-searchbox-background: var(--sl-color-gray-7, var(--sl-color-gray-6)); | ||
--docsearch-searchbox-focus-background: var(--sl-color-black); | ||
--docsearch-searchbox-shadow: inset 0 0 0 1px var(--docsearch-primary-color); | ||
|
||
/* hit */ | ||
--docsearch-hit-height: 56px; | ||
--docsearch-hit-color: var(--sl-color-white); | ||
--docsearch-hit-active-color: var(--sl-color-black); | ||
--docsearch-hit-background: var(--sl-color-black); | ||
|
||
/* key */ | ||
--docsearch-key-gradient: linear-gradient(var(--sl-color-bg-inline-code) 0%, var(--sl-color-bg-inline-code) 100%); | ||
|
||
/* footer */ | ||
--docsearch-footer-height: 44px; | ||
--docsearch-footer-background: var(--sl-color-black); | ||
--docsearch-footer-shadow: 0 -1px 0 0 var(--sl-color-hairline-light); | ||
} | ||
|
||
html[data-bs-theme='light'] { | ||
// --docsearch-primary-color: rgb(84, 104, 255); | ||
--docsearch-primary-color: #5d2f86; | ||
--docsearch-text-color: rgb(28, 30, 33); | ||
--docsearch-spacing: 12px; | ||
--docsearch-icon-stroke-width: 1.4; | ||
--docsearch-highlight-color: var(--docsearch-primary-color); | ||
--docsearch-muted-color: rgb(150, 159, 175); | ||
--docsearch-container-background: rgba(101, 108, 133, 0.8); | ||
--docsearch-logo-color: rgba(84, 104, 255); | ||
|
||
/* modal */ | ||
--docsearch-modal-width: 560px; | ||
--docsearch-modal-height: 600px; | ||
--docsearch-modal-background: rgb(245, 246, 247); | ||
--docsearch-modal-shadow: inset 1px 1px 0 0 rgba(255, 255, 255, 0.5), | ||
0 3px 8px 0 rgba(85, 90, 100, 1); | ||
|
||
/* searchbox */ | ||
--docsearch-searchbox-height: 56px; | ||
--docsearch-searchbox-background: rgb(235, 237, 240); | ||
--docsearch-searchbox-focus-background: #fff; | ||
--docsearch-searchbox-shadow: inset 0 0 0 2px var(--docsearch-primary-color); | ||
|
||
/* hit */ | ||
--docsearch-hit-height: 56px; | ||
--docsearch-hit-color: rgb(68, 73, 80); | ||
--docsearch-hit-active-color: #fff; | ||
--docsearch-hit-background: #fff; | ||
|
||
// --docsearch-hit-shadow: 0 1px 3px 0 rgb(212, 217, 225); | ||
|
||
/* key */ | ||
--docsearch-key-gradient: linear-gradient( | ||
#edeff3 0%, | ||
#edeff3 100% | ||
); | ||
|
||
/* | ||
html[data-bs-theme="light"] { | ||
// --docsearch-primary-color: rgb(84, 104, 255); | ||
--docsearch-primary-color: #5d2f86; | ||
--docsearch-text-color: rgb(28, 30, 33); | ||
--docsearch-spacing: 12px; | ||
--docsearch-icon-stroke-width: 1.4; | ||
--docsearch-highlight-color: var(--docsearch-primary-color); | ||
--docsearch-muted-color: rgb(150, 159, 175); | ||
--docsearch-container-background: rgba(101, 108, 133, 0.8); | ||
--docsearch-logo-color: rgba(84, 104, 255); | ||
|
||
/* modal */ | ||
--docsearch-modal-width: 560px; | ||
--docsearch-modal-height: 600px; | ||
--docsearch-modal-background: rgb(245, 246, 247); | ||
--docsearch-modal-shadow: inset 1px 1px 0 0 rgba(255, 255, 255, 0.5), 0 3px 8px 0 rgba(85, 90, 100, 1); | ||
|
||
/* searchbox */ | ||
--docsearch-searchbox-height: 56px; | ||
--docsearch-searchbox-background: rgb(235, 237, 240); | ||
--docsearch-searchbox-focus-background: #fff; | ||
--docsearch-searchbox-shadow: inset 0 0 0 2px var(--docsearch-primary-color); | ||
|
||
/* hit */ | ||
--docsearch-hit-height: 56px; | ||
--docsearch-hit-color: rgb(68, 73, 80); | ||
--docsearch-hit-active-color: #fff; | ||
--docsearch-hit-background: #fff; | ||
|
||
// --docsearch-hit-shadow: 0 1px 3px 0 rgb(212, 217, 225); | ||
|
||
/* key */ | ||
--docsearch-key-gradient: linear-gradient(#edeff3 0%, #edeff3 100%); | ||
|
||
/* | ||
--docsearch-key-shadow: inset 0 -2px 0 0 rgb(205, 205, 230), | ||
inset 0 0 1px 1px #fff, 0 1px 2px 1px rgba(30, 35, 90, 0.4); | ||
--docsearch-key-pressed-shadow: inset 0 -2px 0 0 #cdcde6,inset 0 0 1px 1px #fff,0 1px 1px 0 rgba(30,35,90,0.4); | ||
*/ | ||
|
||
/* footer */ | ||
--docsearch-footer-height: 44px; | ||
--docsearch-footer-background: #fff; | ||
|
||
/* | ||
/* footer */ | ||
--docsearch-footer-height: 44px; | ||
--docsearch-footer-background: #fff; | ||
|
||
/* | ||
--docsearch-footer-shadow: 0 -1px 0 0 rgb(224, 227, 232), | ||
0 -3px 6px 0 rgba(69, 98, 155, 0.12); | ||
*/ | ||
--docsearch-footer-shadow: 0 -1px 0 0 var(--sl-color-hairline-dark); | ||
--docsearch-footer-shadow: 0 -1px 0 0 var(--sl-color-hairline-dark); | ||
} | ||
|
||
/* Custom style overrides */ | ||
.DocSearch-Modal { | ||
border: 1px solid var(--sl-color-hairline-light); | ||
border: 1px solid var(--sl-color-hairline-light); | ||
} | ||
|
||
.DocSearch-Logo svg * { | ||
fill: var(--docsearch-muted-color); | ||
fill: var(--docsearch-muted-color); | ||
} |
Oops, something went wrong.