From 2deeb4bb52d6e86e36db81623aae5fddead6931d Mon Sep 17 00:00:00 2001 From: Anthony Lawn Date: Fri, 14 Apr 2023 01:43:05 -0500 Subject: [PATCH] Last fixes --- postProcess.js | 2 +- profectus-theme/resources/partials/member.declaration.hbs | 2 -- profectus-theme/resources/templates/reflection.hbs | 4 +++- 3 files changed, 4 insertions(+), 4 deletions(-) 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}}