Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
89ca81d1
authored
Nov 05, 2025
by
Archer
Committed by
GitHub
Nov 05, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: document deploy (#5867)
parent
bf33f7af
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
12 deletions
+16
-12
document/next.config.mjs
+1
-9
document/source.config.ts
+3
-1
packages/global/common/string/textSplitter.ts
+12
-2
No files found.
document/next.config.mjs
View file @
89ca81d1
import { createMDX } from 'fumadocs-mdx/next';
const withMDX = createMDX({
mdxOptions: {
remarkPlugins: {
image: {
checkImageSize: false
}
}
}
});
const withMDX = createMDX();
/** @type {import('next').NextConfig} */
const config = {
...
...
document/source.config.ts
View file @
89ca81d1
...
...
@@ -17,6 +17,8 @@ export const docs = defineDocs({
export
default
defineConfig
({
lastModifiedTime
:
'git'
,
mdxOptions
:
{
// MDX options
remarkImageOptions
:
{
external
:
false
}
}
});
packages/global/common/string/textSplitter.ts
View file @
89ca81d1
...
...
@@ -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`
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment