Skip to content

Commit 84615e8

Browse files
Add missing CSS file for settings page
1 parent 8a2fe75 commit 84615e8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/librustdoc/html/render/context.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -596,9 +596,11 @@ impl<'tcx> FormatRenderer<'tcx> for Context<'tcx> {
596596
|buf: &mut Buffer| {
597597
write!(
598598
buf,
599-
"<script defer src=\"{}settings{}.js\"></script>",
600-
page.static_root_path.unwrap_or(""),
601-
page.resource_suffix
599+
"<link rel=\"stylesheet\" type=\"text/css\" \
600+
href=\"{root_path}settings{suffix}.css\">\
601+
<script defer src=\"{root_path}settings{suffix}.js\"></script>",
602+
root_path = page.static_root_path.unwrap_or(""),
603+
suffix = page.resource_suffix,
602604
)
603605
},
604606
&self.shared.style_files,

0 commit comments

Comments
 (0)