1 // We check the background color on the jump to definition links in the source code page.
2 goto: "file://" + |DOC_PATH| + "/src/link_to_definition/lib.rs.html"
4 // Set the theme to dark.
6 "rustdoc-theme": "dark",
7 "rustdoc-preferred-dark-theme": "dark",
8 "rustdoc-use-system-theme": "false",
10 // We reload the page so the local storage settings are being used.
14 "body.source .example-wrap pre.rust a",
15 {"background-color": "rgb(51, 51, 51)"},
19 // Set the theme to ayu.
21 "rustdoc-theme": "ayu",
22 "rustdoc-preferred-dark-theme": "ayu",
23 "rustdoc-use-system-theme": "false",
25 // We reload the page so the local storage settings are being used.
29 "body.source .example-wrap pre.rust a",
30 {"background-color": "rgb(51, 51, 51)"},
34 // Set the theme to light.
35 local-storage: {"rustdoc-theme": "light", "rustdoc-use-system-theme": "false"}
36 // We reload the page so the local storage settings are being used.
40 "body.source .example-wrap pre.rust a",
41 {"background-color": "rgb(238, 238, 238)"},