Skip to content

Commit 357eb56

Browse files
committed
feat: categories & join files
1 parent fbfb762 commit 357eb56

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

docusaurus.config.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,27 @@ module.exports = {
272272
includeGeneratedIndex: false,
273273
includePages: true,
274274
relativePaths: false,
275+
excludeRoutes: [
276+
'/',
277+
],
278+
routeRules: [
279+
{
280+
route: '/api/**',
281+
categoryName: 'Apify API',
282+
},
283+
{
284+
route: '/academy/**',
285+
categoryName: 'Apify academy',
286+
},
287+
{
288+
route: '/legal/**',
289+
categoryName: 'Legal documents',
290+
},
291+
{
292+
route: '/platform/**',
293+
categoryName: 'Platform documentation',
294+
},
295+
],
275296
},
276297
},
277298
],

scripts/joinLlmsFiles.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ async function joinFiles() {
3131
ROUTES.map((route) => fetchFile(route, file)),
3232
);
3333
const joined = contents.filter(Boolean).join('\n\n');
34-
await fs.writeFile(path.join(BUILD_DIR, file), joined, 'utf8');
34+
await fs.appendFile(path.join(BUILD_DIR, file), joined, 'utf8');
3535
console.log(`Wrote ${file} to build/`);
3636
}
3737
}

0 commit comments

Comments
 (0)