|
1 | 1 | const { join, resolve } = require('node:path'); |
2 | 2 |
|
3 | 3 | 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'); |
5 | 5 |
|
6 | 6 | const { config } = require('./apify-docs-theme'); |
7 | 7 | const { collectSlugs } = require('./tools/utils/collectSlugs'); |
@@ -196,23 +196,23 @@ module.exports = { |
196 | 196 | md = md.replace('-->', '-->'); |
197 | 197 | } |
198 | 198 |
|
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'); |
203 | 203 |
|
204 | 204 | return md; |
205 | 205 | }, |
206 | | - createInfoPageMD: (pageData) => { |
207 | | - let md = createInfoPageMD(pageData); |
| 206 | + // createInfoPageMD: (pageData) => { |
| 207 | + // let md = createInfoPageMD(pageData); |
208 | 208 |
|
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'); |
213 | 213 |
|
214 | | - return md; |
215 | | - }, |
| 214 | + // return md; |
| 215 | + // }, |
216 | 216 | }, |
217 | 217 | sidebarOptions: { |
218 | 218 | groupPathsBy: 'tagGroup', |
|
0 commit comments