rustdoc: use simpler CSS for setting the font on scraped examples

This commit is contained in:
Michael Howell 2022-12-01 11:31:44 -07:00
parent 9c0bc3028a
commit 935def4df1
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() {}