Skip to content
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
2 changes: 1 addition & 1 deletion apps/portal/src/app/changelog/ghost.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export async function fetchChangeLogs() {
key: GHOST_THIRDWEB_BLOG_KEY,
fields: ["title", "slug", "published_at"].join(","),
filter: "tag:changelog",
limit: "50",
limit: "20",
order: "published_at DESC",
include: ["authors", "tags"].join(","),
})
Expand Down
12 changes: 8 additions & 4 deletions apps/portal/src/app/references/components/TDoc/PageLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ import { getSidebarLinkGroups } from "./utils/getSidebarLinkgroups";
import { fetchAllSlugs, getSlugToDocMap } from "./utils/slugs";
import { nameToSubgroupSlug, subgroups } from "./utils/subgroups";

type PageProps = { params: Promise<{ version: string; slug?: string[] }> };
type PageProps = {
params: Promise<{ version: string; slug?: string[] }>;
};

type LayoutProps = {
params: Promise<{ version: string }>;
children: React.ReactNode;
Expand Down Expand Up @@ -100,7 +103,9 @@ export function getTDocPage(options: {
}

// statically generate pages for latest version
async function generateStaticParams(): Promise<PageProps["params"][]> {
async function generateStaticParams(): Promise<
Awaited<PageProps["params"]>[]
> {
const versions = await getVersions();

const returnVal = await Promise.all(
Expand All @@ -125,8 +130,7 @@ export function getTDocPage(options: {
}),
);

const paths = returnVal.flat();
return paths.map((p) => Promise.resolve(p));
return returnVal.flat();
}

async function generateMetadata(props: PageProps): Promise<Metadata> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
export const subgroups = {
components: "UI Components",
hooks: "React Hooks",
classes: "Classes",
functions: "Core Functions",
variables: "Variables",
types: "Types",
enums: "Enums",
};

export const nameToSubgroupSlug = (() => {
Expand Down
2 changes: 1 addition & 1 deletion apps/portal/src/app/typescript/v5/chain/page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { defineChain } from "thirdweb";
const myChain = defineChain(myChainId);
```

The SDK comes with predefined [popular chains](/references/typescript/v5/variables) like `base`, `polygon`, and more exported from the `thirdweb/chains` entrypoint.
The SDK comes with predefined popular chains like `base`, `polygon`, and more exported from the `thirdweb/chains` entrypoint.

```ts
import { polygon } from "thirdweb/chains";
Expand Down
Loading