diff --git a/postProcess.js b/postProcess.js index 09c9ede3..d4a7cd59 100644 --- a/postProcess.js +++ b/postProcess.js @@ -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); diff --git a/profectus-theme/resources/partials/member.declaration.hbs b/profectus-theme/resources/partials/member.declaration.hbs index 4746f237..e2c6c5b5 100644 --- a/profectus-theme/resources/partials/member.declaration.hbs +++ b/profectus-theme/resources/partials/member.declaration.hbs @@ -48,8 +48,6 @@ {{/each}} -{{> member.sources}} - {{/if}} {{#if type.declaration.children}} diff --git a/profectus-theme/resources/templates/reflection.hbs b/profectus-theme/resources/templates/reflection.hbs index ce29bc54..7858b785 100644 --- a/profectus-theme/resources/templates/reflection.hbs +++ b/profectus-theme/resources/templates/reflection.hbs @@ -66,10 +66,12 @@ ### {{name}} -{{> member.signature showSources=true }} +{{> member.signature showSources=false }} {{/each}} +{{> model.sources }} + {{/with}} {{/if}}