mirror of
https://github.com/lune-org/docs.git
synced 2025-01-06 02:49:13 +00:00
Go back to using jsx for config
This commit is contained in:
parent
3a33284694
commit
d910b08c06
2 changed files with 2 additions and 5 deletions
|
@ -1,9 +1,8 @@
|
||||||
import React from "react"
|
import React from "react"
|
||||||
|
|
||||||
import { useRouter } from "next/router"
|
import { useRouter } from "next/router"
|
||||||
import type { DocsThemeConfig } from "nextra-theme-docs"
|
|
||||||
|
|
||||||
const config: DocsThemeConfig = {
|
export default {
|
||||||
docsRepositoryBase: "https://github.com/lune-org/docs/blob/main",
|
docsRepositoryBase: "https://github.com/lune-org/docs/blob/main",
|
||||||
useNextSeoProps() {
|
useNextSeoProps() {
|
||||||
const { asPath } = useRouter()
|
const { asPath } = useRouter()
|
||||||
|
@ -36,5 +35,3 @@ const config: DocsThemeConfig = {
|
||||||
</>
|
</>
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
|
|
||||||
export default config
|
|
|
@ -15,6 +15,6 @@
|
||||||
"isolatedModules": true,
|
"isolatedModules": true,
|
||||||
"jsx": "preserve"
|
"jsx": "preserve"
|
||||||
},
|
},
|
||||||
"include": ["next-env.d.ts", "theme.config.tsx", "**/*.ts", "**/*.tsx"],
|
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
|
||||||
"exclude": ["node_modules"]
|
"exclude": ["node_modules"]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue