commit
4649dfa4dc
3 changed files with 10 additions and 5 deletions
10
.github/workflows/docs.yml
vendored
10
.github/workflows/docs.yml
vendored
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue