Skip to content
Open
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
1 change: 1 addition & 0 deletions apps/developer-hub/content/docs/openapi/fortuna/index.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Overview
description: Overview of the Fortuna API
---

{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}
Expand Down
2 changes: 0 additions & 2 deletions apps/developer-hub/src/components/Pages/BasePage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ import { getMDXComponents } from "../../../mdx-components";
export function BasePage(props: { params: { slug: string[] } }) {
const page = source.getPage(props.params.slug);
if (!page) notFound();

const MDX = page.data.body;

return (
<DocsPage toc={page.data.toc} full={page.data.full}>
<DocsTitle>{page.data.title}</DocsTitle>
Expand Down
2 changes: 1 addition & 1 deletion apps/developer-hub/src/components/Root/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { RootProviders } from "@pythnetwork/component-library/AppShell";
import { RootProvider as FumadocsRootProvider } from "fumadocs-ui/provider";
import { RootProvider as FumadocsRootProvider } from "fumadocs-ui/provider/next";
import { NuqsAdapter } from "nuqs/adapters/next/app";
import type { ReactNode } from "react";

Expand Down
8 changes: 2 additions & 6 deletions apps/developer-hub/src/lib/source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {
} from "@phosphor-icons/react/dist/ssr";
import type { InferMetaType, InferPageType } from "fumadocs-core/source";
import { loader } from "fumadocs-core/source";
import { transformerOpenAPI } from "fumadocs-openapi/server";
import { openapiPlugin } from "fumadocs-openapi/server";
import { createElement } from "react";

import { docs } from "../../.source";
Expand Down Expand Up @@ -55,11 +55,7 @@ export const source = loader({
return icon ? createElement(icons[icon] ?? FolderSimpleDashed) : undefined;
},
source: docs.toFumadocsSource(),
pageTree: {
// types are very similar but not exactly the same
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
transformers: [transformerOpenAPI()],
},
plugins: [openapiPlugin()],
});

export type Page = InferPageType<typeof source>;
Expand Down
Loading
Loading