refactor: use json ext instead of bmp

main
Xubai Wang 2022-02-20 22:54:57 +08:00
parent 87a8b8feb0
commit 9f13773a7d
2 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@ def htmlOutput (result : AnalyzerResult) (root : String) : IO Unit := do
declList := declList.push obj declList := declList.push obj
let json := Json.arr declList let json := Json.arr declList
FS.writeFile (basePath / "searchable_data.bmp") json.compress FS.writeFile (basePath / "searchable_data.json") json.compress
FS.writeFile (basePath / "index.html") indexHtml.toString FS.writeFile (basePath / "index.html") indexHtml.toString
FS.writeFile (basePath / "style.css") styleCss FS.writeFile (basePath / "style.css") styleCss
FS.writeFile (basePath / "404.html") notFoundHtml.toString FS.writeFile (basePath / "404.html") notFoundHtml.toString

View File

@ -106,7 +106,7 @@ if (tse != null) {
// Simple declaration search // Simple declaration search
// ------------------------- // -------------------------
const declURL = new URL(`${siteRoot}searchable_data.bmp`, window.location); const declURL = new URL(`${siteRoot}searchable_data.json`, window.location);
const getDecls = (() => { const getDecls = (() => {
let decls; let decls;
return () => { return () => {