Skip to content

Commit bbe8f80

Browse files
committed
fix(search-index): path
1 parent e2a6ebc commit bbe8f80

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crates/rari-doc/src/search_index.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ pub struct SearchItem<'a> {
1919
}
2020

2121
pub fn build_search_index(docs: &[Page]) -> Result<(), DocError> {
22-
let in_file = content_root().join("en-US").join("popularities.json");
22+
let in_file = content_root()
23+
.join(Locale::EnUs.as_folder_str())
24+
.join("popularities.json");
2325
let json_str = read_to_string(in_file)?;
2426
let popularities: Popularities = serde_json::from_str(&json_str)?;
2527

0 commit comments

Comments
 (0)