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
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,9 @@ yarn-error.log*
.env*.local
.vercel
next-env.d.ts

# wrangler files
.wrangler
.dev.vars*
!.dev.vars.example
!.env.example
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,7 @@ resources:
features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
- [Fumadocs](https://fumadocs.dev) - learn about Fumadocs

## Deploy

`npm run deploy`
4 changes: 3 additions & 1 deletion app/api/search/route.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { source } from "@/lib/source";
import { createFromSource } from "fumadocs-core/search/server";

export const { GET } = createFromSource(source, {
export const dynamic = "force-static";

export const { staticGET: GET } = createFromSource(source, {
// https://docs.orama.com/docs/orama-js/supported-languages
language: "english",
});
5 changes: 4 additions & 1 deletion app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ export default function Layout({ children }: LayoutProps<"/">) {
suppressHydrationWarning
>
<body className="flex min-h-screen flex-col">
<RootProvider theme={{ defaultTheme: "system" }}>
<RootProvider
theme={{ defaultTheme: "system" }}
search={{ options: { type: "static", api: "/api/search" } }}
>
{children}
</RootProvider>
</body>
Expand Down
14 changes: 12 additions & 2 deletions app/llms.txt/route.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
import { source } from "@/lib/source";
import { getPageMarkdownUrl, source } from "@/lib/source";
import { llms } from "fumadocs-core/source";

export const revalidate = false;

export function GET() {
return new Response(llms(source).index());
let text = llms(source).index();
const pages = source
.getPages()
.toSorted((a, b) => b.url.length - a.url.length);

for (const page of pages) {
const markdownUrl = getPageMarkdownUrl(page).url;
text = text.replaceAll(`](${page.url})`, `](${markdownUrl})`);
}

return new Response(text);
}
3 changes: 3 additions & 0 deletions content/docs/integrate/kaspa-node.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ cargo run --release --bin kaspad -- \
--rpclisten-borsh=0.0.0.0
```

> [!NOTE]
> Prebuilt binaries per platform are available on [latest release](https://github.com/kaspanet/rusty-kaspa/releases/latest)

## From Docker

Use the Docker image: [`kaspanet/rusty-kaspad`](https://hub.docker.com/r/kaspanet/rusty-kaspad).
Expand Down
4 changes: 4 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ const withMDX = createMDX();
/** @type {import('next').NextConfig} */
const config = {
reactStrictMode: true,
output: "export",
images: {
unoptimized: true,
},
};

export default withMDX(config);
Loading