Merge pull request #153 from HEPLean/informal_defs

chore: Fix docs
This commit is contained in:
Joseph Tooby-Smith 2024-09-16 11:51:30 -04:00 committed by GitHub
commit 4649dfa4dc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 10 additions and 5 deletions

View file

@ -36,6 +36,12 @@ jobs:
- name: Build project
run: lake -Kenv=dev build HepLean
- name: make TODO list
run : lake exe find_TODOs mkFile
- name: make list of informal proofs and lemmas
run : lake exe informal mkFile
- name: Get doc cache
uses: actions/cache@v3
with:
@ -57,10 +63,6 @@ jobs:
- name: Build documentation
run: lake -Kenv=dev build HepLean:docs
- name: make TODO list
run : lake exe find_TODOs mkFile
- name: make list of informal proofs and lemmas
run : lake exe informal mkFile
- name: Copy documentation to `docs/docs`
run: |
mv .lake/build/doc docs/docs

View file

@ -66,6 +66,7 @@ srcDir = "scripts/MetaPrograms"
[[lean_exe]]
name = "informal"
supportInterpreter = true
srcDir = "scripts/MetaPrograms"
# -- Optional inclusion of openAI_doc_check. Needs `llm` above.

View file

@ -168,7 +168,8 @@ unsafe def importToWebString (i : Import) : MetaM String := do
pure ""
else
pure ("\n\n## " ++ i.module.toString ++ "\n" ++ String.intercalate "\n\n" informalPrint.toList)
unsafe def main (args : List String) : IO Unit := do
unsafe def main (args : List String) : IO UInt32 := do
initSearchPath (← findSysroot)
let mods : Name := `HepLean
let imp : Import := {module := mods}
@ -186,3 +187,4 @@ unsafe def main (args : List String) : IO Unit := do
let out := String.intercalate "\n" importWebString.toList
IO.println (s!"Informal file made.")
IO.FS.writeFile fileOut (informalFileHeader ++ out)
pure 0