Skip to content

Commit 8bf9f4b

Browse files
[getsentry/action-github-commit] Auto commit
1 parent ce8368a commit 8bf9f4b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

scripts/algolia.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ indexAndUpload();
6464
async function indexAndUpload() {
6565
// the page front matters are the source of truth for the static doc routes
6666
// as they are used directly by generateStaticParams() on [[..path]] page
67-
const pageFrontMatters = await(
68-
isDeveloperDocs ? getDevDocsFrontMatter() : getDocsFrontMatter()
69-
);
67+
const pageFrontMatters = await (isDeveloperDocs
68+
? getDevDocsFrontMatter()
69+
: getDocsFrontMatter());
7070
const records = await generateAlogliaRecords(pageFrontMatters);
7171
console.log('🔥 Generated %d new Algolia records.', records.length);
7272
const existingRecordIds = await fetchExistingRecordIds(index);

src/docTree.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export function getDocsRootNode(): Promise<DocNode> {
4040

4141
async function getDocsRootNodeUncached(): Promise<DocNode> {
4242
return frontmatterToTree(
43-
await(isDeveloperDocs ? getDevDocsFrontMatter() : getDocsFrontMatter())
43+
await (isDeveloperDocs ? getDevDocsFrontMatter() : getDocsFrontMatter())
4444
);
4545
}
4646

0 commit comments

Comments
 (0)