diff --git a/.gitignore b/.gitignore
index 0684a839a..e5ba8debf 100644
--- a/.gitignore
+++ b/.gitignore
@@ -33,4 +33,6 @@ dist/
# hugo
**/.hugo_build.lock
-docSite/public/
\ No newline at end of file
+docSite/public/
+docSite/resources/_gen/
+docSite/.vercel
\ No newline at end of file
diff --git a/docSite/assets/jsconfig.json b/docSite/assets/jsconfig.json
deleted file mode 100644
index 034343a29..000000000
--- a/docSite/assets/jsconfig.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "compilerOptions": {
- "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/*"
- ]
- }
- }
-}
\ No newline at end of file
diff --git a/docSite/go.mod b/docSite/go.mod
index f8333d80b..6119b4199 100644
--- a/docSite/go.mod
+++ b/docSite/go.mod
@@ -3,6 +3,6 @@ module fastgpt-docs
go 1.21
require (
- github.com/colinwilson/lotusdocs v0.0.0-20230919015602-a9717caaab14 // indirect
+ github.com/colinwilson/lotusdocs v0.1.0 // indirect
github.com/gohugoio/hugo-mod-bootstrap-scss/v5 v5.20300.20003 // indirect
)
diff --git a/docSite/go.sum b/docSite/go.sum
index 611352d70..1541bb6f5 100644
--- a/docSite/go.sum
+++ b/docSite/go.sum
@@ -6,6 +6,8 @@ github.com/colinwilson/lotusdocs v0.0.0-20230821033552-c5bcbdd9df80 h1:jKZF8sqr/
github.com/colinwilson/lotusdocs v0.0.0-20230821033552-c5bcbdd9df80/go.mod h1:9zu2REJDi+zdPRcR5/bRYSUR7gkNF4NQLvV38SEoCP8=
github.com/colinwilson/lotusdocs v0.0.0-20230919015602-a9717caaab14 h1:ORzVQia2njOTCs/5cTQZW0Y+YRZlupgwtGx3umABTcc=
github.com/colinwilson/lotusdocs v0.0.0-20230919015602-a9717caaab14/go.mod h1:9zu2REJDi+zdPRcR5/bRYSUR7gkNF4NQLvV38SEoCP8=
+github.com/colinwilson/lotusdocs v0.1.0 h1:oTC8pAYQp9XDNaUwE4SEY+id3ByNELxIIFrktYEGxYA=
+github.com/colinwilson/lotusdocs v0.1.0/go.mod h1:9zu2REJDi+zdPRcR5/bRYSUR7gkNF4NQLvV38SEoCP8=
github.com/gohugoio/hugo-mod-bootstrap-scss/v5 v5.20300.20003 h1:pt/JGVD5YYRsVVijOHPZI6YKTUvbR4e0hgV9B0S6rbI=
github.com/gohugoio/hugo-mod-bootstrap-scss/v5 v5.20300.20003/go.mod h1:mvM05r93HiefwoaxQTaYiJxtJAhTebwQtU1Xh/J+Okk=
github.com/gohugoio/hugo-mod-jslibs-dist/popperjs/v2 v2.21100.20000/go.mod h1:mFberT6ZtcchrsDtfvJM7aAH2bDKLdOnruUHl0hlapI=
diff --git a/docSite/hugo.toml b/docSite/hugo.toml
index 7ff75b58c..fe8a3c67d 100644
--- a/docSite/hugo.toml
+++ b/docSite/hugo.toml
@@ -18,6 +18,9 @@ defaultContentLanguage = 'zh-cn'
weight = 10
disabled = true
+[build]
+ noJSConfigInAssets = true
+
[module]
[module.hugoVersion]
extended = true
diff --git a/docSite/layouts/docs/single.html b/docSite/layouts/docs/single.html
index 54cbf81da..0ea8deed2 100644
--- a/docSite/layouts/docs/single.html
+++ b/docSite/layouts/docs/single.html
@@ -11,8 +11,12 @@
{{ end -}}
{{ if .Page.Store.Get "hasMermaid" }}
-
+