From f2736c907969af3ae0aba07980471698323b86eb Mon Sep 17 00:00:00 2001 From: Jan-Erik Rediger Date: Mon, 7 Nov 2022 18:49:08 +0100 Subject: [PATCH] Disable the playground run button by default for code blocks Most example code in RFCs is not written with executability in mind, so having the "Run" button available by default on all RFCs seems a bit misleading. This now disables the playground for the whole book (which also removes the "hidden" code mdbook inserts). It thus only leaves the copy button. --- book.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/book.toml b/book.toml index 2fb28d6d0..3aad20094 100644 --- a/book.toml +++ b/book.toml @@ -7,3 +7,6 @@ git-repository-url = "https://github.com/rust-lang/rfcs" [output.html.search] heading-split-level = 0 + +[output.html.playground] +runnable = false