Add a .nojekyll file

to allow users to have other files with leading underscore names.
This commit is contained in:
Matt Ickstadt 2018-05-15 12:23:08 -05:00
parent b9ca108fca
commit f84e670edd
1 changed files with 3 additions and 0 deletions

View File

@ -142,6 +142,9 @@ impl HtmlHandlebars {
) -> Result<()> { ) -> Result<()> {
use utils::fs::write_file; use utils::fs::write_file;
write_file(destination, ".nojekyll",
b"This file makes sure that Github Pages doesn't process mdBook's output.")?;
write_file(destination, "book.js", &theme.js)?; write_file(destination, "book.js", &theme.js)?;
write_file(destination, "book.css", &theme.css)?; write_file(destination, "book.css", &theme.css)?;
write_file(destination, "favicon.png", &theme.favicon)?; write_file(destination, "favicon.png", &theme.favicon)?;