1
Fork 0

Rollup merge of #105143 - notriddle:notriddle/scraped-example-list-font, r=GuillaumeGomez

rustdoc: use simpler CSS for setting the font on scraped examples
This commit is contained in:
Matthias Krüger 2022-12-02 08:28:12 +01:00 committed by GitHub
commit 8e059d5968
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 32 additions and 3 deletions

View file

@ -197,9 +197,7 @@ a.srclink,
#help-button > a,
details.rustdoc-toggle.top-doc > summary,
details.rustdoc-toggle.non-exhaustive > summary,
.scraped-example-title,
.more-examples-toggle summary, .more-examples-toggle .hide-more,
.example-links a,
.scraped-example-list,
/* This selector is for the items listed in the "all items" page. */
ul.all-items {
font-family: "Fira Sans", Arial, NanumBarunGothic, sans-serif;

View file

@ -0,0 +1,8 @@
goto: "file://" + |DOC_PATH| + "/scrape_examples/fn.test_many.html"
store-value: (font, '"Fira Sans", Arial, NanumBarunGothic, sans-serif')
wait-for-css: (".scraped-example-title", {"font-family": |font|})
wait-for-css: (".more-examples-toggle summary", {"font-family": |font|})
wait-for-css: (".more-examples-toggle .hide-more", {"font-family": |font|})
wait-for-css: (".example-links a", {"font-family": |font|})

View file

@ -0,0 +1,3 @@
fn main() {
scrape_examples::test_many();
}

View file

@ -0,0 +1,3 @@
fn main() {
scrape_examples::test_many();
}

View file

@ -0,0 +1,3 @@
fn main() {
scrape_examples::test_many();
}

View file

@ -0,0 +1,3 @@
fn main() {
scrape_examples::test_many();
}

View file

@ -0,0 +1,3 @@
fn main() {
scrape_examples::test_many();
}

View file

@ -0,0 +1,3 @@
fn main() {
scrape_examples::test_many();
}

View file

@ -0,0 +1,3 @@
fn main() {
scrape_examples::test_many();
}

View file

@ -5,3 +5,5 @@
/// test();
/// ```
pub fn test() {}
pub fn test_many() {}