revert: use bmp extension again

main
Xubai Wang 2022-02-20 23:45:31 +08:00
parent 73f7906357
commit 842e243241
3 changed files with 3 additions and 3 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.json") json.compress FS.writeFile (basePath / "searchable_data.bmp") 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

@ -24,7 +24,7 @@ def baseHtmlArray (title : String) (site : Array Html) : HtmlM Html := do
<link rel="stylesheet" href={s!"{←getRoot}style.css"}/> <link rel="stylesheet" href={s!"{←getRoot}style.css"}/>
<link rel="stylesheet" href={s!"{←getRoot}pygments.css"}/> <link rel="stylesheet" href={s!"{←getRoot}pygments.css"}/>
<link rel="shortcut icon" href={s!"{←getRoot}favicon.ico"}/> <link rel="shortcut icon" href={s!"{←getRoot}favicon.ico"}/>
<link rel="prefetch" href={s!"{←getRoot}searchable-data.json"}/> <link rel="prefetch" href={s!"{←getRoot}searchable_data.bmp"}/>
<script defer="true" src={s!"{←getRoot}site-root.js"}></script> <script defer="true" src={s!"{←getRoot}site-root.js"}></script>
<script defer="true" src={s!"{←getRoot}nav.js"}></script> <script defer="true" src={s!"{←getRoot}nav.js"}></script>

View File

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