Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Delete generating-theme-types.md

Nate Butler5da057288dd0
diff --git a/docs/old/theme/generating-theme-types.md b/docs/old/theme/generating-theme-types.md
deleted file mode 100644
index efebc8d21df..00000000000
--- a/docs/old/theme/generating-theme-types.md
+++ /dev/null
@@ -1,29 +0,0 @@
-[⬅ Back to Index](../index.md)
-
-# Generating Theme Types
-
-
-## How to generate theme types:
-
-Run a script
-
-```bash
-./script/build-theme-types
-```
-
-Types are generated in `styles/src/types/zed.ts`
-
-
-## How it works:
-
-1. Rust types
-
- The `crates/theme` contains theme types.
- Crate `schemars` used to generate a JSON schema from the theme structs.
- Every struct that represent theme type has a `#[derive(JsonSchema)]` attribute.
-
- Task lotaked at `crates/xtask/src/main.rs` generates a JSON schema from the theme structs.
-
-2. TypeScript types
-
- Script `npm run build-types` from `styles` package generates TypeScript types from the JSON schema and saves them to `styles/src/types/zed.ts`.