Built for OreUI. Customized for creators.
The official documentation and learning site for the DearOreUI runtime — covering the runtime, the offline designer, and example mods.
Live site · Getting started · Core runtime · Designer · Report an issue · 简体中文
Docs are versioned and cover 130+ pages across releases and guides.
cd Web
pnpm install # Install dependencies (automatically applies the nextra-theme-docs patch)
pnpm dev # Start the dev server → http://localhost:3000Use pnpm build to produce a production build and pnpm start to run it.
| Layer | Choice | Notes |
|---|---|---|
| Framework | Next.js 15 (App Router) | Pages and dynamic routing |
| Docs theme | Nextra 4 + nextra-theme-docs | Navigation tree, code highlighting, on-page TOC |
| Language | TypeScript + MDX | Content and components |
| Package manager | pnpm | Config and patches managed in pnpm-workspace.yaml |
Web/
├── app/ # App Router
│ ├── layout.tsx # Root layout: Layout/Navbar/Footer + getPageMap
│ └── [[...mdxPath]]/page.tsx # Single dynamic route entry for the content dir
├── content/ # MDX content directory (v4 default)
│ ├── index.mdx # Homepage
│ └── guide/ # Guide group
│ ├── _meta.ts # Group navigation metadata
│ └── getting-started.mdx
├── mdx-components.tsx # Merges the theme's default MDX components (required)
├── theme.config.tsx # Theme config: logo / projectLink / docsRepositoryBase / footer
├── patches/ # pnpm patches (see "Known Issues")
├── pnpm-workspace.yaml # patchedDependencies / allowBuilds
├── next.config.mjs # nextra() config
└── tsconfig.json
content/*.mdx
│ Nextra loader (compileMdx)
▼
app/[[...mdxPath]]/page.tsx ← importPage() / generateStaticParamsFor()
▼
<MDXContent> (wrapper provided by mdx-components.tsx)
▼
app/layout.tsx ← getPageMap() + theme.config.tsx, renders nav tree / footer
To add a page, just drop an .mdx file under content/ and register its nav title in the sibling _meta.ts. No route code changes required.
| Command | Description |
|---|---|
pnpm install |
Install dependencies and apply patches |
pnpm dev |
Start the dev server (http://localhost:3000) |
pnpm build |
Produce a production build (next build) |
pnpm start |
Run the production build |
This repo hosts the documentation for the DearOreUI toolchain:
| Project | Repository | Role |
|---|---|---|
| DearOreUI | copper-lamp/Dear-OreUI | Native LeviLamina runtime — extends OreUI at runtime |
| DearOreUI Designer | copper-lamp/DearOreUI-dev-tools | Offline visual designer (Tauri) |
| DearOreUI Docs | copper-lamp/dearoreui-docs | This repo — documentation & learning site |
| dearoreui-ExampleMod | magicobs0z/dearoreui-ExampleMod | Progressive tutorial mod |
| dearoreui-repo | copper-lamp/dearoreui-repo | Self-hosted xmake package repo |
- JsonUI page docs are not covered: the docs track the OreUI stack's runtime contracts (see the core README "Compatibility").
- Deployment uses GitHub Pages sub-path (
/dearoreui-docs); i18n via a version selector rather than a dedicated locale router.
- Docs source live in
content/(versioned underv0.1.1/,v0.1.2/). - To add a page: place an
.mdxfile undercontent/and update_meta.ts. For layout/theme changes, keep configuration centralized and avoid scattering styles. - Design documents live in
Docs/at the repo root (single source of truth for architecture decisions).
Special thanks to Nextra and nextra-theme-docs for the documentation framework.
CC0-1.0, matching the DearOreUI runtime.