(superBlock: string)
| 242 | } |
| 243 | |
| 244 | async function getChapters(superBlock: string) { |
| 245 | const blockMetaFile = await fs.readFile( |
| 246 | '../../curriculum/structure/superblocks/' + superBlock + '.json', |
| 247 | { encoding: 'utf8' } |
| 248 | ); |
| 249 | const blockMetaData = JSON.parse( |
| 250 | blockMetaFile |
| 251 | ) as ChapterModuleSuperblockStructure; |
| 252 | return blockMetaData.chapters; |
| 253 | } |
| 254 | |
| 255 | async function getModules(superBlock: string, chapterName: string) { |
| 256 | const blockMetaFile = await fs.readFile( |