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
File renamed without changes.
File renamed without changes.
16 changes: 16 additions & 0 deletions app/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import type { ReactNode } from 'react'
import '../public/styles/globals.css'

export const metadata = {
title: 'Tilekit',
description:
'Tilekit is a Rust-based declarative, cross-platform Modelfile-based SDK that lets developers customize open models and agent experiences.',
}

export default function RootLayout({ children }: { children: ReactNode }) {
return (
<html lang="en">
<body>{children}</body>
</html>
)
}
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion components/theme.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useConfig } from 'nextra-theme-docs'
import { useConfig } from '@nextra/theme-docs'
import { useRouter } from 'next/router'
import { useEffect } from 'react'
import { OpenGraph } from './OpenGraph'
Expand Down
9 changes: 9 additions & 0 deletions mdx-components.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import type { MDXComponents } from 'nextra/mdx-components'

export function useMDXComponents(components: MDXComponents): MDXComponents {
return {
...components,
}
}

export default useMDXComponents
3 changes: 2 additions & 1 deletion next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
/// <reference types="next/navigation-types/compat/navigation" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information.
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
6 changes: 0 additions & 6 deletions next.config.js

This file was deleted.

5 changes: 5 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import nextra from 'nextra'

const withNextra = nextra({})

export default withNextra({})
Comment on lines +1 to +5

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P0 Badge Configure Nextra plugin with theme

The new ESM next.config.mjs calls nextra({}) and exports withNextra({}), leaving both theme and themeConfig undefined. Nextra’s plugin throws Error: No Nextra theme found! when these options are missing (node_modules/nextra/dist/index.js), so next dev or next build will fail before the site can start. Please pass the docs theme and config (as the previous next.config.js did) to keep the app bootable.

Useful? React with 👍 / 👎.

Loading