From f84e670eddfcdda406f6447a0f41962e2f8dff31 Mon Sep 17 00:00:00 2001 From: Matt Ickstadt Date: Tue, 15 May 2018 12:23:08 -0500 Subject: [PATCH] Add a .nojekyll file to allow users to have other files with leading underscore names. --- src/renderer/html_handlebars/hbs_renderer.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/renderer/html_handlebars/hbs_renderer.rs b/src/renderer/html_handlebars/hbs_renderer.rs index fbaad523..8fe37e47 100644 --- a/src/renderer/html_handlebars/hbs_renderer.rs +++ b/src/renderer/html_handlebars/hbs_renderer.rs @@ -142,6 +142,9 @@ impl HtmlHandlebars { ) -> Result<()> { 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.css", &theme.css)?; write_file(destination, "favicon.png", &theme.favicon)?;