diff --git a/.changeset/serious-pets-design.md b/.changeset/serious-pets-design.md new file mode 100644 index 0000000000..a6fd7be81b --- /dev/null +++ b/.changeset/serious-pets-design.md @@ -0,0 +1,14 @@ +--- +'nextra-theme-blog': patch +'nextra-theme-docs': patch +'nextra': patch +--- + +- sync with nextra 3.0.15 +- bump to Next 15 +- remove importing of `style.css` in themes, you need to import now manually by + +```js +import 'nextra-theme-docs/style.css' // for docs theme +import 'nextra-theme-blog/style.css' // for blog theme +``` diff --git a/docs/app/docs/docs-theme/theme-configuration/nextra-theme-docs/layout/page.mdx b/docs/app/docs/docs-theme/theme-configuration/nextra-theme-docs/layout/page.mdx index 8cfb2f19ff..9c33b57306 100644 --- a/docs/app/docs/docs-theme/theme-configuration/nextra-theme-docs/layout/page.mdx +++ b/docs/app/docs/docs-theme/theme-configuration/nextra-theme-docs/layout/page.mdx @@ -111,7 +111,7 @@ the docs repository, with the current website title prefilled: | | | | | ---------------- | ------------------------------------- | ----------------------------------------------------------------------------------- | -| feedback.content | `string \| ReactElement \| null{:ts}` | Content of the feedback link.
Default: `"Question? Give us feedback →"{:json}` | +| feedback.content | `string \| ReactElement \| null{:ts}` | Content of the feedback link.
Default: `"Question? Give us feedback"{:json}` | | feedback.labels | `string{:ts}` | Labels that can be added to the new created issue.
Default: `"feedback"{:json}` | diff --git a/docs/app/docs/guide/markdown/page.mdx b/docs/app/docs/guide/markdown/page.mdx index e67aae6e5a..4ba91a1841 100644 --- a/docs/app/docs/guide/markdown/page.mdx +++ b/docs/app/docs/guide/markdown/page.mdx @@ -29,9 +29,7 @@ export function Counter({ children }) { Generates: -import { StarsIcon } from '@components/icons' import { Shadow } from '@components/utils/shadow' -import { Cards } from 'nextra/components' import { Counter } from './_counter'
diff --git a/docs/app/docs/guide/organize-files/page.mdx b/docs/app/docs/guide/organize-files/page.mdx index 52baefcfeb..a0400cbbda 100644 --- a/docs/app/docs/guide/organize-files/page.mdx +++ b/docs/app/docs/guide/organize-files/page.mdx @@ -1,5 +1,5 @@ import { FileIcon, NewsletterIcon } from '@components/icons' -import { Callout, Cards, FileTree } from 'nextra/components' +import { Cards, FileTree } from 'nextra/components' # Organize Files diff --git a/docs/app/env.d.ts b/docs/app/env.d.ts new file mode 100644 index 0000000000..b6761d60ee --- /dev/null +++ b/docs/app/env.d.ts @@ -0,0 +1,6 @@ +declare module '*.svg?svgr' { + import type { FC, SVGProps } from 'react' + const ReactComponent: FC> + + export default ReactComponent +} diff --git a/docs/app/layout.tsx b/docs/app/layout.tsx index f7ecc73af9..88749a3f2f 100644 --- a/docs/app/layout.tsx +++ b/docs/app/layout.tsx @@ -6,6 +6,7 @@ import { getPageMap } from 'nextra/page-map' import type { ReactNode } from 'react' import './globals.css' import cn from 'clsx' +import 'nextra-theme-docs/style.css' export const viewport: Viewport = Head.viewport @@ -57,6 +58,15 @@ export default async function RootLayout({ }: { children: ReactNode }) { + const logo = ( + + ) return (
- - } - projectLink="https://github.com/shuding/nextra" - /> + {children}