Skip to content

Commit 2faf9eb

Browse files
Remove md functionality
1 parent 90c462f commit 2faf9eb

File tree

1 file changed

+1
-33
lines changed

1 file changed

+1
-33
lines changed

docusaurus.config.js

Lines changed: 1 addition & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -196,40 +196,8 @@ module.exports = {
196196
md = md.replace('-->', '-->');
197197
}
198198

199-
// // Add LLMButtons import and component
200-
// if (!md.includes('import LLMButtons')) {
201-
// // Find the first import statement and add LLMButtons import after it
202-
// const firstImportMatch = md.match(/^import\s+.*?from\s+["'][^"']*["'];?\s*$/m);
203-
// if (firstImportMatch) {
204-
// const importEnd = md.indexOf(firstImportMatch[0]) + firstImportMatch[0].length;
205-
// const llmButtonsImport = '\nimport LLMButtons from "@site/src/components/LLMButtons";';
206-
// md = md.slice(0, importEnd) + llmButtonsImport + md.slice(importEnd);
207-
// }
208-
// }
209-
210-
// // Find the first Heading h1 and add LLMButtons after it
211-
// // eslint-disable-next-line max-len
212-
// const headingRegex = /(<Heading[^>]*as=\{"h1"\}[^>]*className=\{"openapi__heading"\}[^>]*children=\{[^}]*\}[^>]*>\s*<\/Heading>)/;
213-
// md = md.replace(headingRegex, '$1\n\n<LLMButtons />\n');
214-
215-
return md;
216-
},
217-
createInfoPageMD: (pageData) => {
218-
let md = createInfoPageMD(pageData);
219-
220-
// // Add LLMButtons import and component
221-
// if (!md.includes('import LLMButtons')) {
222-
// // eslint-disable-next-line max-len
223-
// md = md.replace('import Heading from "@theme/Heading";', 'import Heading from "@theme/Heading";\nimport LLMButtons from "@site/src/components/LLMButtons";');
224-
// }
225-
226-
// // Find the first Heading h1 and add LLMButtons after it
227-
// // eslint-disable-next-line max-len
228-
// const headingRegex = /(<Heading[^>]*as=\{"h1"\}[^>]*className=\{"openapi__heading"\}[^>]*children=\{[^}]*\}[^>]*>\s*<\/Heading>)/;
229-
// md = md.replace(headingRegex, '$1\n\n<LLMButtons />\n');
230-
231199
return md;
232-
},
200+
}
233201
},
234202
sidebarOptions: {
235203
groupPathsBy: 'tagGroup',

0 commit comments

Comments
 (0)