Skip to content

About

DearOreUI UI 框架官方文档与学习站点。从运行时原理、组件系统、样式通道到 IPC 通信,覆盖 LeviLamina 模组 UI 开发全链路(130+ 页),是学习 Minecraft Bedrock UI 开发的入门资源。

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

◆ DearOreUI Docs

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.

Quick Start

Important

Development requires Node.js (18.18+ for Next.js 15) and pnpm.

cd Web
pnpm install   # Install dependencies (automatically applies the nextra-theme-docs patch)
pnpm dev       # Start the dev server → http://localhost:3000

Use pnpm build to produce a production build and pnpm start to run it.

Tech Stack

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

Project Structure

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 Pipeline

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.

Commands

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

Ecosystem

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

Known Limitations

  • 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.

Contributing

  • Docs source live in content/ (versioned under v0.1.1/, v0.1.2/).
  • To add a page: place an .mdx file under content/ 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).

Acknowledgements

Special thanks to Nextra and nextra-theme-docs for the documentation framework.

License

CC0-1.0, matching the DearOreUI runtime.

About

DearOreUI UI 框架官方文档与学习站点。从运行时原理、组件系统、样式通道到 IPC 通信,覆盖 LeviLamina 模组 UI 开发全链路(130+ 页),是学习 Minecraft Bedrock UI 开发的入门资源。

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages