Skip to content

[Portal] fix portal build #7154

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32,525 changes: 17,344 additions & 15,181 deletions apps/portal/public/llms-full.txt

Large diffs are not rendered by default.

1,646 changes: 843 additions & 803 deletions apps/portal/public/llms.txt

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ export function TypedocSummary(props: {
<Heading
key={Math.random()}
level={s.depth}
id={slugger.slug(s.children[0]?.data?.hName ?? "", false)}
// biome-ignore lint/suspicious/noExplicitAny: complex type
id={slugger.slug((s.children[0] as any)?.value ?? "", false)}
>
<TypedocSummary summary={s.children} />
</Heading>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -410,12 +410,17 @@ export function getExtensionName(
extensionBlockTag: BlockTag,
): string | undefined {
try {
const extensionNameString =
extensionBlockTag?.summary?.[0]?.data?.hName || "Common";

if (typeof extensionNameString === "string" && extensionNameString) {
return extensionNameString;
const summary = extensionBlockTag.summary?.[0];
if (summary && "children" in summary) {
const firstChild = summary.children[0];
if (firstChild && "value" in firstChild) {
const extensionNameString = firstChild.value || "Common";
if (typeof extensionNameString === "string" && extensionNameString) {
return extensionNameString;
}
}
}
return undefined;
} catch {
return undefined;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export function uniqueSlugger(options: {
base: string;
isUnique: (slug: string) => boolean;
}) {
const limit = 10;
const limit = 20;
const { base, isUnique } = options;

// if slug is unique, save it and return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@ const config = getTDocPage({
});

export default config.default;
// TODO: fix duplicate slugs
// export const generateStaticParams = config.generateStaticParams;
export const generateStaticParams = config.generateStaticParams;
export const generateMetadata = config.generateMetadata;
Loading