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

Update link and example of usage of Preferences #46

Merged
merged 1 commit into from
Jan 16, 2025
Merged
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
7 changes: 5 additions & 2 deletions src/running-servoshell.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@ Use `--help` to list the available command line options:
$ ./servo --help
```

Use `--pref` to [configure Servo’s behaviour](https://github.com/servo/servo/blob/main/resources/prefs.json), including to enable experimental web platform features.
Use `--pref` to configure Servo’s behaviour including to enable experimental web platform features.
You can find the list of [preferences] in the Servo API documentation.
For example, to run our [Conway’s Game of Life demo](https://demo.servo.org/experiments/webgpu-game-of-life/) with WebGPU enabled:

[preferences]: https://doc.servo.org/servo_config/prefs/struct.Preferences.html

```sh
$ ./servo --pref dom.webgpu.enabled https://demo.servo.org/experiments/webgpu-game-of-life/
$ ./servo --pref dom_webgpu_enabled https://demo.servo.org/experiments/webgpu-game-of-life/
```

Use `--devtools=6080` to enable support for [debugging pages with Firefox devtools](hacking/using-devtools.md):
Expand Down