Skip to content

Commit

Permalink
Remove frontmatter description
Browse files Browse the repository at this point in the history
  • Loading branch information
Juuddi committed Jun 4, 2024
1 parent 69ce8cb commit 95934f9
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions docs/plugins/typedoc-plugin-mintlify-frontmatter.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,8 @@ export function load(app) {
* @param {import('typedoc-plugin-markdown').MarkdownPageEvent} page
*/
(page) => {
let summary = '';
if (page.model?.comment?.summary) {
summary = page.model.comment.summary[0].text + '...';
summary = summary.replace(/\n/g, ' ');
}
page.frontmatter = {
title: page.model?.name,
description: summary,
...page.frontmatter,
};
},
Expand Down

0 comments on commit 95934f9

Please sign in to comment.