feat(docs): add bilingual package documentation site

This commit is contained in:
Maofeng
2026-09-20 15:53:28 +08:00
parent 60f6f1fb1a
commit dc80bd8ae0
111 changed files with 6531 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
---
title: Overview
description: Learn the editor's declarative action model before assembling a complete editing surface.
order: 1
toc:
- id: mental-model
title: Mental model
- id: tutorial-map
title: Tutorial map
- id: stable-capabilities
title: Stable capabilities
---
## Mental model {#mental-model}
`@workspace/lexical` treats editor actions as declarations. Each action describes its behavior and the nodes, plugins, or embeds it requires. `LexicalRoot` collects those requirements before creating the editor.
Toolbars decide where an action appears; they do not separately register editor capabilities.
## Tutorial map {#tutorial-map}
You will create the root and content surface, choose a preset, customize action placement, define an application action, add media uploads, and finish with localized labels.
## Stable capabilities {#stable-capabilities}
Actions, nodes, and plugins are fixed when an editor instance is created. Give `LexicalRoot` a new React `key` when the application needs to replace the entire capability set.