refactor: website

This commit is contained in:
jstoobysmith 2025-02-14 08:56:51 +00:00
parent e1303cbcf8
commit 16554ebe68
8 changed files with 38 additions and 37 deletions

View file

@ -105,10 +105,10 @@ layout: default
unsafe def main (args : List String) : IO UInt32 := do
let _ ← noImports
let statString ← CoreM.withImportModules #[`HepLean] (getStats).run'
let statString ← CoreM.withImportModules #[`PhysLean] (getStats).run'
println! statString
if "mkHTML" ∈ args then
let html ← CoreM.withImportModules #[`HepLean] (Stats.toHtml).run'
let html ← CoreM.withImportModules #[`PhysLean] (Stats.toHtml).run'
let htmlFile : System.FilePath := {toString := "./docs/Stats.html"}
IO.FS.writeFile htmlFile html
IO.println (s!"HTML file made.")