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 Nov 8, 2024
1 parent bd91703 commit 8f0f3a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/starlight/utils/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function getAstroI18nConfig(config: StarlightConfig): NonNullable<AstroConfig['i
? Object.entries(config.locales).map(([locale, localeConfig]) => {
return {
codes: [localeConfig?.lang ?? locale],
path: locale === 'root' ? localeConfig?.lang ?? BuiltInDefaultLocale.lang : locale,
path: locale === 'root' ? (localeConfig?.lang ?? BuiltInDefaultLocale.lang) : locale,
};
})
: [config.defaultLocale.lang],
Expand Down
2 changes: 1 addition & 1 deletion packages/starlight/utils/navigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ function getOrder(routeOrDir: Route | Dir): number {
return isDir(routeOrDir)
? Math.min(...Object.values(routeOrDir).flatMap(getOrder))
: // If no order value is found, set it to the largest number possible.
routeOrDir.entry.data.sidebar.order ?? Number.MAX_VALUE;
(routeOrDir.entry.data.sidebar.order ?? Number.MAX_VALUE);
}

/** Sort a directory’s entries by user-specified order or alphabetically if no order specified. */
Expand Down

0 comments on commit 8f0f3a9

Please sign in to comment.