From 7e618684daba6072c487a3750192b59f96affbc9 Mon Sep 17 00:00:00 2001 From: Vincent Prouillet Date: Sat, 20 Jul 2019 16:09:16 +0200 Subject: [PATCH] Ensure public exists for search index Closes #756 --- components/site/src/lib.rs | 1 + docs/config.toml | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/components/site/src/lib.rs b/components/site/src/lib.rs index 3a0829ab..cd393e91 100644 --- a/components/site/src/lib.rs +++ b/components/site/src/lib.rs @@ -764,6 +764,7 @@ impl Site { } pub fn build_search_index(&self) -> Result<()> { + ensure_directory_exists(&self.output_path)?; // index first create_file( &self.output_path.join(&format!("search_index.{}.js", self.config.default_language)), diff --git a/docs/config.toml b/docs/config.toml index fc847edd..62cc309c 100644 --- a/docs/config.toml +++ b/docs/config.toml @@ -7,7 +7,6 @@ highlight_code = true insert_anchor_links = true highlight_theme = "kronuz" build_search_index = true -# check_external_links = true [extra] author = "Vincent Prouillet"