T48d Docs · Getting started passes review

This commit is contained in:
ZacharyZhang-NY committed 2026-10-01 12:30:09 -04:00
1 parent 3ca27c00d9
commit 3001fe88de
3 files changed
+5 -4

No files matched your search

+1 -1
View File
@@ -167,7 +167,7 @@ Per-component lines live in `tasks/`. Tags there:
- [x] T48a Docs · Frame: the Docs tab, `/docs/` and `/docs/$page/`, Markdown pages, the rail, the on-this-page list, previous and next, code blocks, light and dark, phone to desktop
- [x] T48b Docs · Introduction: what Ely is, the order to read, what is stable, a first example, license
- [x] T48c Docs · Installation: Rust, the git dependencies, gpui_platform's fonts, runtime shaders, the gallery as a check, what `init` refuses
- [ ] T48d Docs · Getting started: an app from `init` to a window under a root `FocusScope`, with a Button
- [x] T48d Docs · Getting started: an app from `init` to a window under a root `FocusScope`, with a Button
- [ ] T48e Docs · Theme: modes, tokens through `cx.theme()`, high contrast, color-blind safe charts, an owner's palette
- [ ] T48f Docs · Focus and keyboard: Tab and Shift-Tab, the root scope, tab stops, the focus ring, overlays that take and give back focus
- [ ] T48g Docs · Motion: durations, reduced motion, springs, motion from a change
+3 -3
View File
@@ -1,10 +1,10 @@
# Getting started
An Ely app is a GPUI app with three more parts: Ely's assets, one call to `init`, and a root `FocusScope` around each window's content.
An Ely app is a GPUI app with four more parts: Ely's assets, one call to `init`, a root `FocusScope` around each window's content, and colors from the theme.
## Four steps
## Four parts
| Step | Why |
| Part | Why |
| --- | --- |
| `gpui_platform::application().with_assets(Assets)` | Ely embeds its icons and fonts. `init` panics without them. |
| `ely_gpui_component::init(cx)` | Call once, before any window. It registers the fonts, sets the theme, and binds Tab, Shift-Tab and the keys of text fields, the code editor, documents and, natively, the terminal. |
+1
View File
@@ -333,3 +333,4 @@
| T48b | 1 | PASS | note taken: durations shorten to a millisecond |
| T48c | 1 | FAIL | said Ely compiles the shaders when the app starts; a code span kept a trailing space |
| T48c | 2 | PASS | |
| T48d | 1 | PASS | note taken: the lead and the table both count four parts |