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) {
|
await 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);
|
||||||
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+");
|
const fd = fs.openSync(filePath, "w+");
|
||||||
fs.writeSync(fd, frontmatter);
|
fs.writeSync(fd, frontmatter);
|
||||||
fs.writeSync(fd, data);
|
fs.writeSync(fd, data);
|
||||||
|
|
|
@ -48,8 +48,6 @@
|
||||||
|
|
||||||
{{/each}}
|
{{/each}}
|
||||||
|
|
||||||
{{> member.sources}}
|
|
||||||
|
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if type.declaration.children}}
|
{{#if type.declaration.children}}
|
||||||
|
|
|
@ -66,10 +66,12 @@
|
||||||
|
|
||||||
### {{name}}
|
### {{name}}
|
||||||
|
|
||||||
{{> member.signature showSources=true }}
|
{{> member.signature showSources=false }}
|
||||||
|
|
||||||
{{/each}}
|
{{/each}}
|
||||||
|
|
||||||
|
{{> model.sources }}
|
||||||
|
|
||||||
{{/with}}
|
{{/with}}
|
||||||
|
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
Loading…
Reference in a new issue