@@ -29,53 +29,53 @@ pub fn render<T: fmt::Show, S: fmt::Show>(
29
29
-> fmt:: Result
30
30
{
31
31
write ! ( dst,
32
- "<!DOCTYPE html>
33
- <html lang=\ " en\ " >
32
+ r## "<!DOCTYPE html>
33
+ <html lang="en">
34
34
<head>
35
- <meta charset=\ " utf-8\ " />
35
+ <meta charset="utf-8" />
36
36
<title>{title}</title>
37
37
38
38
<link href='http://fonts.googleapis.com/css?family=Oswald:700|Inconsolata:400,700'
39
39
rel='stylesheet' type='text/css'>
40
- <link rel=\ " stylesheet\ " type=\ " text/css\ " href=\ " {root_path}main.css\ " >
40
+ <link rel="stylesheet" type="text/css" href="{root_path}main.css">
41
41
42
- {favicon, select, none{} other{<link rel=\ " shortcut icon\ " href=\" # \ " />}}
42
+ {favicon, select, none{} other{<link rel="shortcut icon" href="\# " />}}
43
43
</head>
44
44
<body>
45
45
<!--[if lte IE 8]>
46
- <div class=\ " warning\ " >
46
+ <div class="warning">
47
47
This old browser is unsupported and will most likely display funky
48
48
things.
49
49
</div>
50
50
<![endif]-->
51
51
52
- <section class=\ " sidebar\ " >
52
+ <section class="sidebar">
53
53
{logo, select, none{} other{
54
- <a href='{root_path}{krate}/index.html'><img src='#' alt=''/></a>
54
+ <a href='{root_path}{krate}/index.html'><img src='\ #' alt=''/></a>
55
55
}}
56
56
57
57
{sidebar}
58
58
</section>
59
59
60
- <nav class=\ " sub\ " >
61
- <form class=\ " search-form js-only\ " >
62
- <button class=\ " do-search\ " >Search</button>
63
- <div class=\ " search-container\ " >
64
- <input class=\ " search-input\ " name=\ " search\ "
65
- autocomplete=\ " off\ "
66
- placeholder=\ " Search documentation...\ "
67
- type=\ " search\ " />
60
+ <nav class="sub">
61
+ <form class="search-form js-only">
62
+ <button class="do-search">Search</button>
63
+ <div class="search-container">
64
+ <input class="search-input" name="search"
65
+ autocomplete="off"
66
+ placeholder="Search documentation..."
67
+ type="search" />
68
68
</div>
69
69
</form>
70
70
</nav>
71
71
72
- <section id='main' class=\ " content {ty}\ " >{content}</section>
73
- <section id='search' class=\ " content hidden\ " ></section>
72
+ <section id='main' class="content {ty}">{content}</section>
73
+ <section id='search' class="content hidden"></section>
74
74
75
- <section class=\ " footer\ " ></section>
75
+ <section class="footer"></section>
76
76
77
- <div id=\ " help\ " class=\ " hidden\ " >
78
- <div class=\ " shortcuts\ " >
77
+ <div id="help" class="hidden">
78
+ <div class="shortcuts">
79
79
<h1>Keyboard shortcuts</h1>
80
80
<dl>
81
81
<dt>?</dt>
@@ -86,11 +86,11 @@ pub fn render<T: fmt::Show, S: fmt::Show>(
86
86
<dd>Move up in search results</dd>
87
87
<dt>↓</dt>
88
88
<dd>Move down in search results</dd>
89
- <dt>&\\ #9166;</dt>
89
+ <dt>&\#9166;</dt>
90
90
<dd>Go to active search result</dd>
91
91
</dl>
92
92
</div>
93
- <div class=\ " infos\ " >
93
+ <div class="infos">
94
94
<h1>Search tricks</h1>
95
95
<p>
96
96
Prefix searches with a type followed by a colon (e.g.
@@ -106,15 +106,15 @@ pub fn render<T: fmt::Show, S: fmt::Show>(
106
106
</div>
107
107
108
108
<script>
109
- var rootPath = \ " {root_path}\ " ;
110
- var currentCrate = \ " {krate}\ " ;
109
+ var rootPath = "{root_path}";
110
+ var currentCrate = "{krate}";
111
111
</script>
112
- <script src=\ " {root_path}jquery.js\ " ></script>
113
- <script src=\ " {root_path}main.js\ " ></script>
114
- <script async src=\ " {root_path}search-index.js\ " ></script>
112
+ <script src="{root_path}jquery.js"></script>
113
+ <script src="{root_path}main.js"></script>
114
+ <script async src="{root_path}search-index.js"></script>
115
115
</body>
116
116
</html>
117
- " ,
117
+ "## ,
118
118
content = * t,
119
119
root_path = page. root_path,
120
120
ty = page. ty,
0 commit comments