Skip to content

Commit 224f859

Browse files
committed
doc (#5411)
* doc * fix: team folder will add to workflow * fix: generateToc shell
1 parent 5663d72 commit 224f859

File tree

7 files changed

+18
-12
lines changed

7 files changed

+18
-12
lines changed

document/content/docs/toc.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ description: FastGPT 文档目录
9898
- [/docs/upgrading/4-10/4101](/docs/upgrading/4-10/4101)
9999
- [/docs/upgrading/4-11/4110](/docs/upgrading/4-11/4110)
100100
- [/docs/upgrading/4-11/4111](/docs/upgrading/4-11/4111)
101+
- [/docs/upgrading/4-11/4112](/docs/upgrading/4-11/4112)
101102
- [/docs/upgrading/4-8/40](/docs/upgrading/4-8/40)
102103
- [/docs/upgrading/4-8/41](/docs/upgrading/4-8/41)
103104
- [/docs/upgrading/4-8/42](/docs/upgrading/4-8/42)

document/content/docs/upgrading/4-11/4112.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: 'V4.11.2进行中'
2+
title: 'V4.11.2(进行中)'
33
description: 'FastGPT V4.11.2 更新说明'
44
---
55

@@ -14,11 +14,12 @@ description: 'FastGPT V4.11.2 更新说明'
1414
3. 优化文档阅读 Worker,采用 ShareBuffer 避免数据拷贝。
1515
4. 批量进行向量生成和入库,减少网络操作。
1616
5. 知识库搜索,多 query 合并计算,减少数据库操作。
17-
6. 知识库模型选择交互
17+
6. 选择需要搜索的知识库交互
1818
7. 登录页 UI 调整。
1919

2020
## 🐛 修复
2121

2222
1. Doc2x API 更新,导致解析失败。
23+
2. 工作流中,团队应用目录也可以被加入工作流。
2324

2425
## 🔨 工具更新

document/data/doc-last-modified.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
"document/content/docs/upgrading/4-10/4101.mdx": "2025-08-02T19:38:37+08:00",
103103
"document/content/docs/upgrading/4-11/4110.mdx": "2025-08-02T19:38:37+08:00",
104104
"document/content/docs/upgrading/4-11/4111.mdx": "2025-08-02T19:38:37+08:00",
105-
"document/content/docs/upgrading/4-11/4112.mdx": "2025-08-07T23:17:45+08:00",
105+
"document/content/docs/upgrading/4-11/4112.mdx": "2025-08-08T13:57:50+08:00",
106106
"document/content/docs/upgrading/4-8/40.mdx": "2025-08-02T19:38:37+08:00",
107107
"document/content/docs/upgrading/4-8/41.mdx": "2025-08-02T19:38:37+08:00",
108108
"document/content/docs/upgrading/4-8/42.mdx": "2025-08-02T19:38:37+08:00",

document/lib/generateToc.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ const blacklist = [
1515
];
1616

1717
function filePathToUrl(filePath, lang) {
18-
const baseDir = path.resolve('../content/docs');
19-
let relativePath = path.relative(baseDir, path.resolve(filePath)).replace(/\\/g, '/');
18+
const baseDir = path.join(__dirname, '../content/docs');
19+
let relativePath = filePath.replace(baseDir, '');
2020
const basePath = lang === 'zh-CN' ? '/docs' : '/en/docs';
2121

2222
if (lang !== 'zh-CN' && relativePath.endsWith('.en.mdx')) {
@@ -44,7 +44,7 @@ function isZhFile(file) {
4444

4545
async function generateToc() {
4646
// 匹配所有 mdx 文件
47-
const allFiles = await fg('../content/docs/**/*.mdx');
47+
const allFiles = await fg(path.join(__dirname, '../content/docs/**/*.mdx'))
4848

4949
// 筛选中英文文件
5050
const zhFiles = allFiles.filter(isZhFile);
@@ -72,7 +72,7 @@ ${urls.map((url) => `- [${url}](${url})`).join('\n')}
7272
`;
7373

7474
// 写文件路径
75-
const baseDir = path.resolve('../content/docs');
75+
const baseDir = path.join(__dirname, '../content/docs');
7676
const zhOutputPath = path.join(baseDir, 'toc.mdx');
7777
const enOutputPath = path.join(baseDir, 'toc.en.mdx');
7878

projects/app/src/pageComponents/app/detail/WorkflowComponents/Flow/components/NodeTemplates/list.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,11 @@ const NodeTemplateListItem = ({
127127
});
128128
}}
129129
onClick={() => {
130+
// Team folder
131+
if (template.isFolder && template.flowNodeType === FlowNodeTypeEnum.pluginModule) {
132+
onUpdateParentId(template.id);
133+
return;
134+
}
130135
const position =
131136
isPopover && handleParams
132137
? handleParams.addNodePosition

projects/app/src/pageComponents/dataset/detail/CollectionCard/TrainingStates.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,9 @@ const ErrorView = ({
392392
<Td>{item.chunkIndex + 1}</Td>
393393
<Td>{TrainingText[item.mode]}</Td>
394394
<Td maxW={50}>
395-
<MyTooltip label={item.errorMsg}>{t(item.errorMsg)}</MyTooltip>
395+
<MyTooltip shouldWrapChildren={false} placement={'auto'} label={t(item.errorMsg)}>
396+
{t(item.errorMsg)}
397+
</MyTooltip>
396398
</Td>
397399
<Td w={'220px'} px={3}>
398400
<Flex alignItems={'center'}>

projects/app/src/pageComponents/dataset/detail/CollectionCard/index.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,7 @@ import { CollectionPageContext } from './Context';
4444
import { DatasetPageContext } from '@/web/core/dataset/context/datasetPageContext';
4545
import { formatTime2YMDHM } from '@fastgpt/global/common/string/time';
4646
import MyTag from '@fastgpt/web/components/common/Tag/index';
47-
import {
48-
checkCollectionIsFolder,
49-
collectionCanSync
50-
} from '@fastgpt/global/core/dataset/collection/utils';
47+
import { collectionCanSync } from '@fastgpt/global/core/dataset/collection/utils';
5148
import { useFolderDrag } from '@/components/common/folder/useFolderDrag';
5249
import TagsPopOver from './TagsPopOver';
5350
import { useSystemStore } from '@/web/common/system/useSystemStore';

0 commit comments

Comments
 (0)