Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
delucis authored and astrobot-houston committed Sep 27, 2023
1 parent 006d606 commit 6089372
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/starlight/utils/routing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,12 @@ interface Path extends GetStaticPathsItem {
const normalizeIndexSlug = (slug: string) => (slug === 'index' ? '' : slug);

/** All entries in the docs content collection. */
const docs: StarlightDocsEntry[] = (await getCollection('docs') ?? []).map(({ slug, ...entry }) => ({
...entry,
slug: normalizeIndexSlug(slug),
}));
const docs: StarlightDocsEntry[] = ((await getCollection('docs')) ?? []).map(
({ slug, ...entry }) => ({
...entry,
slug: normalizeIndexSlug(slug),
})
);

function getRoutes(): Route[] {
const routes: Route[] = docs.map((entry) => ({
Expand Down

0 comments on commit 6089372

Please sign in to comment.