Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Document generate-action-metadata step for local docs preview (#53038)
Joseph T. Lyonsd1e84f9d0acc
diff --git a/docs/README.md b/docs/README.mdindex f03f008223b..38be153de34 100644--- a/docs/README.md+++ b/docs/README.md@@ -4,12 +4,15 @@ Welcome to Zed's documentation.This is built on push to `main` and published automatically to [https://zed.dev/docs](https://zed.dev/docs).-To preview the docs locally you will need to install [mdBook](https://rust-lang.github.io/mdBook/) (`cargo install [email protected]`) and then run:+To preview the docs locally you will need to install [mdBook](https://rust-lang.github.io/mdBook/) (`cargo install [email protected]`), generate the action metadata, and then serve:```sh+script/generate-action-metadatamdbook serve docs```+The first command dumps an action manifest to `crates/docs_preprocessor/actions.json`. Without it, the preprocessor cannot validate keybinding and action references in the docs and will report errors. You only need to re-run it when actions change.+It's important to note the version number above. For an unknown reason, as of 2025-04-23, running 0.4.48 will cause odd URL behavior that breaks things.Before committing, verify that the docs are formatted in the way Prettier expects with: