fix: document deploy (#5867)
Some checks are pending
Document deploy / sync-images (push) Waiting to run
Document deploy / generate-timestamp (push) Blocked by required conditions
Document deploy / build-images (map[domain:https://fastgpt.cn suffix:cn]) (push) Blocked by required conditions
Document deploy / build-images (map[domain:https://fastgpt.io suffix:io]) (push) Blocked by required conditions
Document deploy / update-images (map[deployment:fastgpt-docs domain:https://fastgpt.cn kube_config:KUBE_CONFIG_CN suffix:cn]) (push) Blocked by required conditions
Document deploy / update-images (map[deployment:fastgpt-docs domain:https://fastgpt.io kube_config:KUBE_CONFIG_IO suffix:io]) (push) Blocked by required conditions
Build FastGPT images in Personal warehouse / get-vars (push) Waiting to run
Build FastGPT images in Personal warehouse / build-fastgpt-images (map[arch:amd64 runs-on:ubuntu-24.04]) (push) Blocked by required conditions
Build FastGPT images in Personal warehouse / build-fastgpt-images (map[arch:arm64 runs-on:ubuntu-24.04-arm]) (push) Blocked by required conditions
Build FastGPT images in Personal warehouse / release-fastgpt-images (push) Blocked by required conditions

This commit is contained in:
Archer 2025-11-05 17:05:58 +08:00 committed by GitHub
parent bf33f7af2e
commit 89ca81d1a4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 16 additions and 12 deletions

View File

@ -1,14 +1,6 @@
import { createMDX } from 'fumadocs-mdx/next';
const withMDX = createMDX({
mdxOptions: {
remarkPlugins: {
image: {
checkImageSize: false
}
}
}
});
const withMDX = createMDX();
/** @type {import('next').NextConfig} */
const config = {

View File

@ -17,6 +17,8 @@ export const docs = defineDocs({
export default defineConfig({
lastModifiedTime: 'git',
mdxOptions: {
// MDX options
remarkImageOptions: {
external: false
}
}
});

View File

@ -63,7 +63,7 @@ const strIsMdTable = (str: string) => {
return true;
};
const markdownTableSplit = (props: SplitProps): SplitResponse => {
let { text = '', chunkSize } = props;
let { text = '', chunkSize, maxSize = defaultMaxChunkSize } = props;
// split by rows
const splitText2Lines = text.split('\n').filter((line) => line.trim());
@ -93,7 +93,17 @@ ${mdSplitString}
// Over size
if (chunkLength + nextLineLength > chunkSize) {
chunks.push(chunk);
// 单行非常的长,直接分割
if (chunkLength > maxSize) {
const newChunks = commonSplit({
...props,
text: chunk
}).chunks;
chunks.push(...newChunks);
} else {
chunks.push(chunk);
}
chunk = defaultChunk;
}
chunk += `${splitText2Lines[i]}\n`;