about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-11-20 18:21:49 +0100
committerGitHub <noreply@github.com>2022-11-20 18:21:49 +0100
commitc5f92ce2a075c0f656362513ebbaf19006eab047 (patch)
treecab658b97c22a3d21cec0af024765c28b0a10d52 /src/bootstrap
parentdb5f005f35ee8abdf772d518fea09fcadd97fb43 (diff)
parenta3ae6fec8970a09f2983bbc8db90719f11d438ca (diff)
downloadrust-c5f92ce2a075c0f656362513ebbaf19006eab047.tar.gz
rust-c5f92ce2a075c0f656362513ebbaf19006eab047.zip
Rollup merge of #104611 - notriddle:notriddle/scrape-examples-button, r=GuillaumeGomez
rustdoc: use real buttons for scrape examples controls

This makes the expand and switch controls keyboard-accessible.

Preview: https://notriddle.com/notriddle-rustdoc-demos/scrape-examples-button/test_dingus/fn.test.html
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/test.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs
index b22b7ad4ae0..38873cee93b 100644
--- a/src/bootstrap/test.rs
+++ b/src/bootstrap/test.rs
@@ -1011,6 +1011,8 @@ impl Step for RustdocGUI {
                 //        instead of hard-coding this test
                 if entry.file_name() == "link_to_definition" {
                     cargo.env("RUSTDOCFLAGS", "-Zunstable-options --generate-link-to-definition");
+                } else if entry.file_name() == "scrape_examples" {
+                    cargo.arg("-Zrustdoc-scrape-examples=examples");
                 }
                 builder.run(&mut cargo);
             }