Browse Source

Ensure public exists for search index

Closes #756
index-subcmd
Vincent Prouillet 4 years ago
parent
commit
7e618684da
2 changed files with 1 additions and 1 deletions
  1. +1
    -0
      components/site/src/lib.rs
  2. +0
    -1
      docs/config.toml

+ 1
- 0
components/site/src/lib.rs View File

@@ -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)),


+ 0
- 1
docs/config.toml View File

@@ -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"

Loading…
Cancel
Save