File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ println!("Hello, World!");
41
41
42
42
If there is no ` main ` function, then the code is automatically wrapped inside one.
43
43
44
- If you wish to disable the play button, you can include the ` noplayground ` option on the code block like this:
44
+ If you wish to disable the play button for a code block , you can include the ` noplayground ` option on the code block like this:
45
45
46
46
~~~ markdown
47
47
```rust,noplayground
@@ -51,6 +51,13 @@ println!("Hello {}!", name);
51
51
```
52
52
~~~
53
53
54
+ Or, if you wish to disable the play button for all code blocks in your book, you can write the config to the ` book.toml ` like this.
55
+
56
+ ``` toml
57
+ [output .html .playground ]
58
+ runnable = false
59
+ ```
60
+
54
61
## Rust code block attributes
55
62
56
63
Additional attributes can be included in Rust code blocks with comma, space, or tab-separated terms just after the language term. For example:
You can’t perform that action at this time.
0 commit comments