Skip to content

Commit 4379df7

Browse files
pietroalbiniJoshua Nelson
authored andcommitted
statics: remove pure-css from the static search path
Those CSS files are now included in vendored.css, so there is no need to serve them through /-/static anymore.
1 parent ace07ea commit 4379df7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/web/statics.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use std::{ffi::OsStr, fs, path::Path};
1212
const VENDORED_CSS: &str = include_str!(concat!(env!("OUT_DIR"), "/vendored.css"));
1313
const STYLE_CSS: &str = include_str!(concat!(env!("OUT_DIR"), "/style.css"));
1414
const RUSTDOC_CSS: &str = include_str!(concat!(env!("OUT_DIR"), "/rustdoc.css"));
15-
const STATIC_SEARCH_PATHS: &[&str] = &["vendor/pure-css/css", "static", "vendor"];
15+
const STATIC_SEARCH_PATHS: &[&str] = &["static", "vendor"];
1616

1717
pub(crate) fn static_handler(req: &mut Request) -> IronResult<Response> {
1818
let mut file = req.url.path();
@@ -252,7 +252,7 @@ mod tests {
252252
wrapper(|env| {
253253
let web = env.frontend();
254254

255-
let files = &[("pure-min.css", "text/css")];
255+
let files = &[("highlightjs/styles/dark.min.css", "text/css")];
256256

257257
for (file, mime) in files {
258258
let url = format!("/-/static/{}", file);

0 commit comments

Comments
 (0)