Skip to content

Commit 86f42b6

Browse files
Remove all llm buttons code
1 parent 06e3599 commit 86f42b6

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

docusaurus.config.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const { join, resolve } = require('node:path');
22

33
const clsx = require('clsx');
4-
const { createApiPageMD, createInfoPageMD } = require('docusaurus-plugin-openapi-docs/lib/markdown');
4+
const { createApiPageMD } = require('docusaurus-plugin-openapi-docs/lib/markdown');
55

66
const { config } = require('./apify-docs-theme');
77
const { collectSlugs } = require('./tools/utils/collectSlugs');
@@ -196,23 +196,23 @@ module.exports = {
196196
md = md.replace('-->', '-->');
197197
}
198198

199-
// Find the first Heading h1 and add LLMButtons after it
200-
// eslint-disable-next-line max-len
201-
const headingRegex = /(<Heading[^>]*as=\{"h1"\}[^>]*className=\{"openapi__heading"\}[^>]*children=\{[^}]*\}[^>]*>\s*<\/Heading>)/;
202-
md = md.replace(headingRegex, '$1\n\n<LLMButtons />\n');
199+
// // Find the first Heading h1 and add LLMButtons after it
200+
// // eslint-disable-next-line max-len
201+
// const headingRegex = /(<Heading[^>]*as=\{"h1"\}[^>]*className=\{"openapi__heading"\}[^>]*children=\{[^}]*\}[^>]*>\s*<\/Heading>)/;
202+
// md = md.replace(headingRegex, '$1\n\n<LLMButtons />\n');
203203

204204
return md;
205205
},
206-
createInfoPageMD: (pageData) => {
207-
let md = createInfoPageMD(pageData);
206+
// createInfoPageMD: (pageData) => {
207+
// let md = createInfoPageMD(pageData);
208208

209-
// Find the first Heading h1 and add LLMButtons after it
210-
// eslint-disable-next-line max-len
211-
const headingRegex = /(<Heading[^>]*as=\{"h1"\}[^>]*className=\{"openapi__heading"\}[^>]*children=\{[^}]*\}[^>]*>\s*<\/Heading>)/;
212-
md = md.replace(headingRegex, '$1\n\n<LLMButtons />\n');
209+
// // Find the first Heading h1 and add LLMButtons after it
210+
// // eslint-disable-next-line max-len
211+
// const headingRegex = /(<Heading[^>]*as=\{"h1"\}[^>]*className=\{"openapi__heading"\}[^>]*children=\{[^}]*\}[^>]*>\s*<\/Heading>)/;
212+
// md = md.replace(headingRegex, '$1\n\n<LLMButtons />\n');
213213

214-
return md;
215-
},
214+
// return md;
215+
// },
216216
},
217217
sidebarOptions: {
218218
groupPathsBy: 'tagGroup',

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)