Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: small quality of life improvements in progress tracker #265

Merged
merged 1 commit into from
Jan 9, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/verso-manual/VersoManual/Docstring.lean
Original file line number Diff line number Diff line change
Expand Up @@ -1781,11 +1781,13 @@ def progress.descr : BlockDescr where

let tacticPercent := undocTactics.size.toFloat * 100.0 / allTactics.size.toFloat

let namespaces := namespaces.qsort (·.toString ≤ ·.toString)

return {{
<dl>
{{namespaces.map fun ns =>
let wanted := check.findD ns []
let notDocumented := wanted.filter (!ok.contains ·)
let notDocumented := wanted.filter (!ok.contains ·) |>.mergeSort (fun x y => x.toString < y.toString)
let percent := notDocumented.length.toFloat * 100.0 / wanted.length.toFloat
{{
<dt><code>{{ns.toString}}</code></dt>
Expand All @@ -1797,7 +1799,7 @@ def progress.descr : BlockDescr where
</summary>
{{notDocumented |>.map (·.toString) |> String.intercalate ", " }}
<pre>
{{ notDocumented.map ("{docstring " ++ ·.toString ++ "}\n") |> String.join }}
{{ notDocumented.map ("{docstring " ++ ·.toString ++ "}\n\n") |> String.join }}
</pre>
<pre>
"```exceptions\n"
Expand Down
Loading