Skip to content

Commit b0e2aea

Browse files
Inline wheel.svg into CSS
1 parent 8413685 commit b0e2aea

File tree

7 files changed

+66
-3
lines changed

7 files changed

+66
-3
lines changed

src/librustdoc/html/static/css/rustdoc.css

+31-1
Original file line numberDiff line numberDiff line change
@@ -1608,7 +1608,37 @@ a.tooltip:hover::after {
16081608
font-size: 0;
16091609
}
16101610
#settings-menu > a:before {
1611-
content: url('wheel-63255fc4502dca9a.svg');
1611+
/* Wheel */
1612+
content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" \
1613+
enable-background="new 0 0 22 22" viewBox="0 0 27.434 29.5">\
1614+
<path d="M27.316 18.39a2.696 2.696 0 0 0-.98-1.46 1.62 1.62 0 0 1-.016-.762l.035-.176v-1.191c0-1.246-\
1615+
.003-1.278-.046-1.473a1.717 1.717 0 0 1 .007-.805c.477-.343.829-.859.997-1.472.257-.957.074-2.094-.508-\
1616+
3.117l-.594-1.032c-.746-1.304-1.965-2.117-3.18-2.117-.379 0-.75.078-1.086.235a1.958 1.958 0 0 1-.855-\
1617+
.391l-.102-.082-.117-.063-1.855-1.07-.094-.055-.106-.043c-.378-.156-.66-.41-.77-.554C17.919 1.172 16.349 \
1618+
0 14.297 0h-1.155c-2.043 0-3.61 1.152-3.75 2.723-.114.14-.391.382-.758.527l-.102.04-.094.05-1.94 1.066-\
1619+
.134.074-.117.094a2.019 2.019 0 0 1-.832.403 2.518 2.518 0 0 0-1.008-.211c-1.199 0-2.414.82-3.168 2.14l-\
1620+
.59 1.032c-.41.718-.64 1.523-.64 2.257-.004.953.36 1.758 1.012 2.258.035.152.058.445-.016.785-.04.168-\
1621+
.063.282-.063 1.563 0 1.148 0 1.148.016 1.261l.008.075.015.074c.075.344.047.64.012.8-.644.5-1.004 1.302-\
1622+
.992 2.259.008.726.238 1.52.648 2.242l.59 1.027c.758 1.332 1.965 2.16 3.149 2.16.324 0 .644-.062.937-\
1623+
.187.168.039.492.156.813.418l.11.086.124.07 2.047 1.156.102.059.105.043c.363.144.648.379.766.52.164 1.519 \
1624+
1.718 2.632 3.746 2.632h1.156c2.035 0 3.598-1.133 3.746-2.672.117-.144.402-.394.773-.55l.114-.047.101-.063 \
1625+
1.961-1.156.106-.063.097-.078c.309-.246.653-.37.832-.398.313.136.66.21 1.016.21 1.2 0 2.41-.82 3.164-2.14l\
1626+
.594-1.031c.59-1.028.777-2.164.52-3.117Zm-2.043 2.247-.59 1.031c-.437.766-1.105 1.25-1.636 1.25a.7.7 0 0 1-\
1627+
.371-.094 1.146 1.146 0 0 0-.567-.129c-.593 0-1.382.297-2.007.797l-1.961 1.156c-1.016.426-1.848 1.293-1.848 \
1628+
1.93 0 .64-.898 1.16-1.996 1.16H13.14c-1.102 0-2-.515-2-1.14 0-.63-.832-1.477-1.852-1.887l-2.047-1.16c-.637-\
1629+
.512-1.426-.813-2.008-.813-.199 0-.379.035-.515.114a.648.648 0 0 1-.332.085c-.52 0-1.18-.5-1.621-1.273l-.59-\
1630+
1.031c-.543-.953-.555-1.98-.024-2.285.532-.305.782-1.434.551-2.504V14.8c0-1.09.02-1.18.02-1.18.238-1.074-\
1631+
.008-2.203-.551-2.516-.54-.304-.54-1.34.008-2.293l.59-1.03c.437-.766 1.101-1.255 1.636-1.255a.73.73 0 0 1 \
1632+
.364.094c.152.086.343.125.566.125.594 0 1.379-.297 2.004-.793l1.945-1.066c1.02-.407 1.856-1.278 1.856-1.934 \
1633+
0-.656.898-1.191 2-1.191h1.156c1.098 0 1.996.543 1.996 1.21 0 .669.832 1.555 1.848 1.973L20 6.012c.617.492 \
1634+
1.402.777 2.012.777.242 0 .453-.047.62-.14a.79.79 0 0 1 .403-.102c.55 0 1.223.476 1.652 1.23l.59 1.032c\
1635+
.543.953.52 2.004-.062 2.336-.574.332-.86 1.48-.625 2.554 0 0 .008.04.008 1.102v1.011c-.215 1.051.07 2.176.636 \
1636+
2.5.567.325.586 1.368.04 2.325Zm0 0"/><path d="M13.61 7.61a7.084 7.084 0 0 0-7.083 7.085 7.085 7.085 0 1 0 \
1637+
14.168 0A7.088 7.088 0 0 0 13.61 7.61Zm0 12.41a5.33 5.33 0 0 1-5.325-5.325 5.33 5.33 0 0 1 5.324-5.32 5.327 \
1638+
5.327 0 0 1 5.325 5.32 5.328 5.328 0 0 1-5.325 5.325Zm0 0"/>\
1639+
<path d="M13.684 9.906a4.722 4.722 0 0 0-4.72 4.719 4.722 4.722 0 0 0 4.72 4.719 4.724 4.724 0 0 0 4.714-4.719 \
1640+
4.724 4.724 0 0 0-4.714-4.719Zm0 7.676a2.954 2.954 0 1 1 0-5.91 2.953 2.953 0 0 1 2.953 2.953 2.957 2.957 0 \
1641+
0 1-2.953 2.957Zm0 0"/></svg>');
16121642
width: 22px;
16131643
height: 22px;
16141644
}

src/librustdoc/html/static/images/wheel.svg

-1
This file was deleted.

src/librustdoc/html/static_files.rs

-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ static_files! {
9999
src_script_js => "static/js/src-script.js",
100100
storage_js => "static/js/storage.js",
101101
scrape_examples_js => "static/js/scrape-examples.js",
102-
wheel_svg => "static/images/wheel.svg",
103102
copyright => "static/COPYRIGHT.txt",
104103
license_apache => "static/LICENSE-APACHE.txt",
105104
license_mit => "static/LICENSE-MIT.txt",

src/test/rustdoc/alias-reexport.rs

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// aux-build:alias-reexport.rs
2+
// aux-build:alias-reexport2.rs
3+
4+
#![crate_name = "foo"]
5+
6+
extern crate alias_reexport2;
7+
8+
#[doc(inline)]
9+
pub use alias_reexport2 as reexport;

src/test/rustdoc/alias-reexport2.rs

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// aux-build:alias-reexport.rs
2+
3+
#![crate_name = "foo"]
4+
5+
extern crate alias_reexport;
6+
7+
use alias_reexport::Reexported;
8+
9+
// @has 'foo/fn.foo.html'
10+
// @has - '//*[@class="docblock item-decl"]' 'pub fn foo() -> Reexported'
11+
pub fn foo() -> Reexported { 0 }
12+
// @has 'foo/fn.foo2.html'
13+
// @has - '//*[@class="docblock item-decl"]' 'pub fn foo2() -> Result<Reexported, ()>'
14+
pub fn foo2() -> Result<Reexported, ()> { Ok(0) }
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pub type Reexported = u8;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
extern crate alias_reexport;
3+
4+
pub use alias_reexport::Reexported;
5+
6+
// @has 'foo/fn.foo.html'
7+
// @has - '//*[@class="docblock item-decl"]' 'pub fn foo() -> Reexported'
8+
pub fn foo() -> Reexported { 0 }
9+
// @has 'foo/fn.foo2.html'
10+
// @has - '//*[@class="docblock item-decl"]' 'pub fn foo2() -> Result<Reexported, ()>'
11+
pub fn foo2() -> Result<Reexported, ()> { Ok(0) }

0 commit comments

Comments
 (0)