Remove global interfaces documentation
This commit is contained in:
parent
6c48ad86e6
commit
3787a22444
1 changed files with 5 additions and 0 deletions
|
@ -42,6 +42,11 @@ walk("./components", (dir, file, resolve) => {
|
||||||
walk("./docs/api", function addFrontmatter(dir, file, resolve) {
|
walk("./docs/api", function addFrontmatter(dir, file, resolve) {
|
||||||
if (path.extname(file) !== ".md") return;
|
if (path.extname(file) !== ".md") return;
|
||||||
const filePath = path.resolve(dir, file);
|
const filePath = path.resolve(dir, file);
|
||||||
|
if (dir.endsWith("interfaces")) {
|
||||||
|
fs.unlinkSync(filePath);
|
||||||
|
resolve();
|
||||||
|
return;
|
||||||
|
}
|
||||||
const data = fs.readFileSync(filePath).toString();
|
const data = fs.readFileSync(filePath).toString();
|
||||||
const fd = fs.openSync(filePath, "w+");
|
const fd = fs.openSync(filePath, "w+");
|
||||||
fs.writeSync(fd, frontmatter);
|
fs.writeSync(fd, frontmatter);
|
||||||
|
|
Loading…
Reference in a new issue