Skip to content

Commit e97ec9f

Browse files
authored
docs: add more to the setup guide, add group icons and llm files, add ability to use ResourceKey and RequestKey as types (#9987)
1 parent b63920e commit e97ec9f

File tree

10 files changed

+982
-75
lines changed

10 files changed

+982
-75
lines changed

docs-viewer/docs.warp-drive.io/.vitepress/config.mts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,25 @@
11
import { defineConfig } from 'vitepress';
22
import { getGuidesStructure } from '../../src/site-utils.ts';
33

4+
import llmstxt from 'vitepress-plugin-llms';
5+
import { groupIconMdPlugin, groupIconVitePlugin } from 'vitepress-plugin-group-icons';
6+
47
const GuidesStructure = await getGuidesStructure(false);
58

69
// https://vitepress.dev/reference/site-config
710
export default defineConfig({
811
title: 'WarpDrive',
912
description: 'Boldly go where no App has gone before',
1013

14+
markdown: {
15+
config(md) {
16+
md.use(groupIconMdPlugin);
17+
},
18+
},
19+
vite: {
20+
plugins: [llmstxt(), groupIconVitePlugin()],
21+
},
22+
1123
// just until we have the guides and docs in a better state
1224
ignoreDeadLinks: true,
1325

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import DefaultTheme from 'vitepress/theme';
2+
import 'virtual:group-icons.css';
23
import './custom.css';
34

45
export default DefaultTheme;

docs-viewer/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@
2727
"@types/debug": "4.1.12",
2828
"typedoc": "^0.28.4",
2929
"typedoc-plugin-markdown": "^4.6.3",
30-
"typedoc-vitepress-theme": "^1.1.2"
30+
"typedoc-vitepress-theme": "^1.1.2",
31+
"vitepress-plugin-llms": "^1.1.4",
32+
"vitepress-plugin-group-icons": "^1.5.2",
33+
"vite": "^5.4.15"
3134
},
3235
"engines": {
3336
"node": ">= 18.20.8"

guides/1-configuration/1-overview.md

Lines changed: 65 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,26 @@
22
title: Overview
33
---
44

5+
::: tip Boilerplate Sucks 👎🏽
6+
We're re-aligning our packages into a new streamlined installation and setup experience.<br>
7+
Below you'll find the current *boilerplate heavy* setup.
8+
9+
Curious? Read the [RFC](https://rfcs.emberjs.com/id/1075-warp-drive-package-unification/)
10+
:::
11+
512
# Configuration
613

714
***Warp*Drive** is highly configurable. The library is designed as a series of small packages with clear
815
interface-driven boundaries between each other and brought together by configuration.
916

17+
::: warning ⚠️ Caution
18+
WarpDrive packages follow lockstep: dependencies and peer-dependencies between WarpDrive packages are version-locked at the time of publish.
19+
20+
We find this means its best to use exact versions instead of ranges as all WarpDrive packages should be upgraded together at once.
21+
22+
All of the installation commands below pin the version for this reason.
23+
:::
24+
1025
Below, we detail the installation for the most common configurations.
1126

1227
<br>
@@ -16,18 +31,23 @@ Below, we detail the installation for the most common configurations.
1631

1732
## Installation {#installation}
1833

19-
::: tip Boilerplate Sucks 👎🏽
20-
We're re-aligning our packages into a new streamlined installation and setup experience.<br>
21-
Below you'll find the current *boilerplate heavy* setup.
2234

23-
Curious? Read the [RFC](https://rfcs.emberjs.com/id/1075-warp-drive-package-unification/)
24-
:::
2535

2636
Install the core packages:
2737

38+
::: info 💡 TIP
39+
WarpDrive uses npm channel tags to simplify installation.
40+
- `@lts` is the latest LTS release
41+
- `@latest` is the latest stable release
42+
- `@beta` is the latest beta release
43+
- `@canary` is the latest canary release
44+
45+
Replace `@latest` in the commands below with the desired channel if needed.
46+
:::
47+
2848
::: code-group
2949

30-
```cli [pnpm]
50+
```sh [pnpm]
3151
pnpm add -E \
3252
@warp-drive/core-types@latest \
3353
@warp-drive/build-config@latest \
@@ -39,7 +59,7 @@ pnpm add -E \
3959
@ember-data/json-api@latest;
4060
```
4161

42-
```cli [npm]
62+
```sh [npm]
4363
npm add -E \
4464
@warp-drive/core-types@latest \
4565
@warp-drive/build-config@latest \
@@ -51,7 +71,7 @@ npm add -E \
5171
@ember-data/json-api@latest;
5272
```
5373

54-
```cli [yarn]
74+
```sh [yarn]
5575
yarn add -E \
5676
@warp-drive/core-types@latest \
5777
@warp-drive/build-config@latest \
@@ -63,7 +83,7 @@ yarn add -E \
6383
@ember-data/json-api@latest;
6484
```
6585

66-
```cli [bun]
86+
```sh [bun]
6787
bun add --exact \
6888
@warp-drive/core-types@latest \
6989
@warp-drive/build-config@latest \
@@ -81,19 +101,19 @@ Optionally, install the ESLint plugin `eslint-plugin-warp-drive`
81101

82102
::: code-group
83103

84-
```cli [pnpm]
104+
```sh [pnpm]
85105
pnpm add -E eslint-plugin-warp-drive@latest
86106
```
87107

88-
```cli [npm]
108+
```sh [npm]
89109
npm add -E eslint-plugin-warp-drive@latest
90110
```
91111

92-
```cli [yarn]
112+
```sh [yarn]
93113
yarn add -E eslint-plugin-warp-drive@latest
94114
```
95115

96-
```cli [bun]
116+
```sh [bun]
97117
bun add --exact eslint-plugin-warp-drive@latest
98118
```
99119

@@ -105,19 +125,19 @@ Install `@warp-drive/ember`
105125

106126
::: code-group
107127

108-
```cli [pnpm]
128+
```sh [pnpm]
109129
pnpm add -E @warp-drive/ember@latest
110130
```
111131

112-
```cli [npm]
132+
```sh [npm]
113133
npm add -E @warp-drive/ember@latest
114134
```
115135

116-
```cli [yarn]
136+
```sh [yarn]
117137
yarn add -E @warp-drive/ember@latest
118138
```
119139

120-
```cli [bun]
140+
```sh [bun]
121141
bun add --exact @warp-drive/ember@latest
122142
```
123143

@@ -127,19 +147,19 @@ Optionally, for Ember Inspector support install `@ember-data/debug`
127147

128148
::: code-group
129149

130-
```cli [pnpm]
150+
```sh [pnpm]
131151
pnpm add -E @ember-data/debug@latest
132152
```
133153

134-
```cli [npm]
154+
```sh [npm]
135155
npm add -E @ember-data/debug@latest
136156
```
137157

138-
```cli [yarn]
158+
```sh [yarn]
139159
yarn add-E @ember-data/debug@latest
140160
```
141161

142-
```cli [bun]
162+
```sh [bun]
143163
bun add --exact @ember-data/debug@latest
144164
```
145165

@@ -149,25 +169,25 @@ Optionally, to use the legacy `@ember-data/model` experience (via Model or via S
149169

150170
::: code-group
151171

152-
```cli [pnpm]
172+
```sh [pnpm]
153173
pnpm add -E \
154174
@ember-data/model@latest \
155175
@ember-data/legacy-compat@latest;
156176
```
157177

158-
```cli [npm]
178+
```sh [npm]
159179
npm add -E \
160180
@ember-data/model@latest \
161181
@ember-data/legacy-compat@latest;
162182
```
163183

164-
```cli [yarn]
184+
```sh [yarn]
165185
yarn add -E \
166186
@ember-data/model@latest \
167187
@ember-data/legacy-compat@latest;
168188
```
169189

170-
```cli [bun]
190+
```sh [bun]
171191
bun add --exact \
172192
@ember-data/model@latest \
173193
@ember-data/legacy-compat@latest;
@@ -180,28 +200,28 @@ Optionally, to use the legacy **Adapter/Serializer** experience, install the fol
180200

181201
::: code-group
182202

183-
```cli [pnpm]
203+
```sh [pnpm]
184204
pnpm add -E \
185205
@ember-data/adapter@latest \
186206
@ember-data/serializer@latest \
187207
@ember-data/legacy-compat@latest;
188208
```
189209

190-
```cli [npm]
210+
```sh [npm]
191211
npm add -E \
192212
@ember-data/adapter@latest \
193213
@ember-data/serializer@latest \
194214
@ember-data/legacy-compat@latest;
195215
```
196216

197-
```cli [yarn]
217+
```sh [yarn]
198218
yarn add -E \
199219
@ember-data/adapter@latest \
200220
@ember-data/serializer@latest \
201221
@ember-data/legacy-compat@latest;
202222
```
203223

204-
```cli [bun]
224+
```sh [bun]
205225
bun add --exact \
206226
@ember-data/adapter@latest \
207227
@ember-data/serializer@latest \
@@ -217,19 +237,19 @@ follow common REST API patterns.
217237

218238
::: code-group
219239

220-
```cli [pnpm]
240+
```sh [pnpm]
221241
pnpm add -E @ember-data/rest@latest
222242
```
223243

224-
```cli [npm]
244+
```sh [npm]
225245
npm add -E @ember-data/rest@latest
226246
```
227247

228-
```cli [yarn]
248+
```sh [yarn]
229249
yarn add -E @ember-data/rest@latest
230250
```
231251

232-
```cli [bun]
252+
```sh [bun]
233253
bun add --exact @ember-data/rest@latest
234254
```
235255

@@ -240,19 +260,19 @@ follow the rails ActiveRecord structure.
240260

241261
::: code-group
242262

243-
```cli [pnpm]
263+
```sh [pnpm]
244264
pnpm add -E @ember-data/active-record@latest
245265
```
246266

247-
```cli [npm]
267+
```sh [npm]
248268
npm add -E @ember-data/active-record@latest
249269
```
250270

251-
```cli [yarn]
271+
```sh [yarn]
252272
yarn add -E @ember-data/active-record@latest
253273
```
254274

255-
```cli [bun]
275+
```sh [bun]
256276
bun add --exact @ember-data/active-record@latest
257277
```
258278

@@ -263,19 +283,19 @@ we're prototyping like SharedWorker and PersistedCache.
263283

264284
::: code-group
265285

266-
```cli [pnpm]
286+
```sh [pnpm]
267287
pnpm add -E @warp-drive-experiments@latest
268288
```
269289

270-
```cli [npm]
290+
```sh [npm]
271291
npm add -E @warp-drive-experiments@latest
272292
```
273293

274-
```cli [yarn]
294+
```sh [yarn]
275295
yarn add -E @warp-drive-experiments@latest
276296
```
277297

278-
```cli [bun]
298+
```sh [bun]
279299
bun add --exact @warp-drive-experiments@latest
280300
```
281301

@@ -291,7 +311,7 @@ If you're curious, the exact list of packages to replicate `ember-data` includin
291311

292312
::: code-group
293313

294-
```cli [pnpm]
314+
```sh [pnpm]
295315
pnpm add -E \
296316
@warp-drive/core-types@latest \
297317
@warp-drive/build-config@latest \
@@ -310,7 +330,7 @@ pnpm add -E \
310330
@warp-drive/ember;
311331
```
312332

313-
```cli [npm]
333+
```sh [npm]
314334
npm add -E \
315335
@warp-drive/core-types@latest \
316336
@warp-drive/build-config@latest \
@@ -329,7 +349,7 @@ npm add -E \
329349
@warp-drive/ember;
330350
```
331351

332-
```cli [yarn]
352+
```sh [yarn]
333353
yarn add -E \
334354
@warp-drive/core-types@latest \
335355
@warp-drive/build-config@latest \
@@ -348,7 +368,7 @@ yarn add -E \
348368
@warp-drive/ember;
349369
```
350370

351-
```cli [bun]
371+
```sh [bun]
352372
bun add --exact \
353373
@warp-drive/core-types@latest \
354374
@warp-drive/build-config@latest \

0 commit comments

Comments
 (0)