Skip to content

Commit ac73817

Browse files
moyeahfutursolo
andauthored
website: fix various things: dependency versions, trunk usage, grammar (#3427)
Co-authored-by: Kaede Hoshikawa <futursolo@users.noreply.github.com>
1 parent 408d70c commit ac73817

6 files changed

Lines changed: 19 additions & 12 deletions

File tree

website/docs/getting-started/build-a-sample-app.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,15 @@ To convert this simple command line application to a basic Yew web application,
6060

6161
#### Update Cargo.toml
6262

63-
Add `yew` to the list of dependencies.
63+
Add `yew` to the list of dependencies:
6464

65-
```toml title=Cargo.toml
65+
```toml title=Cargo.toml {7}
6666
[package]
6767
name = "yew-app"
6868
version = "0.1.0"
6969
edition = "2021"
7070

7171
[dependencies]
72-
# this is the development version of Yew
7372
yew = { git = "https://github.com/yewstack/yew/", features = ["csr"] }
7473
```
7574

@@ -135,6 +134,7 @@ Finally, add an `index.html` file in the root directory of your app.
135134
<head>
136135
<meta charset="utf-8" />
137136
<title>Yew App</title>
137+
<body></body>
138138
</head>
139139
<body></body>
140140
</html>

website/docs/tutorial/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ cargo run
6262
## Our first static page
6363

6464
To convert this simple command line application to a basic Yew web application, a few changes are needed.
65-
Update the files as follows:
65+
Add `yew` to the list of dependencies:
6666

67-
```toml title="Cargo.toml" {7}
67+
```toml title=Cargo.toml {7}
6868
[package]
6969
name = "yew-app"
7070
version = "0.1.0"

website/versioned_docs/version-0.20/getting-started/build-a-sample-app.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ To convert this simple command line application to a basic Yew web application,
5454

5555
Add `yew` to the list of dependencies editing file:
5656

57-
```toml title=Cargo.toml
57+
```toml title=Cargo.toml {7}
5858
[package]
5959
name = "yew-app"
6060
version = "0.1.0"
@@ -127,6 +127,7 @@ Finally, add an `index.html` file in the root directory of your app.
127127
<head>
128128
<meta charset="utf-8" />
129129
<title>Yew App</title>
130+
<body></body>
130131
</head>
131132
<body></body>
132133
</html>

website/versioned_docs/version-0.20/tutorial/index.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ cargo run
6262
## Our first static page
6363

6464
To convert this simple command line application to a basic Yew web application, a few changes are needed.
65-
Update the files as follows:
65+
Add `yew` to the list of dependencies:
6666

67-
```toml title="Cargo.toml" {7}
67+
```toml title=Cargo.toml {7}
6868
[package]
6969
name = "yew-app"
7070
version = "0.1.0"
@@ -74,6 +74,8 @@ edition = "2021"
7474
yew = { version = "0.20", features = ["csr"] }
7575
```
7676

77+
or using `cargo add yew@0.20 -F csr`.
78+
7779
:::info
7880

7981
You only need feature `csr` if you are building an application.

website/versioned_docs/version-0.21/getting-started/build-a-sample-app.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ To convert this simple command line application to a basic Yew web application,
6060

6161
#### Update Cargo.toml
6262

63-
Add `yew` to the list of dependencies.
63+
Add `yew` to the list of dependencies:
6464

65-
```toml title=Cargo.toml
65+
```toml title=Cargo.toml {7}
6666
[package]
6767
name = "yew-app"
6868
version = "0.1.0"
@@ -72,6 +72,8 @@ edition = "2021"
7272
yew = { version = "0.21", features = ["csr"] }
7373
```
7474

75+
or using `cargo add yew@0.21 -F csr`.
76+
7577
:::info
7678

7779
You only need the feature `csr` if you are building an application.

website/versioned_docs/version-0.21/tutorial/index.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ cargo run
6262
## Our first static page
6363

6464
To convert this simple command line application to a basic Yew web application, a few changes are needed.
65-
Update the files as follows:
65+
Add `yew` to the list of dependencies:
6666

67-
```toml title="Cargo.toml" {7}
67+
```toml title=Cargo.toml {7}
6868
[package]
6969
name = "yew-app"
7070
version = "0.1.0"
@@ -74,6 +74,8 @@ edition = "2021"
7474
yew = { version = "0.21", features = ["csr"] }
7575
```
7676

77+
or using `cargo add yew@0.21 -F csr`.
78+
7779
:::info
7880

7981
You only need the feature `csr` if you are building an application.

0 commit comments

Comments
 (0)