From 3f01cc9c63b838d69b8e1fa4638a6048ddb150a3 Mon Sep 17 00:00:00 2001 From: Archer <545436317@qq.com> Date: Mon, 14 Oct 2024 14:36:28 +0800 Subject: [PATCH] Doc (#2916) * perf: community code * update doc --- docSite/assets/images/social/lark.svg | 5 +++++ docSite/content/zh-cn/docs/community.md | 2 +- docSite/content/zh-cn/docs/development/intro.md | 2 +- docSite/hugo.toml | 1 + docSite/layouts/docs/baseof.html | 2 +- docSite/layouts/partials/docs/top-header.html | 7 ++++++- projects/app/public/docs/chatProblem.md | 2 +- projects/app/src/service/common/system/index.ts | 2 +- 8 files changed, 17 insertions(+), 6 deletions(-) create mode 100644 docSite/assets/images/social/lark.svg diff --git a/docSite/assets/images/social/lark.svg b/docSite/assets/images/social/lark.svg new file mode 100644 index 000000000..fb733ab3c --- /dev/null +++ b/docSite/assets/images/social/lark.svg @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/docSite/content/zh-cn/docs/community.md b/docSite/content/zh-cn/docs/community.md index 504da9896..bdcb042b7 100644 --- a/docSite/content/zh-cn/docs/community.md +++ b/docSite/content/zh-cn/docs/community.md @@ -11,6 +11,6 @@ FastGPT 是一个由用户和贡献者参与推动的开源项目,如果您对 + 📱 扫码加入社区微信交流群👇 - + + 🐞 请将任何 FastGPT 的 Bug、问题和需求提交到 [GitHub Issue](https://github.com/labring/fastgpt/issues/new/choose)。 \ No newline at end of file diff --git a/docSite/content/zh-cn/docs/development/intro.md b/docSite/content/zh-cn/docs/development/intro.md index e38d3c556..aed6864b9 100644 --- a/docSite/content/zh-cn/docs/development/intro.md +++ b/docSite/content/zh-cn/docs/development/intro.md @@ -150,7 +150,7 @@ FastGPT 在`pnpm i`后会执行`postinstall`脚本,用于自动生成`ChakraUI 遇到困难了吗?有任何问题吗? 加入微信群与开发者和用户保持沟通。 - + ## 代码结构说明 diff --git a/docSite/hugo.toml b/docSite/hugo.toml index dd0b6cd3c..06f1965a5 100644 --- a/docSite/hugo.toml +++ b/docSite/hugo.toml @@ -69,6 +69,7 @@ defaultContentLanguageInSubdir = false # twitter = "" # YOUR_TWITTER_ID # instagram = "colinwilson" # YOUR_INSTAGRAM_ID # rss = true # show rss icon with link + lark = "https://oss.laf.run/otnvvf-imgs/fastgpt-feishu1.png" wechat = "https://oss.laf.run/htr4n1-images/fastgpt-qr-code.jpg" [params.docs] # Parameters for the /docs 'template' diff --git a/docSite/layouts/docs/baseof.html b/docSite/layouts/docs/baseof.html index dc9f47096..dc755c68c 100644 --- a/docSite/layouts/docs/baseof.html +++ b/docSite/layouts/docs/baseof.html @@ -3,7 +3,7 @@ {{ $.Scratch.Set "pathName" (printf "%s" (.Site.Params.docs.pathName | default "docs")) }} -{{ $social_params := slice "github" "twitter" "instagram" "rss" "wechat" }} +{{ $social_params := slice "github" "twitter" "instagram" "rss" "wechat" "lark" }} {{ range $social_params }} {{ if isset site.Params.social . }} {{ $.Scratch.Add "social_list" (slice .) }} diff --git a/docSite/layouts/partials/docs/top-header.html b/docSite/layouts/partials/docs/top-header.html index b1fb9a3cb..d452957df 100644 --- a/docSite/layouts/partials/docs/top-header.html +++ b/docSite/layouts/partials/docs/top-header.html @@ -52,7 +52,12 @@ {{ $path := printf "images/social/%s.%s" . "svg" }}
  • - +
    {{ with resources.Get $path }} {{ .Content | safeHTML }} diff --git a/projects/app/public/docs/chatProblem.md b/projects/app/public/docs/chatProblem.md index 6484d4a5e..4cf848ff7 100644 --- a/projects/app/public/docs/chatProblem.md +++ b/projects/app/public/docs/chatProblem.md @@ -11,4 +11,4 @@ **其他问题** | 扫码进入交流群 | | ----------------------- | -| ![](https://oss.laf.run/htr4n1-images/fastgpt-qr-code.jpg) | +| ![](https://oss.laf.run/otnvvf-imgs/fastgpt-feishu1.png) | diff --git a/projects/app/src/service/common/system/index.ts b/projects/app/src/service/common/system/index.ts index 30d4505f8..739cb3792 100644 --- a/projects/app/src/service/common/system/index.ts +++ b/projects/app/src/service/common/system/index.ts @@ -64,7 +64,7 @@ const defaultFeConfigs: FastGPTFeConfigsType = { 'https://fael3z0zfze.feishu.cn/wiki/CX9wwMGyEi5TL6koiLYcg7U0nWb?fromScene=spaceOverview', systemTitle: 'FastGPT', concatMd: - '项目开源地址: [FastGPT GitHub](https://github.com/labring/FastGPT)\n交流群: ![](https://oss.laf.run/htr4n1-images/fastgpt-qr-code.jpg)', + '项目开源地址: [FastGPT GitHub](https://github.com/labring/FastGPT)\n交流群: ![](https://oss.laf.run/otnvvf-imgs/fastgpt-feishu1.png)', limit: { exportDatasetLimitMinutes: 0, websiteSyncLimitMinuted: 0