Skip to content

Commit ae32519

Browse files
authored
fix(docs-gen): minor fixes (#771)
1 parent c5b26d0 commit ae32519

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

docs-gen/src/resources/helpers/meta.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ export function meta(this: ProjectReflection) {
1818

1919
(comment?.tags || []).forEach((tag: CommentTag) => {
2020
if (tag.tagName !== 'description') {
21-
md.push(`${tag.tagName}: ${tag.text}`.replace('\n', ''));
21+
const escape = tag.tagName !== 'menuorder';
22+
const text = escape ? `'${tag.text}'` : tag.text;
23+
md.push(`${tag.tagName === 'menuorder' ? 'menuOrder' : tag.tagName}: ${text}`.replace('\n', ''));
2224
}
2325
});
2426
md.push('---');
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
{{meta}}
1+
{{{meta}}}
22

33
{{> members}}

docs-gen/src/resources/partials/member.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
{{else}}
99

10-
{{heading 3}}{{{ memberTitle }}}
10+
{{heading 3}} {{{ memberTitle }}}
1111

1212
{{/ifParentIsModule}}
1313

0 commit comments

Comments
 (0)