const fs = require('fs-extra'); const utils = require('@jupyterlab/buildutils'); let index = ` JupyterLab API Docs

JupyterLab Packages

`; const data = utils.readJSONFile('./package.json'); const pkgs = Object.keys(data.dependencies); pkgs.forEach(function (pkg) { const name = pkg.split('/')[1]; index += `${name}\n`; }); index += `
`; fs.writeFileSync('../../docs/api/index.html', index);