Skip to content

Commit

Permalink
sync: Updates from docusaurus-template
Browse files Browse the repository at this point in the history
  • Loading branch information
writedocs-integration committed Jan 24, 2025
1 parent 6f7edc0 commit 4893b6c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "writedocs",
"version": "1.3.20",
"version": "1.3.22",
"private": false,
"preferGlobal": true,
"author": "WriteDocs",
Expand Down
4 changes: 3 additions & 1 deletion writedocs/api.merge.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ const processDirectory = (dirPath, isApiPagesDir = true) => {
const remainingContent = apiMdxContent.slice(
endpointIndex + "</MethodEndpoint>".length
);
const nextTagMatch = remainingContent.match(/<[A-Za-z]/);
const nextTagMatch = remainingContent.match(
/<(ParamsDetails|RequestSchema|StatusCodes|OperationTabs|TabItem|Heading)[^>]*>/
);
const nextTagIndex = nextTagMatch ? nextTagMatch.index : -1;

// Create the new content by combining the parts
Expand Down

0 comments on commit 4893b6c

Please sign in to comment.