mirror of
https://github.com/labring/FastGPT.git
synced 2025-12-25 20:02:47 +00:00
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
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:
parent
bf33f7af2e
commit
89ca81d1a4
|
|
@ -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 = {
|
||||
|
|
|
|||
|
|
@ -17,6 +17,8 @@ export const docs = defineDocs({
|
|||
export default defineConfig({
|
||||
lastModifiedTime: 'git',
|
||||
mdxOptions: {
|
||||
// MDX options
|
||||
remarkImageOptions: {
|
||||
external: false
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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`;
|
||||
|
|
|
|||
Loading…
Reference in New Issue