mirror of
https://github.com/Pomax/BezierInfo-2.git
synced 2025-02-24 09:33:19 +01:00
18 lines
542 B
JavaScript
18 lines
542 B
JavaScript
import getAllChapterFiles from "./build/get-all-chapter-files.js";
|
|
import processLocale from "./build/process-locale.js";
|
|
import createIndexPages from "./build/create-index-page.js";
|
|
|
|
/**
|
|
* main entry point:
|
|
* - aggregate all content files organized by locale
|
|
* -
|
|
*/
|
|
getAllChapterFiles().then((chapterFiles) => {
|
|
const languageCodes = Object.keys(chapterFiles);
|
|
|
|
languageCodes.forEach(async (locale) => {
|
|
const chapters = await processLocale(locale, chapterFiles);
|
|
createIndexPages(locale, chapters, languageCodes);
|
|
});
|
|
});
|