mirror of
https://github.com/luxfi/docs-template.git
synced 2026-10-30 16:58:41 +00:00
Reusable documentation template for Lux Network projects. Features: - Fumadocs UI with Next.js 15 - Dark mode with system preference - Pre-configured social links (Lux, Discord, X, Warpcast) - SITE_CONFIG and DOCS_CONFIG for easy customization - @luxfi/logo integration - Tailwind CSS with typography plugin Usage: 1. Copy template to new directory 2. Edit SITE_CONFIG in app/layout.tsx 3. Edit DOCS_CONFIG in app/docs/layout.tsx 4. Add MDX content in content/docs/ 5. pnpm dev
31 lines
571 B
JavaScript
31 lines
571 B
JavaScript
// source.config.ts
|
|
import {
|
|
defineConfig,
|
|
defineDocs
|
|
} from "@hanzo/mdx/config";
|
|
import rehypePrettyCode from "rehype-pretty-code";
|
|
var source_config_default = defineConfig({
|
|
mdxOptions: {
|
|
rehypePlugins: [
|
|
[
|
|
rehypePrettyCode,
|
|
{
|
|
theme: {
|
|
dark: "github-dark-dimmed",
|
|
light: "github-light"
|
|
},
|
|
keepBackground: false,
|
|
defaultLang: "solidity"
|
|
}
|
|
]
|
|
]
|
|
}
|
|
});
|
|
var docs = defineDocs({
|
|
dir: "content/docs"
|
|
});
|
|
export {
|
|
source_config_default as default,
|
|
docs
|
|
};
|