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

Config to toggle the run button on codeblocks #1546

Merged
merged 4 commits into from
Mar 27, 2022

Conversation

pineapplehunter
Copy link
Contributor

This PR is for #747.
This adds a flag to the config that toggles the run button on codeblocks.

In book.toml you can write like below to disable all run buttons on codeblocks.

[output.html.playground]
runnable = false

@pineapplehunter pineapplehunter marked this pull request as ready for review March 26, 2022 06:34
@pineapplehunter
Copy link
Contributor Author

If this needs more tests or docs, I'm happy to help!

@ehuss
Copy link
Contributor

ehuss commented Mar 26, 2022

Thanks! Can you also include a small addition to https://github.com/rust-lang/mdBook/blob/master/guide/src/format/mdbook.md#rust-playground about this config option?

@pineapplehunter
Copy link
Contributor Author

Updated the doc!

Copy link
Contributor

@ehuss ehuss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ehuss ehuss merged commit 6cab045 into rust-lang:master Mar 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants