Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct website #3405

Merged
merged 6 commits into from
Sep 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions website/docs/getting-started/build-a-sample-app.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,23 @@ Run the following command to build and serve the application locally.
trunk serve
```

:::info
Add option '--open' to open your default browser `trunk serve --open`.
:::

Trunk will rebuild your application if you modify any of its source code files.
By default server will listening at address '127.0.0.1' and port '8080' => [http://localhost:8080](http://127.0.0.1:8080).
To change it, create the following file and edit as needed:

```toml title="Trunk.toml"
[serve]
# The address to serve on LAN.
address = "127.0.0.1"
# The address to serve on WAN.
# address = "0.0.0.0"
# The port to serve on.
port = 8000
```

## Congratulations

Expand Down
6 changes: 3 additions & 3 deletions website/docs/migration-guides/yew/from-0_18_0-to-0_19_0.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ props with braces.
<Tabs>
<TabItem value="Invalid" label="Invalid">

```rust {4}, ignore
```rust ,ignore {4}
let super_age = 1;
html!{
<JapaneseYew
Expand All @@ -29,7 +29,7 @@ html!{
</TabItem>
<TabItem value="Valid" label="Valid">

```rust {4}, ignore
```rust ,ignore {4}
let super_age = 1;
html!{
<JapaneseYew
Expand All @@ -43,7 +43,7 @@ html!{

Shorthand initialization has been added:

```rust {4}, ignore
```rust ,ignore {4}
let age = 1;
html!{
<JapaneseYew
Expand Down
24 changes: 21 additions & 3 deletions website/docs/tutorial/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ Now, let's create an `index.html` at the root of the project.
```html title="index.html"
<!DOCTYPE html>
<html lang="en">
<head> </head>
<head></head>
<body></body>
</html>
```
Expand All @@ -120,9 +120,27 @@ Run the following command to build and serve the application locally.
trunk serve --open
```

:::info
Remove option '--open' to not open your default browser `trunk serve`.
:::

Trunk will open your application in your default browser, watch the project directory and helpfully rebuild your
application if you modify any source files. If you are curious, you can run `trunk help` and `trunk help <subcommand>`
for more details on what is happening.
application if you modify any source files.
This will fail if the socket is being used by another application.
By default server will listening at address '127.0.0.1' and port '8080' => [http://localhost:8080](http://127.0.0.1:8080).
To change it, create the following file and edit as needed:

```toml title="Trunk.toml"
[serve]
# The address to serve on LAN.
address = "127.0.0.1"
# The address to serve on WAN.
# address = "0.0.0.0"
# The port to serve on.
port = 8000
```

If you are curious, you can run `trunk help` and `trunk help <subcommand>` for more details on what is happening.

### Congratulations

Expand Down
Loading
Loading