mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 13:03:50 +00:00
Update docs: change image width (#256)
Signed-off-by: Carson Yang <yangchuansheng33@gmail.com>
This commit is contained in:
7
docSite/assets/docs/scss/custom/pages/_custom.scss
Normal file
7
docSite/assets/docs/scss/custom/pages/_custom.scss
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
.docs-content .main-content img, .docs-content .main-content svg {
|
||||||
|
max-width: 80% !important;
|
||||||
|
height: auto;
|
||||||
|
display: block !important;
|
||||||
|
margin: 0 auto !important;
|
||||||
|
border-radius: .25rem;
|
||||||
|
}
|
62
docSite/assets/docs/scss/style.scss
Normal file
62
docSite/assets/docs/scss/style.scss
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
/* Template Name: Lotus Docs
|
||||||
|
Author: Colin Wilson
|
||||||
|
E-mail: colin@aigis.uk
|
||||||
|
Created: October 2022
|
||||||
|
Version: 1.2.0
|
||||||
|
File Description: Main CSS file for Lotus Docs
|
||||||
|
*/
|
||||||
|
|
||||||
|
// Custom Font Variables
|
||||||
|
$font-family-secondary: {{ .Site.Params.secondary_font | default "-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Ubuntu'" }};
|
||||||
|
$font-family-sans-serif: {{ .Site.Params.sans_serif_font | default "-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Ubuntu'" }};
|
||||||
|
$font-family-monospace: {{ .Site.Params.mono_font | default "SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace" }};
|
||||||
|
|
||||||
|
// Code Padding Variables
|
||||||
|
$code-block-padding-top: {{ if eq .Site.Params.docs.prism true -}}0{{ else }}1.25rem 0 0 0{{ end }};
|
||||||
|
|
||||||
|
// Icon Fonts
|
||||||
|
@import "custom/plugins/icons/google-material";
|
||||||
|
|
||||||
|
// Core files
|
||||||
|
@import "../../scss/bootstrap/functions";
|
||||||
|
@import "../../scss/bootstrap/variables";
|
||||||
|
@import {{ printf "'%s%s'" "custom/colors/" (.Site.Params.docs.themeColor | default "blue") }}; // current theme color
|
||||||
|
@import "../../scss/bootstrap/mixins";
|
||||||
|
@import "../../scss/bootstrap/bootstrap";
|
||||||
|
@import "variables";
|
||||||
|
|
||||||
|
{{ if and (.Site.Params.docsearch.appID) (.Site.Params.docsearch.apiKey) -}}
|
||||||
|
@import "custom/plugins/docsearch/style";
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
// Structure
|
||||||
|
@import "custom/structure/general";
|
||||||
|
@import "custom/structure/content";
|
||||||
|
@import "custom/structure/sidebar";
|
||||||
|
@import "custom/structure/doc-nav";
|
||||||
|
@import "custom/structure/toc";
|
||||||
|
@import "custom/structure/footer";
|
||||||
|
|
||||||
|
// Components
|
||||||
|
@import "custom/components/buttons";
|
||||||
|
@import "custom/components/modal";
|
||||||
|
@import "custom/components/breadcrumb";
|
||||||
|
@import "custom/components/badge";
|
||||||
|
@import "custom/components/backgrounds";
|
||||||
|
@import "custom/components/alerts";
|
||||||
|
@import "custom/components/card";
|
||||||
|
@import "custom/components/forms";
|
||||||
|
@import "custom/components/table";
|
||||||
|
@import "custom/components/tabs";
|
||||||
|
|
||||||
|
// Pages
|
||||||
|
@import "custom/pages/features";
|
||||||
|
@import "custom/pages/helper";
|
||||||
|
|
||||||
|
// Plugins
|
||||||
|
{{ if eq .Site.Params.docs.prism true -}}@import "custom/plugins/prism/prism";{{ end }}
|
||||||
|
{{ if or (not (isset .Site.Params.flexsearch "enabled")) (eq .Site.Params.flexsearch.enabled true) -}}@import "custom/plugins/flexsearch/flexsearch";{{ end }}
|
||||||
|
|
||||||
|
{{ if .Site.Params.feedback.enabled | default false -}}@import "custom/plugins/feedback/feedback";{{ end}}
|
||||||
|
|
||||||
|
@import "custom/pages/custom";
|
@@ -3,8 +3,8 @@
|
|||||||
"baseUrl": ".",
|
"baseUrl": ".",
|
||||||
"paths": {
|
"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/*",
|
"../../../../../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/*",
|
||||||
"../../../../../.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/twbs/bootstrap@v5.3.0+incompatible/js/*"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -48,12 +48,13 @@ defaultContentLanguage = 'zh-cn'
|
|||||||
|
|
||||||
google_fonts = [
|
google_fonts = [
|
||||||
["Inter", "300, 400, 600, 700"],
|
["Inter", "300, 400, 600, 700"],
|
||||||
["Fira Code", "500, 700"]
|
["Fira Code", "500, 700"],
|
||||||
|
["JetBrains Mono", "500, 700"]
|
||||||
]
|
]
|
||||||
|
|
||||||
sans_serif_font = "Inter" # Default is System font
|
sans_serif_font = "Inter" # Default is System font
|
||||||
secondary_font = "Inter" # Default is System font
|
secondary_font = "Inter" # Default is System font
|
||||||
mono_font = "Fira Code" # Default is System font
|
mono_font = "JetBrains Mono" # Default is System font
|
||||||
|
|
||||||
[params.footer]
|
[params.footer]
|
||||||
copyright = "© :YEAR: the FastGPT Authors."
|
copyright = "© :YEAR: the FastGPT Authors."
|
||||||
|
@@ -1,18 +0,0 @@
|
|||||||
{{ if os.FileExists "static/favicon.ico" -}}
|
|
||||||
<link rel="icon" href="{{ "/favicon.ico" | absURL }}" sizes="any">
|
|
||||||
{{ end -}}
|
|
||||||
{{ if os.FileExists "static/favicon.svg" -}}
|
|
||||||
<link rel="icon" type="image/svg+xml" href="{{ "/favicon.svg" | absURL }}">
|
|
||||||
{{ end -}}
|
|
||||||
{{ if os.FileExists "static/apple-touch-icon.png" -}}
|
|
||||||
<link rel="apple-touch-icon" sizes="180x180" href="{{ "/apple-touch-icon.png" | absURL }}">
|
|
||||||
{{ end -}}
|
|
||||||
{{ if os.FileExists "static/favicon-32x32.png" -}}
|
|
||||||
<link rel="icon" type="image/png" sizes="32x32" href="{{ "/favicon-32x32.png" | absURL }}">
|
|
||||||
{{ end -}}
|
|
||||||
{{ if os.FileExists "static/favicon-16x16.png" -}}
|
|
||||||
<link rel="icon" type="image/png" sizes="16x16" href="{{ "/favicon-16x16.png" | absURL }}">
|
|
||||||
{{ end -}}
|
|
||||||
{{ if os.FileExists "static/site.webmanifest" -}}
|
|
||||||
<link rel="manifest" crossorigin="use-credentials" href="{{ "/site.webmanifest" | absURL }}">
|
|
||||||
{{ end -}}
|
|
@@ -1,18 +0,0 @@
|
|||||||
{{ if os.FileExists "static/favicon.ico" -}}
|
|
||||||
<link rel="icon" href="{{ "/favicon.ico" | absURL }}" sizes="any">
|
|
||||||
{{ end -}}
|
|
||||||
{{ if os.FileExists "static/favicon.svg" -}}
|
|
||||||
<link rel="icon" type="image/svg+xml" href="{{ "/favicon.svg" | absURL }}">
|
|
||||||
{{ end -}}
|
|
||||||
{{ if os.FileExists "static/apple-touch-icon.png" -}}
|
|
||||||
<link rel="apple-touch-icon" sizes="180x180" href="{{ "/apple-touch-icon.png" | absURL }}">
|
|
||||||
{{ end -}}
|
|
||||||
{{ if os.FileExists "static/favicon-32x32.png" -}}
|
|
||||||
<link rel="icon" type="image/png" sizes="32x32" href="{{ "/favicon-32x32.png" | absURL }}">
|
|
||||||
{{ end -}}
|
|
||||||
{{ if os.FileExists "static/favicon-16x16.png" -}}
|
|
||||||
<link rel="icon" type="image/png" sizes="16x16" href="{{ "/favicon-16x16.png" | absURL }}">
|
|
||||||
{{ end -}}
|
|
||||||
{{ if os.FileExists "static/site.webmanifest" -}}
|
|
||||||
<link rel="manifest" crossorigin="use-credentials" href="{{ "/site.webmanifest" | absURL }}">
|
|
||||||
{{ end -}}
|
|
@@ -100,7 +100,7 @@
|
|||||||
--bs-white-rgb: 255, 255, 255;
|
--bs-white-rgb: 255, 255, 255;
|
||||||
--bs-black-rgb: 0, 0, 0;
|
--bs-black-rgb: 0, 0, 0;
|
||||||
--bs-font-sans-serif: Inter;
|
--bs-font-sans-serif: Inter;
|
||||||
--bs-font-monospace: Fira Code;
|
--bs-font-monospace: JetBrains Mono;
|
||||||
--bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
|
--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);
|
--bs-body-font-family: var(--bs-font-sans-serif);
|
||||||
--bs-body-font-size: 1rem;
|
--bs-body-font-size: 1rem;
|
||||||
@@ -9638,11 +9638,14 @@ img {
|
|||||||
order: 1; }
|
order: 1; }
|
||||||
|
|
||||||
.docs-content .main-content a {
|
.docs-content .main-content a {
|
||||||
|
font-weight: 600;
|
||||||
color: var(--content-link-color); }
|
color: var(--content-link-color); }
|
||||||
.docs-content .main-content a:hover {
|
.docs-content .main-content a:hover {
|
||||||
text-decoration: underline 2px var(--primary-200);
|
text-decoration: underline 2px var(--primary-200);
|
||||||
text-underline-offset: 2.5px !important;
|
text-underline-offset: 2.5px !important;
|
||||||
transition: 0s !important; }
|
transition: 0s !important; }
|
||||||
|
.docs-content .main-content a code {
|
||||||
|
color: var(--content-link-color); }
|
||||||
|
|
||||||
.docs-content .main-content #edit-this-page a:hover,
|
.docs-content .main-content #edit-this-page a:hover,
|
||||||
.docs-content .main-content #list-item a:hover {
|
.docs-content .main-content #list-item a:hover {
|
||||||
@@ -9663,22 +9666,24 @@ img {
|
|||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
color: var(--body-color); }
|
color: var(--body-color); }
|
||||||
|
|
||||||
.docs-content .main-content a {
|
|
||||||
font-weight: 600; }
|
|
||||||
|
|
||||||
.docs-content .content-title {
|
.docs-content .content-title {
|
||||||
font-weight: 700; }
|
font-weight: 700;
|
||||||
.docs-content .content-title i {
|
align-self: center; }
|
||||||
width: 44px;
|
|
||||||
height: 44px;
|
|
||||||
color: var(--content-icon-color);
|
|
||||||
background-color: var(--content-icon-bg);
|
|
||||||
display: inline-flex !important;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
font-size: 24px;
|
|
||||||
border-radius: 5px; }
|
|
||||||
|
|
||||||
|
i.title-icon {
|
||||||
|
width: 44px;
|
||||||
|
height: 44px;
|
||||||
|
color: var(--content-icon-color);
|
||||||
|
background-color: var(--content-icon-bg);
|
||||||
|
display: inline-flex !important;
|
||||||
|
align-self: center;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
font-size: 24px;
|
||||||
|
border-radius: 5px; }
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
i.title-icon {
|
||||||
|
align-self: auto; } }
|
||||||
.docs-content p.lead {
|
.docs-content p.lead {
|
||||||
color: var(--text-muted);
|
color: var(--text-muted);
|
||||||
font-weight: 400; }
|
font-weight: 400; }
|
||||||
@@ -9692,8 +9697,10 @@ img {
|
|||||||
.docs-content p.lead {
|
.docs-content p.lead {
|
||||||
font-size: 1rem; } }
|
font-size: 1rem; } }
|
||||||
|
|
||||||
.docs-content .main-content img {
|
.docs-content .main-content img,
|
||||||
max-width: 100%; }
|
.docs-content .main-content svg {
|
||||||
|
max-width: 100%;
|
||||||
|
height: auto; }
|
||||||
|
|
||||||
.docs-content .main-content ul {
|
.docs-content .main-content ul {
|
||||||
padding-left: 0; }
|
padding-left: 0; }
|
||||||
@@ -9754,7 +9761,7 @@ img {
|
|||||||
.docs-content .main-content code {
|
.docs-content .main-content code {
|
||||||
font-size: inherit;
|
font-size: inherit;
|
||||||
color: var(--text-default);
|
color: var(--text-default);
|
||||||
font-weight: 500;
|
font-weight: 400;
|
||||||
padding: 1px 2px;
|
padding: 1px 2px;
|
||||||
background: var(--inline-code-bg);
|
background: var(--inline-code-bg);
|
||||||
border: var(--inline-code-border);
|
border: var(--inline-code-border);
|
||||||
@@ -10810,10 +10817,12 @@ table td:last-child, table th:last-child {
|
|||||||
|
|
||||||
:root {
|
:root {
|
||||||
--feature-icon-color: var(--primary);
|
--feature-icon-color: var(--primary);
|
||||||
|
--feature-icon-faint: var(--gray-200);
|
||||||
--feature-link-hover-bg-color: var(--primary); }
|
--feature-link-hover-bg-color: var(--primary); }
|
||||||
|
|
||||||
[data-dark-mode] {
|
[data-dark-mode] {
|
||||||
--feature-icon-color: var(--primary-300);
|
--feature-icon-color: var(--primary-300);
|
||||||
|
--feature-icon-faint: var(--gray-900);
|
||||||
--feature-link-hover-bg-color: var(--gray-900); }
|
--feature-link-hover-bg-color: var(--gray-900); }
|
||||||
|
|
||||||
.features .icon {
|
.features .icon {
|
||||||
@@ -10837,6 +10846,10 @@ table td:last-child, table th:last-child {
|
|||||||
.features.feature-full-bg .icon-color {
|
.features.feature-full-bg .icon-color {
|
||||||
color: var(--feature-icon-color) !important; }
|
color: var(--feature-icon-color) !important; }
|
||||||
|
|
||||||
|
.features.feature-full-bg .icon-faint {
|
||||||
|
color: var(--feature-icon-faint) !important;
|
||||||
|
transition: all 0.5s ease; }
|
||||||
|
|
||||||
.features.feature-full-bg:hover {
|
.features.feature-full-bg:hover {
|
||||||
background-color: var(--feature-link-hover-bg-color) !important; }
|
background-color: var(--feature-link-hover-bg-color) !important; }
|
||||||
|
|
||||||
@@ -11218,7 +11231,7 @@ pre[class*="language-"] {
|
|||||||
color: #f5fbff !important;
|
color: #f5fbff !important;
|
||||||
background: var(--prism-code-bg) !important;
|
background: var(--prism-code-bg) !important;
|
||||||
border: none !important;
|
border: none !important;
|
||||||
font-family: Fira Code;
|
font-family: JetBrains Mono;
|
||||||
font-size: 0.8rem;
|
font-size: 0.8rem;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
white-space: pre;
|
white-space: pre;
|
||||||
@@ -11900,4 +11913,11 @@ div.code-toolbar > .toolbar > .toolbar-item > span:focus {
|
|||||||
width: 20.1rem;
|
width: 20.1rem;
|
||||||
padding-left: 1rem; } }
|
padding-left: 1rem; } }
|
||||||
|
|
||||||
|
.docs-content .main-content img, .docs-content .main-content svg {
|
||||||
|
max-width: 80% !important;
|
||||||
|
height: auto;
|
||||||
|
display: block !important;
|
||||||
|
margin: 0 auto !important;
|
||||||
|
border-radius: .25rem; }
|
||||||
|
|
||||||
/*# sourceMappingURL=style.css.map */
|
/*# sourceMappingURL=style.css.map */
|
@@ -82,7 +82,7 @@
|
|||||||
--bs-white-rgb: 255, 255, 255;
|
--bs-white-rgb: 255, 255, 255;
|
||||||
--bs-black-rgb: 0, 0, 0;
|
--bs-black-rgb: 0, 0, 0;
|
||||||
--bs-font-sans-serif: Inter;
|
--bs-font-sans-serif: Inter;
|
||||||
--bs-font-monospace: Fira Code;
|
--bs-font-monospace: JetBrains Mono;
|
||||||
--bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
|
--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);
|
--bs-body-font-family: var(--bs-font-sans-serif);
|
||||||
--bs-body-font-size: 1rem;
|
--bs-body-font-size: 1rem;
|
||||||
|
Reference in New Issue
Block a user