Skip to content

Commit

Permalink
lexisort
Browse files Browse the repository at this point in the history
  • Loading branch information
abvthecity committed Jun 10, 2024
1 parent 42762e6 commit 740b9d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class NavigationConfigConverter {
basePath: string | undefined,
lexicographic?: boolean,
): FernNavigation.RootNode {
return new NavigationConfigConverter(config, apis, basePath).convert();
return new NavigationConfigConverter(config, apis, basePath, lexicographic).convert();
}

#idgen = new NodeIdGenerator();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function convertLoadDocsForUrlResponse(response: DocsV2Read.LoadDocsForUr
function isLexicographicSortEnabled(domain: string): boolean {
// HACKHACK: This is a temporary solution to enable lexicographic sorting for AIA docs.
// Vercel's edge config UI is broken right now so we can't modify it there.
return domain.startsWith("aia.docs.buildwithfern.com");
return domain.toLowerCase().includes("aia.docs.buildwithfern.com");
}

function hackReorderApis(
Expand Down

0 comments on commit 740b9d8

Please sign in to comment.