Skip to content

Commit 2867ac7

Browse files
Added missing code block language in docs (#147481)
- added language for all code blocks - replaced `bash` or `shell` with `sh` for consistency. - added `sh` and `console` in the GitHub template link generator. - updated test for GitHub template.
1 parent cb2197e commit 2867ac7

File tree

28 files changed

+58
-58
lines changed

28 files changed

+58
-58
lines changed

dev/benchmarks/complex_layout/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
To run the scrolling benchmark on a device:
66

7-
```
7+
```sh
88
flutter drive --profile test_driver/scroll_perf.dart
99
```
1010

@@ -17,7 +17,7 @@ More detailed logs should be in `build/complex_layout_scroll_perf.timeline.json`
1717

1818
To measure startup time on a device:
1919

20-
```
20+
```sh
2121
flutter run --profile --trace-startup
2222
```
2323

dev/benchmarks/macrobenchmarks/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Performance benchmarks use either flutter drive or the web benchmark harness.
88

99
To run the cull opacity benchmark on a device:
1010

11-
```
11+
```sh
1212
flutter drive --profile -t test_driver/run_app.dart --driver test_driver/cull_opacity_perf_test.dart
1313
```
1414

@@ -20,7 +20,7 @@ More detailed logs should be in `build/cull_opacity_perf.timeline.json`.
2020

2121
To run the cubic-bezier benchmark on a device:
2222

23-
```
23+
```sh
2424
flutter drive --profile -t test_driver/run_app.dart --driver test_driver/cubic_bezier_perf_test.dart
2525
```
2626

@@ -33,7 +33,7 @@ More detailed logs should be in `build/cubic_bezier_perf.timeline.json`.
3333
To run the backdrop filter benchmark on a device:
3434
To run a mobile benchmark on a device:
3535

36-
```bash
36+
```sh
3737
flutter drive --profile -t test_driver/run_app.dart --driver test_driver/[test_name]_test.dart
3838
```
3939

@@ -69,7 +69,7 @@ host machine. The following tests are E2E:
6969

7070
These tests should be run by:
7171

72-
```bash
72+
```sh
7373
flutter drive --profile -t test/[test_name]_e2e.dart --driver test_driver/e2e_test.dart
7474
```
7575

@@ -118,7 +118,7 @@ and the profile contains unobfuscated names.
118118

119119
Example:
120120

121-
```
121+
```sh
122122
cd dev/benchmarks/macrobenchmarks
123123

124124
# Runs in profile mode using the HTML renderer
@@ -130,7 +130,7 @@ flutter run --web-renderer=canvaskit --profile -d web-server lib/web_benchmarks.
130130

131131
You can also run all benchmarks exactly as the devicelab runs them:
132132

133-
```
133+
```sh
134134
cd dev/devicelab
135135

136136
# Runs using the HTML renderer

dev/benchmarks/microbenchmarks/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ To run these benchmarks on a device, first run `flutter logs' in one
44
window to see the device logs, then, in a different window, run any of
55
these:
66

7-
```
7+
```sh
88
flutter run --release lib/gestures/velocity_tracker_bench.dart
99
flutter run --release lib/gestures/gesture_detector_bench.dart
1010
flutter run --release lib/stocks/animation_bench.dart

dev/benchmarks/platform_views_layout/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
To run the scrolling benchmark on a device:
66

7-
```
7+
```sh
88
flutter drive --profile test_driver/scroll_perf.dart
99
```
1010

@@ -17,7 +17,7 @@ More detailed logs should be in `build/platform_views_scroll_perf.timeline.json`
1717

1818
To measure startup time on a device:
1919

20-
```
20+
```sh
2121
flutter run --profile --trace-startup
2222
```
2323

dev/benchmarks/platform_views_layout_hybrid_composition/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
To run the scrolling benchmark on a device:
66

7-
```
7+
```sh
88
flutter drive --profile test_driver/scroll_perf.dart
99
```
1010

@@ -17,7 +17,7 @@ More detailed logs should be in `build/platform_views_scroll_perf_hybrid_composi
1717

1818
To measure startup time on a device:
1919

20-
```
20+
```sh
2121
flutter run --profile --trace-startup
2222
```
2323

dev/bots/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,15 +165,15 @@ For example To remove a published package corresponding to the git hash
165165
`d444a455de87a2e40b7f576dc12ffd9ab82fd491`, first do a dry run of the script to
166166
see what it will do:
167167

168-
```
169-
$ dart ./unpublish_package.dart --temp_dir=/tmp/foo --revision d444a455de87a2e40b7f576dc12ffd9ab82fd491
168+
```sh
169+
dart ./unpublish_package.dart --temp_dir=/tmp/foo --revision d444a455de87a2e40b7f576dc12ffd9ab82fd491
170170
```
171171

172172
And once you've verified the output of the dry run to be sure it is what you
173173
want to do, run:
174174

175-
```
176-
$ dart ./unpublish_package.dart --confirm --temp_dir=/tmp/foo --revision d444a455de87a2e40b7f576dc12ffd9ab82fd491
175+
```sh
176+
dart ./unpublish_package.dart --confirm --temp_dir=/tmp/foo --revision d444a455de87a2e40b7f576dc12ffd9ab82fd491
177177
```
178178

179179
and it will perform the actions. You will of course need to have access

dev/conductor/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ All available commands can be seen via:
3535

3636
Releases are initialized with the `start` sub-command, like:
3737

38-
```
38+
```sh
3939
conductor start \
4040
--candidate-branch=flutter-2.2-candidate.10 \
4141
--release-channel=beta \

dev/integration_tests/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Intended for use with devicelab tests.
99
If you want to run a driver test locally, to debug a problem with a test, you
1010
can use this command from the appropriate subdirectory:
1111

12-
```shell
12+
```sh
1313
flutter drive -t <test> --driver <driver>
1414
```
1515

dev/integration_tests/android_custom_host_app/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Android custom host app
22

33
Android host app for a Flutter module created using
4-
```
4+
```sh
55
$ flutter create -t module hello
66
```
77
and placed in a sibling folder to (a clone of) the host app.

dev/integration_tests/android_host_app_v2_embedding/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Android host app
22

33
Android host app for a Flutter module created using
4-
```
4+
```sh
55
$ flutter create -t module hello
66
```
77
and placed in a sibling folder to (a clone of) the host app.

0 commit comments

Comments
 (0)