1
0
Fork 0
mirror of https://github.com/codex-team/codex.docs.git synced 2025-07-19 13:19:42 +02:00

Added enable parameter for rendering index page

This commit is contained in:
slaveeks 2022-12-13 13:56:44 +03:00
parent 8a8db5c136
commit 3b2bc0548b
3 changed files with 9 additions and 3 deletions

View file

@ -111,7 +111,10 @@ export default async function buildStatic(): Promise<void> {
await renderPage(page);
}
await renderIndexPage(config.indexPageUri);
// Check if index page is enabled
if (config.indexPage.enabled) {
await renderIndexPage(config.indexPage.uri);
}
console.log('Static files built');
console.log('Copy public directory');