Skip to content

Commit

Permalink
Merge pull request #274 from QuietMisdreavus/source-sidebar-files
Browse files Browse the repository at this point in the history
add new static files from recent rustdoc changes
  • Loading branch information
onur authored Dec 18, 2018
2 parents d066faa + ed215f2 commit 9be876f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/docbuilder/chroot_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -389,14 +389,16 @@ impl DocBuilder {
let files = (// files require rustc version subfix
["brush.svg",
"wheel.svg",
"down-arrow.svg",
"dark.css",
"light.css",
"main.js",
"normalize.css",
"rustdoc.css",
"settings.css",
"storage.js",
"theme.js"],
"theme.js",
"source-script.js"],
// files doesn't require rustc version subfix
["FiraSans-Medium.woff",
"FiraSans-Regular.woff",
Expand Down
3 changes: 3 additions & 0 deletions src/web/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,9 @@ impl CratesfyiHandler {
router.get("/:crate/:version/aliases.js",
rustdoc::rustdoc_html_server_handler,
"crate_version_aliases_js");
router.get("/:crate/:version/source-files.js",
rustdoc::rustdoc_html_server_handler,
"crate_version_source_files_js");
router.get("/:crate/:version/:target",
rustdoc::rustdoc_redirector_handler,
"crate_version_target");
Expand Down

0 comments on commit 9be876f

Please sign in to comment.