Skip to content

Commit

Permalink
fix support for missing rustdoc CSS in header
Browse files Browse the repository at this point in the history
  • Loading branch information
syphar authored and GuillaumeGomez committed Oct 23, 2024
1 parent 70e1362 commit 5e83d28
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion templates/rustdoc/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
{%- let build_slug2 = slug::slugify(crate::BUILD_VERSION) -%}
{%- endif -%}

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

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

0 comments on commit 5e83d28

Please sign in to comment.