Skip to content

Commit ea8ac46

Browse files
pedrosousathomasgauvin
authored andcommitted
[Docs] Fix language warnings (#23853)
1 parent ad87260 commit ea8ac46

File tree

2 files changed

+44
-46
lines changed

2 files changed

+44
-46
lines changed

src/content/docs/d1/get-started.mdx

Lines changed: 38 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -121,28 +121,24 @@ To create your first D1 database:
121121
While Wrangler gets installed locally to your project, you can use it outside the project by using the command `npx wrangler`.
122122
:::
123123

124-
```sh
125-
npx wrangler@latest d1 create prod-d1-tutorial
126-
```
127-
128-
```sh output
129-
130-
✅ Successfully created DB 'prod-d1-tutorial' in region WEUR
131-
Created your new D1 database.
132-
133-
{
134-
"d1_databases": [
135-
{
136-
"binding": "DB",
137-
"database_name": "prod-d1-tutorial",
138-
"database_id": "<unique-ID-for-your-database>"
139-
}
140-
]
141-
}
142-
143-
```
124+
```sh
125+
npx wrangler@latest d1 create prod-d1-tutorial
126+
```
144127

128+
```txt output
129+
✅ Successfully created DB 'prod-d1-tutorial' in region WEUR
130+
Created your new D1 database.
145131
132+
{
133+
"d1_databases": [
134+
{
135+
"binding": "DB",
136+
"database_name": "prod-d1-tutorial",
137+
"database_id": "<unique-ID-for-your-database>"
138+
}
139+
]
140+
}
141+
```
146142

147143
</Steps>
148144

@@ -253,11 +249,11 @@ After correctly preparing your [Wrangler configuration file](/workers/wrangler/c
253249

254250
2. Initialize your database to run and test locally first. Bootstrap your new D1 database by running:
255251

256-
```sh
257-
npx wrangler d1 execute prod-d1-tutorial --local --file=./schema.sql
258-
```
259-
```output
260-
⛅️ wrangler 4.13.2
252+
```sh
253+
npx wrangler d1 execute prod-d1-tutorial --local --file=./schema.sql
254+
```
255+
```txt output
256+
⛅️ wrangler 4.13.2
261257
-------------------
262258
263259
🌀 Executing on local database prod-d1-tutorial (<DATABASE_ID>) from .wrangler/state/v3/d1:
@@ -275,7 +271,7 @@ After correctly preparing your [Wrangler configuration file](/workers/wrangler/c
275271
npx wrangler d1 execute prod-d1-tutorial --local --command="SELECT * FROM Customers"
276272
```
277273

278-
```sh output
274+
```txt output
279275
🌀 Mapping SQL input into an array of statements
280276
🌀 Executing on local database production-db-backend (<DATABASE_ID>) from .wrangler/state/v3/d1:
281277
┌────────────┬─────────────────────┬───────────────────┐
@@ -424,7 +420,7 @@ To deploy your Worker to production using Wrangler, you must first repeat the [d
424420
```sh
425421
npx wrangler d1 execute prod-d1-tutorial --remote --file=./schema.sql
426422
```
427-
```sh output
423+
```txt output
428424
✔ ⚠️ This process may take some time, during which your D1 database will be unavailable to serve queries.
429425
Ok to proceed? y
430426
🚣 Executed 3 queries in 0.00 seconds (5 rows read, 6 rows written)
@@ -441,8 +437,8 @@ To deploy your Worker to production using Wrangler, you must first repeat the [d
441437
```sh
442438
npx wrangler d1 execute prod-d1-tutorial --remote --command="SELECT * FROM Customers"
443439
```
444-
```sh output
445-
⛅️ wrangler 4.13.2
440+
```txt output
441+
⛅️ wrangler 4.13.2
446442
-------------------
447443
448444
🌀 Executing on remote database prod-d1-tutorial (<DATABASE_ID>):
@@ -466,19 +462,19 @@ To deploy your Worker to production using Wrangler, you must first repeat the [d
466462
```sh
467463
npx wrangler deploy
468464
```
469-
```sh output
470-
⛅️ wrangler 4.13.2
471-
-------------------
472-
473-
Total Upload: 0.19 KiB / gzip: 0.16 KiB
474-
Your worker has access to the following bindings:
475-
- D1 Databases:
476-
- DB: prod-d1-tutorial (<DATABASE_ID>)
477-
Uploaded d1-tutorial (3.76 sec)
478-
Deployed d1-tutorial triggers (2.77 sec)
479-
https://d1-tutorial.<YOUR_SUBDOMAIN>.workers.dev
480-
Current Version ID: <VERSION_ID>
481-
```
465+
```txt output
466+
⛅️ wrangler 4.13.2
467+
-------------------
468+
469+
Total Upload: 0.19 KiB / gzip: 0.16 KiB
470+
Your worker has access to the following bindings:
471+
- D1 Databases:
472+
- DB: prod-d1-tutorial (<DATABASE_ID>)
473+
Uploaded d1-tutorial (3.76 sec)
474+
Deployed d1-tutorial triggers (2.77 sec)
475+
https://d1-tutorial.<YOUR_SUBDOMAIN>.workers.dev
476+
Current Version ID: <VERSION_ID>
477+
```
482478

483479
You can now visit the URL for your newly created project to query your live database.
484480

src/content/docs/images/tutorials/optimize-mobile-viewing.mdx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,17 @@ There are two possible `loading` attributes for your `<img>` tags: `lazy` and `
2929
Lazy loading is recommended for most images. With Lazy loading, resources like images are deferred until they reach a certain distance from the viewport. If an image does not reach the threshold, then it does not get loaded.
3030

3131
Example of modifying the `loading` attribute of your `<img>` tags to be `"lazy"`:
32-
````HTML
32+
33+
```html
3334
<img src="example.com/cdn-cgi/width=300/image.png" loading="lazy">
34-
````
35+
```
3536

3637
### Eager loading
3738

3839
If you have images that are in the viewport, eager loading, instead of lazy loading, is recommended. Eager loading loads the asset at the initial page load, regardless of its location on the page.
3940

4041
Example of modifying the `loading` attribute of your `<img>` tags to be `"eager"`:
41-
````HTML
42+
43+
```html
4244
<img src="example.com/cdn-cgi/width=300/image.png" loading="eager">
43-
````
45+
```

0 commit comments

Comments
 (0)