Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
858117f8
authored
Sep 19, 2023
by
Carson Yang
Committed by
GitHub
Sep 19, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Docs: update font to LXGW WenKai (#325)
Signed-off-by: Carson Yang <yangchuansheng33@gmail.com>
parent
ac4355d2
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
32 additions
and
19 deletions
+32
-19
docSite/assets/docs/scss/custom/pages/_custom.scss
+5
-0
docSite/assets/jsconfig.json
+2
-2
docSite/hugo.toml
+2
-2
docSite/layouts/partials/docs/footer/footer-scripts.html
+4
-9
docSite/layouts/partials/docs/head.html
+3
-0
docSite/resources/_gen/assets/scss/docs/scss/style.scss_b97bf3f19a5ec64d7a7c5d60f7e31818.content
+14
-4
docSite/resources/_gen/assets/scss/scss/style.scss_6d90bf46f7cdc038e33af2850006d4ba.content
+2
-2
No files found.
docSite/assets/docs/scss/custom/pages/_custom.scss
View file @
858117f8
...
...
@@ -38,6 +38,11 @@ footer a:hover {
}
*/
.medium-zoom-overlay
,
.medium-zoom-image--opened
{
z-index
:
1999
;
}
/* 徽章样式 */
.github-badge
{
display
:
inline-block
;
...
...
docSite/assets/jsconfig.json
View file @
858117f8
...
...
@@ -3,8 +3,8 @@
"baseUrl"
:
"."
,
"paths"
:
{
"*"
:
[
"../../../../../
.cache
/hugo_cache/modules/filecache/modules/pkg/mod/github.com/gohugoio/hugo-mod-jslibs-dist/popperjs/v2@v2.21100.20000/package/dist/cjs/popper.js/*"
,
"../../../../../
.cache
/hugo_cache/modules/filecache/modules/pkg/mod/github.com/twbs/bootstrap@v5.3.0+incompatible/js/*"
"../../../../../
Library/Caches
/hugo_cache/modules/filecache/modules/pkg/mod/github.com/gohugoio/hugo-mod-jslibs-dist/popperjs/v2@v2.21100.20000/package/dist/cjs/popper.js/*"
,
"../../../../../
Library/Caches
/hugo_cache/modules/filecache/modules/pkg/mod/github.com/twbs/bootstrap@v5.3.0+incompatible/js/*"
]
}
}
...
...
docSite/hugo.toml
View file @
858117f8
...
...
@@ -52,8 +52,8 @@ defaultContentLanguage = 'zh-cn'
[
"JetBrains Mono"
,
"500, 700"
]
]
sans_serif_font
=
"
Inter
"
# Default is System font
secondary_font
=
"
Inter
"
# Default is System font
sans_serif_font
=
"
LXGW WenKai Screen
"
# Default is System font
secondary_font
=
"
LXGW WenKai Screen
"
# Default is System font
mono_font
=
"JetBrains Mono"
# Default is System font
[params.footer]
...
...
docSite/layouts/partials/docs/footer/footer-scripts.html
View file @
858117f8
<!-- change -->
<style>
.medium-zoom-overlay
,
.medium-zoom-image--opened
{
z-index
:
1999
;
}
</style>
{{ $dayjs := resources.Get (printf "/%s/%s" ($.Scratch.Get "pathName") "js/dayjs.min.js") }}
{{ $relativeTime := resources.Get (printf "/%s/%s" ($.Scratch.Get "pathName") "js/relativeTime.min.js") }}
{{ $app := resources.Get (printf "/%s/%s" ($.Scratch.Get "pathName") "js/app.js") -}}
...
...
@@ -37,7 +29,10 @@
{{ if eq .Site.Params.docs.prism true -}}
{{ $prism := resources.Get (printf "/%s/%s" ($.Scratch.Get "pathName") "js/prism.js") }}
{{ $prism := $prism | js.Build -}}
{{- $opts := dict
"params" (dict "langPath" (urls.JoinPath .Site.BaseURL "docs/js/components/"))
-}}
{{ $prism := $prism | js.Build $opts -}}
{{ $slice = $slice | append $prism -}}
{{ end -}}
...
...
docSite/layouts/partials/docs/head.html
View file @
858117f8
...
...
@@ -102,4 +102,6 @@
{{- template "_internal/google_analytics.html" . -}}
{{- end -}}
{{- end -}}
<!-- change -->
<link
rel=
"stylesheet"
href=
"https://jsdelivr.icloudnative.io/npm/lxgw-wenkai-screen-webfont@1.1.0/style.css"
/>
</head>
\ No newline at end of file
docSite/resources/_gen/assets/scss/docs/scss/style.scss_b97bf3f19a5ec64d7a7c5d60f7e31818.content
View file @
858117f8
...
...
@@ -100,7 +100,7 @@
--bs-dark-border-subtle: #adb5bd;
--bs-white-rgb: 255, 255, 255;
--bs-black-rgb: 0, 0, 0;
--bs-font-sans-serif:
Inter
;
--bs-font-sans-serif:
LXGW WenKai Screen
;
--bs-font-monospace: JetBrains Mono;
--bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
--bs-body-font-family: var(--bs-font-sans-serif);
...
...
@@ -9576,7 +9576,7 @@ html {
background-color: var(--body-bg); }
body {
font-family:
Inter
;
font-family:
LXGW WenKai Screen
;
overflow-x: hidden !important;
font-size: 1rem;
color: var(--body-color);
...
...
@@ -10120,12 +10120,14 @@ i.title-icon {
:root {
--toc-link-hover-bg-color: var(--gray-300);
--toc-mobile-btn-bg-color: var(--gray-100);
--toc-mobile-menu-bg-color: var(--white); }
--toc-mobile-menu-bg-color: var(--white);
--toc-mobile-link-hover-color: var(--primary); }
[data-dark-mode] {
--toc-link-hover-bg-color: var(--gray-700);
--toc-mobile-btn-bg-color: var(--gray-900);
--toc-mobile-menu-bg-color: var(--body-bg); }
--toc-mobile-menu-bg-color: var(--body-bg);
--toc-mobile-link-hover-color: var(--primary-300); }
.docs-toc-mobile {
position: sticky;
...
...
@@ -10133,6 +10135,10 @@ i.title-icon {
padding-left: calc(var(--bs-gutter-x) * 1.05);
padding-right: calc(var(--bs-gutter-x) * 1.05);
z-index: 20; }
.docs-toc-mobile a {
color: var(--text-default); }
.docs-toc-mobile a:hover {
color: var(--toc-mobile-link-hover-color); }
.docs-toc-mobile .dropdown-toggle {
margin-bottom: 16px;
background: var(--toc-mobile-btn-bg-color);
...
...
@@ -12033,6 +12039,10 @@ footer a:hover {
text-decoration: none !important;
}
*/
.medium-zoom-overlay,
.medium-zoom-image--opened {
z-index: 1999; }
/* 徽章样式 */
.github-badge {
display: inline-block;
...
...
docSite/resources/_gen/assets/scss/scss/style.scss_6d90bf46f7cdc038e33af2850006d4ba.content
View file @
858117f8
...
...
@@ -81,7 +81,7 @@
--bs-dark-border-subtle: #adb5bd;
--bs-white-rgb: 255, 255, 255;
--bs-black-rgb: 0, 0, 0;
--bs-font-sans-serif:
Inter
;
--bs-font-sans-serif:
LXGW WenKai Screen
;
--bs-font-monospace: JetBrains Mono;
--bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
--bs-body-font-family: var(--bs-font-sans-serif);
...
...
@@ -9438,7 +9438,7 @@ textarea.form-control-lg {
src: local("Material Icons"), local("MaterialIcons-Outlined"), url("../docs/fonts/material-symbols-outlined.woff2") format("woff2"); }
body {
font-family:
Inter
;
font-family:
LXGW WenKai Screen
;
overflow-x: hidden !important;
font-size: 1rem;
color: #3C4257;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment