Open
Description
Generic Issue for Documentation Improvement.
- Setup autogenerated API Docs
- Lexical lifecycle overview
Resources: https://www.youtube.com/watch?v=EwoS0dIx_OI
https://drafts.dio.la/article/lexical-state-updates - Example: how to generate HTML from Lexical EditorState
- Example: how to use Commands/Transformers to disable core functionality
- Example: how to set initial editor state
- Example: how to set up collaborative editing
- API Docs: lexical
- API Docs: @lexical/clipboard
- API Docs: @lexical/code
- API Docs: @lexical/dragon
- API Docs: @lexical/file
- API Docs: @lexical/hashtag
- API Docs: @lexical/headless
- API Docs: @lexical/history
- API Docs: @lexical/html
- API Docs: @lexical/link
- API Docs: @lexical/list
- API Docs: @lexical/mark
- API Docs: @lexical/markdown
- API Docs: @lexical/offset
- API Docs: @lexical/overflow
- API Docs: @lexical/selection
- API Docs: @lexical/table
- API Docs: @lexical/text
- API Docs: @lexical/utils
- API Docs: @lexical/yjs
- API Docs: DecoratorNode
- API Docs: ElementNode
- API Docs: LexicalEditor
- API Docs: LexicalNode
- API Docs: LineBreakNode
- API Docs: NodeSelection
- API Docs: ParagraphNode
- API Docs: RangeSelection
- API Docs: RootNode
- API Docs: TextNode
Others?
Working with API Docs
We use typedoc to autogenerate API docs.
Check out what I did here. If you go in and add similar comments to the functions in other files, they'll show up on the website. You can watch for changes and see them live by doing
npm run start:website
The changes will show up in the section you get to by clicking "API" in the site navigation.
Here are the typedoc docs: https://typedoc.org/guides/declaration-references/