Last fixes
This commit is contained in:
parent
90fb7230c8
commit
2deeb4bb52
3 changed files with 4 additions and 4 deletions
|
@ -84,7 +84,7 @@ function walk(dir, cb) {
|
|||
await walk("./docs/api", function addFrontmatter(dir, file, resolve) {
|
||||
if (path.extname(file) !== ".md") return;
|
||||
const filePath = path.resolve(dir, file);
|
||||
const data = fs.readFileSync(filePath).toString();
|
||||
const data = fs.readFileSync(filePath).toString().replaceAll(/\[K in keyof T\]/g, "\\[K in keyof T]");
|
||||
const fd = fs.openSync(filePath, "w+");
|
||||
fs.writeSync(fd, frontmatter);
|
||||
fs.writeSync(fd, data);
|
||||
|
|
|
@ -48,8 +48,6 @@
|
|||
|
||||
{{/each}}
|
||||
|
||||
{{> member.sources}}
|
||||
|
||||
{{/if}}
|
||||
|
||||
{{#if type.declaration.children}}
|
||||
|
|
|
@ -66,10 +66,12 @@
|
|||
|
||||
### {{name}}
|
||||
|
||||
{{> member.signature showSources=true }}
|
||||
{{> member.signature showSources=false }}
|
||||
|
||||
{{/each}}
|
||||
|
||||
{{> model.sources }}
|
||||
|
||||
{{/with}}
|
||||
|
||||
{{/if}}
|
||||
|
|
Loading…
Reference in a new issue