build/documentation/generate-typedocs.js
function addHeaderToReadme(packageName) {

    const readmePath = path.join(destDir, packageName, 'api', 'README.md');
    const readmeText = fs.readFileSync(readmePath).toString();

    var docusaurusHeader = 
    `---\n` + 
    `id: index\n` +
    `---\n\n`;

    try {
        fs.writeFileSync(readmePath, docusaurusHeader);
        fs.appendFileSync(readmePath, readmeText);
    } catch (err) {
        console.log(chalk.red(err));
    }

}
function addHeaderToReadme(packageName) {

    const readmePath = path.join(destDir, packageName, 'api', 'README.md');
    const readmeText = fs.readFileSync(readmePath).toString();

    var docusaurusHeader = 
    `---\n` + 
    `id: index\n` +
    `---\n\n`;

    try {
        fs.writeFileSync(readmePath, docusaurusHeader);
        fs.appendFileSync(readmePath, readmeText);
    } catch (err) {
        console.log(chalk.red(err));
    }

}
function addHeaderToReadme ( packageName ) { const readmePath = path . join ( destDir , packageName , 'api' , 'README.md' ) ; const readmeText = fs . readFileSync ( readmePath ) . toString ( ) ; var docusaurusHeader = ` \n ` + ` \n ` + ` \n \n ` ; try { fs . writeFileSync ( readmePath , docusaurusHeader ) ; fs . appendFileSync ( readmePath , readmeText ) ; } catch ( err ) { console . log ( chalk . red ( err ) ) ; } }
If the TypeDoc readme doesn't have this header
It won't be accessible in docusaurus
If the TypeDoc readme doesn t have this header It won t be accessible in docusaurus