|
1 | 1 | // @ts-check |
2 | 2 |
|
| 3 | +const { loadSidebar } = require("./scripts/sidebars-utils"); |
| 4 | + |
3 | 5 | /** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */ |
4 | 6 | const sidebars = { |
5 | 7 | docs: [ |
@@ -241,87 +243,87 @@ const sidebars = { |
241 | 243 | { |
242 | 244 | type: "category", |
243 | 245 | label: "Agent WordLift", |
244 | | - items: require("./docs/api/agent/sidebar.js").default, |
| 246 | + items: loadSidebar("./docs/api/agent/sidebar"), |
245 | 247 | }, |
246 | 248 | { |
247 | 249 | type: "category", |
248 | 250 | label: "Audit", |
249 | | - items: require("./docs/api/audit/sidebar.js").default, |
| 251 | + items: loadSidebar("./docs/api/audit/sidebar"), |
250 | 252 | }, |
251 | 253 | { |
252 | 254 | type: "category", |
253 | 255 | label: "Analysis", |
254 | | - items: require("./docs/api/analysis/sidebar.js").default, |
| 256 | + items: loadSidebar("./docs/api/analysis/sidebar"), |
255 | 257 | }, |
256 | 258 | { |
257 | 259 | type: "category", |
258 | 260 | label: "Classification", |
259 | | - items: require("./docs/api/classification/sidebar.js").default, |
| 261 | + items: loadSidebar("./docs/api/classification/sidebar"), |
260 | 262 | }, |
261 | 263 | { |
262 | 264 | type: "category", |
263 | 265 | label: "Content Generation", |
264 | | - items: require("./docs/api/content-generation/sidebar.js").default, |
| 266 | + items: loadSidebar("./docs/api/content-generation/sidebar"), |
265 | 267 | }, |
266 | 268 | { |
267 | 269 | type: "category", |
268 | 270 | label: "Content Evaluations", |
269 | | - items: require("./docs/api/content-evaluations/sidebar.js").default, |
| 271 | + items: loadSidebar("./docs/api/content-evaluations/sidebar"), |
270 | 272 | }, |
271 | 273 | { |
272 | 274 | type: "category", |
273 | 275 | label: "Fact Check", |
274 | | - items: require("./docs/api/fact-check/sidebar.js").default, |
| 276 | + items: loadSidebar("./docs/api/fact-check/sidebar"), |
275 | 277 | }, |
276 | 278 | { |
277 | 279 | type: "category", |
278 | 280 | label: "GraphQL", |
279 | | - items: require("./docs/api/graphql/sidebar.js").default, |
| 281 | + items: loadSidebar("./docs/api/graphql/sidebar"), |
280 | 282 | }, |
281 | 283 | { |
282 | 284 | type: "category", |
283 | 285 | label: "Inspector", |
284 | | - items: require("./docs/api/inspector/sidebar.js").default, |
| 286 | + items: loadSidebar("./docs/api/inspector/sidebar"), |
285 | 287 | }, |
286 | 288 | { |
287 | 289 | type: "category", |
288 | 290 | label: "KPI Events", |
289 | | - items: require("./docs/api/events/sidebar.js").default, |
| 291 | + items: loadSidebar("./docs/api/events/sidebar"), |
290 | 292 | }, |
291 | 293 | { |
292 | 294 | type: "category", |
293 | 295 | label: "Long Tail", |
294 | | - items: require("./docs/api/long-tail/sidebar.js").default, |
| 296 | + items: loadSidebar("./docs/api/long-tail/sidebar"), |
295 | 297 | }, |
296 | 298 | { |
297 | 299 | type: "category", |
298 | 300 | label: "Manager", |
299 | | - items: require("./docs/api/manager/sidebar.js").default, |
| 301 | + items: loadSidebar("./docs/api/manager/sidebar"), |
300 | 302 | }, |
301 | 303 | { |
302 | 304 | type: "category", |
303 | 305 | label: "Google Search Console", |
304 | | - items: require("./docs/api/gsc-url-inspections/sidebar.js").default, |
| 306 | + items: loadSidebar("./docs/api/gsc-url-inspections/sidebar"), |
305 | 307 | }, |
306 | 308 | { |
307 | 309 | type: "category", |
308 | 310 | label: "Middleware", |
309 | | - items: require("./docs/api/middleware/sidebar.js").default, |
| 311 | + items: loadSidebar("./docs/api/middleware/sidebar"), |
310 | 312 | }, |
311 | 313 | { |
312 | 314 | type: "category", |
313 | 315 | label: "Summarization", |
314 | | - items: require("./docs/api/summarizer/sidebar.js").default, |
| 316 | + items: loadSidebar("./docs/api/summarizer/sidebar"), |
315 | 317 | }, |
316 | 318 | { |
317 | 319 | type: "category", |
318 | 320 | label: "Sitemap Generator", |
319 | | - items: require("./docs/api/sitemap-generator/sidebar.js").default, |
| 321 | + items: loadSidebar("./docs/api/sitemap-generator/sidebar"), |
320 | 322 | }, |
321 | 323 | { |
322 | 324 | type: "category", |
323 | 325 | label: "Query Fan-Out", |
324 | | - items: require("./docs/api/query-fan-out/sidebar.js").default, |
| 326 | + items: loadSidebar("./docs/api/query-fan-out/sidebar"), |
325 | 327 | }, |
326 | 328 | ], |
327 | 329 | }, |
|
0 commit comments