in tools/cleaner.ts [281:299]
export function dumpAuthors(): AllTopicTypes {
/* Utility function to get a content migration spreadsheet of authors */
const allAuthorTypes: AllTopicTypes = {};
guideSites.forEach((site) => {
allAuthorTypes[site] = {
author: [],
};
const authors = path.normalize(`${__dirname}/../sites/${site}/authors`);
const resourceFiles = getAllFiles(authors, []);
const markdownResources = parseFrontmatter(resourceFiles);
Object.keys(markdownResources).forEach((filePath) => {
const label = filePath.split(path.sep)[10];
if (label !== "index.md") {
allAuthorTypes[site]["author"].push(label);
}
});
});
return allAuthorTypes;
}