Remove global interfaces documentation

This commit is contained in:
thepaperpilot 2022-07-14 00:36:51 -05:00
parent 6c48ad86e6
commit 3787a22444

View file

@ -42,6 +42,11 @@ walk("./components", (dir, file, resolve) => {
walk("./docs/api", function addFrontmatter(dir, file, resolve) {
if (path.extname(file) !== ".md") return;
const filePath = path.resolve(dir, file);
if (dir.endsWith("interfaces")) {
fs.unlinkSync(filePath);
resolve();
return;
}
const data = fs.readFileSync(filePath).toString();
const fd = fs.openSync(filePath, "w+");
fs.writeSync(fd, frontmatter);