facebook / lexical

Lexical is an extensible text editor framework that provides excellent reliability, accessibility and performance.
https://lexical.dev
MIT License
17.37k stars 1.43k forks source link

Docs: Generate docusaurus sidebars from filesystem #5916

Closed etrepum closed 1 week ago

etrepum commented 2 weeks ago

RE #5869 the configuration of docusaurus is fairly hard-coded

The packages list should be inferred from the filesystem (docs/files/*.md) rather than hard-coded in sidebars.js. They are all in alphabetical order anyway so we don't need any tricks.

While in there it may be useful to create a @lexical/react category in the API modules section so that they can be presented nicely (#5913). Not sure how much harder docusaurus-plugin-typedoc will make that (#5876 does clean up this part of the config, but I missed the hard-coded sidebar list).

I'll work on it this week, mostly just taking notes here.