Skip to content

Commit

Permalink
fix(docs-gen): minor fixes (#771)
Browse files Browse the repository at this point in the history
  • Loading branch information
vasilev-alex authored Jun 30, 2020
1 parent c5b26d0 commit ae32519
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion docs-gen/src/resources/helpers/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ export function meta(this: ProjectReflection) {

(comment?.tags || []).forEach((tag: CommentTag) => {
if (tag.tagName !== 'description') {
md.push(`${tag.tagName}: ${tag.text}`.replace('\n', ''));
const escape = tag.tagName !== 'menuorder';
const text = escape ? `'${tag.text}'` : tag.text;
md.push(`${tag.tagName === 'menuorder' ? 'menuOrder' : tag.tagName}: ${text}`.replace('\n', ''));
}
});
md.push('---');
Expand Down
2 changes: 1 addition & 1 deletion docs-gen/src/resources/partials/main.hbs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{{meta}}
{{{meta}}}

{{> members}}
2 changes: 1 addition & 1 deletion docs-gen/src/resources/partials/member.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

{{else}}

{{heading 3}}{{{ memberTitle }}}
{{heading 3}} {{{ memberTitle }}}

{{/ifParentIsModule}}

Expand Down

0 comments on commit ae32519

Please sign in to comment.