Skip to content

Commit 5e83d28

Browse files
sypharGuillaumeGomez
authored andcommitted
fix support for missing rustdoc CSS in header
1 parent 70e1362 commit 5e83d28

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

templates/rustdoc/head.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
{%- let build_slug2 = slug::slugify(crate::BUILD_VERSION) -%}
77
{%- endif -%}
88

9-
<link rel="stylesheet" href="/-/static/{{rustdoc_css_file.as_ref().expect("rustdoc_css_file missing")}}?{{build_slug2}}" media="all" />
9+
{%- if let Some(css_file) = rustdoc_css_file -%}
10+
<link rel="stylesheet" href="/-/static/{{css_file}}?{{build_slug2}}" media="all" />
11+
{%- endif -%}
1012
<link rel="stylesheet" href="/-/static/font-awesome.css?{{build_slug2}}" media="all" />
1113

1214
<link rel="search" href="/-/static/opensearch.xml" type="application/opensearchdescription+xml" title="Docs.rs" />

0 commit comments

Comments
 (0)