rustdoc: use simpler CSS for setting the font on scraped examples
This commit is contained in:
parent
9c0bc3028a
commit
935def4df1
@ -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;
|
||||
|
8
src/test/rustdoc-gui/scrape-examples-fonts.goml
Normal file
8
src/test/rustdoc-gui/scrape-examples-fonts.goml
Normal 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|})
|
@ -0,0 +1,3 @@
|
||||
fn main() {
|
||||
scrape_examples::test_many();
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
fn main() {
|
||||
scrape_examples::test_many();
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
fn main() {
|
||||
scrape_examples::test_many();
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
fn main() {
|
||||
scrape_examples::test_many();
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
fn main() {
|
||||
scrape_examples::test_many();
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
fn main() {
|
||||
scrape_examples::test_many();
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
fn main() {
|
||||
scrape_examples::test_many();
|
||||
}
|
@ -5,3 +5,5 @@
|
||||
/// test();
|
||||
/// ```
|
||||
pub fn test() {}
|
||||
|
||||
pub fn test_many() {}
|
||||
|
Loading…
Reference in New Issue
Block a user