Skip to content

Commit 012fd76

Browse files
authored
Use API to bold (#6696)
1 parent 2012b6b commit 012fd76

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

repo-scripts/api-documenter/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@firebase/api-documenter",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"description": "Read JSON files from api-extractor, generate documentation pages",
55
"repository": {
66
"directory": "repo-scripts/documenter",

repo-scripts/api-documenter/src/documenters/MarkdownDocumenter.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -975,13 +975,14 @@ page_type: reference
975975
// Header for each group of functions grouped by first param.
976976
// Doesn't make sense if there's only one group.
977977
const headerText = paramKey ? `function(${paramKey}...)` : 'function()';
978-
const formattedHeaderText = `<strong>${headerText}</strong>`;
979978
if (sortedFunctionsFirstParamKeys.length > 1) {
980979
finalFunctionsTable.addRow(
981980
new DocTableRow({ configuration }, [
982981
new DocTableCell({ configuration }, [
983982
new DocParagraph({ configuration }, [
984-
new DocPlainText({ configuration, text: formattedHeaderText })
983+
new DocEmphasisSpan({ configuration, bold: true }, [
984+
new DocPlainText({ configuration, text: headerText })
985+
])
985986
])
986987
])
987988
])

repo-scripts/api-documenter/src/toc.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ export function generateToc({
4848
if (jsSdk) {
4949
const firebaseToc: ITocItem = {
5050
title: 'firebase',
51-
path: `${g3Path}/index`,
52-
section: []
51+
path: `${g3Path}/index`
5352
};
5453
toc.push(firebaseToc);
5554
}

0 commit comments

Comments
 (0)