Skip to content

Commit

Permalink
Rename output file to search_data.json to match HexDocs specification
Browse files Browse the repository at this point in the history
  • Loading branch information
diemogebhardt committed Jan 23, 2025
1 parent 074c517 commit 08da17b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler-core/src/docs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ pub fn generate_html<IO: FileSystemReader>(
),
});

// lunr.min.js, search-data.js, search-data.json and index.js
// lunr.min.js, search-data.js, search_data.json and index.js

files.push(OutputFile {
path: Utf8PathBuf::from("js/lunr.min.js"),
Expand All @@ -382,7 +382,7 @@ pub fn generate_html<IO: FileSystemReader>(
});

files.push(OutputFile {
path: Utf8PathBuf::from("search-data.json"),
path: Utf8PathBuf::from("search_data.json"),
content: Content::Text(search_data_json.to_string()),
});

Expand Down

0 comments on commit 08da17b

Please sign in to comment.