mirror of
https://github.com/luxfi/consensus.git
synced 2026-09-24 00:26:58 +00:00
Migrate from deprecated @hanzo/mdx + @hanzo/ui to the new @hanzo/docs (16.4.1), @hanzo/docs-mdx (14.2.8), and @hanzo/docs-ui (16.5.3) package stack. Update all import paths to use correct subpath exports and switch CLI from hanzo-mdx to docs-mdx.
28 lines
497 B
TypeScript
28 lines
497 B
TypeScript
import {
|
|
defineConfig,
|
|
defineDocs,
|
|
} from "@hanzo/docs/mdx/config"
|
|
import rehypePrettyCode from "rehype-pretty-code"
|
|
|
|
export default defineConfig({
|
|
mdxOptions: {
|
|
rehypePlugins: [
|
|
[
|
|
rehypePrettyCode,
|
|
{
|
|
theme: {
|
|
dark: "github-dark-dimmed",
|
|
light: "github-light",
|
|
},
|
|
keepBackground: false,
|
|
defaultLang: "go",
|
|
},
|
|
],
|
|
],
|
|
},
|
|
})
|
|
|
|
export const docs = defineDocs({
|
|
dir: "content/docs",
|
|
})
|