From 012fd763ca3b16b5a0ebff38ef99888a20165f52 Mon Sep 17 00:00:00 2001 From: Christina Holland Date: Mon, 17 Oct 2022 13:39:01 -0700 Subject: [PATCH] Use API to bold (#6696) --- repo-scripts/api-documenter/package.json | 2 +- .../api-documenter/src/documenters/MarkdownDocumenter.ts | 5 +++-- repo-scripts/api-documenter/src/toc.ts | 3 +-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/repo-scripts/api-documenter/package.json b/repo-scripts/api-documenter/package.json index 03883703044..9e4911fb24d 100644 --- a/repo-scripts/api-documenter/package.json +++ b/repo-scripts/api-documenter/package.json @@ -1,6 +1,6 @@ { "name": "@firebase/api-documenter", - "version": "0.2.0", + "version": "0.2.1", "description": "Read JSON files from api-extractor, generate documentation pages", "repository": { "directory": "repo-scripts/documenter", diff --git a/repo-scripts/api-documenter/src/documenters/MarkdownDocumenter.ts b/repo-scripts/api-documenter/src/documenters/MarkdownDocumenter.ts index 2be5cb87143..2265c23b83b 100644 --- a/repo-scripts/api-documenter/src/documenters/MarkdownDocumenter.ts +++ b/repo-scripts/api-documenter/src/documenters/MarkdownDocumenter.ts @@ -975,13 +975,14 @@ page_type: reference // Header for each group of functions grouped by first param. // Doesn't make sense if there's only one group. const headerText = paramKey ? `function(${paramKey}...)` : 'function()'; - const formattedHeaderText = `${headerText}`; if (sortedFunctionsFirstParamKeys.length > 1) { finalFunctionsTable.addRow( new DocTableRow({ configuration }, [ new DocTableCell({ configuration }, [ new DocParagraph({ configuration }, [ - new DocPlainText({ configuration, text: formattedHeaderText }) + new DocEmphasisSpan({ configuration, bold: true }, [ + new DocPlainText({ configuration, text: headerText }) + ]) ]) ]) ]) diff --git a/repo-scripts/api-documenter/src/toc.ts b/repo-scripts/api-documenter/src/toc.ts index 71a1031ab59..b4887949407 100644 --- a/repo-scripts/api-documenter/src/toc.ts +++ b/repo-scripts/api-documenter/src/toc.ts @@ -48,8 +48,7 @@ export function generateToc({ if (jsSdk) { const firebaseToc: ITocItem = { title: 'firebase', - path: `${g3Path}/index`, - section: [] + path: `${g3Path}/index` }; toc.push(firebaseToc); }