Skip to content

Commit

Permalink
Use API to bold (#6696)
Browse files Browse the repository at this point in the history
  • Loading branch information
hsubox76 authored Oct 17, 2022
1 parent 2012b6b commit 012fd76
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion repo-scripts/api-documenter/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = `<strong>${headerText}</strong>`;
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 })
])
])
])
])
Expand Down
3 changes: 1 addition & 2 deletions repo-scripts/api-documenter/src/toc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ export function generateToc({
if (jsSdk) {
const firebaseToc: ITocItem = {
title: 'firebase',
path: `${g3Path}/index`,
section: []
path: `${g3Path}/index`
};
toc.push(firebaseToc);
}
Expand Down

0 comments on commit 012fd76

Please sign in to comment.