#tree #forester #agda #build #agda-tree

bin+lib agda-tree

A post-processing tool for html/*.tree produced by agda

11 releases

new 0.3.5 May 15, 2025
0.3.4 May 15, 2025
0.2.4 Aug 6, 2024
0.2.3 Jul 29, 2024
0.1.0 Jul 28, 2024

#2025 in Command line utilities

Download history 2/week @ 2025-02-08 398/week @ 2025-05-10

398 downloads per month

GPL-3.0-or-later

53KB
191 lines

agda-tree

Post-processing agda produced html/*.tree to valid tree.

Install

cargo install agda-tree

Usage

Let's say you have a forest (evergreen notes system via forester), and the directory structure is

.
 |
 |-forest.toml      (config of forester)
 |-trees            (for forester)
 |-xxx
 | |-xxx.agda-lib
 | |- ex.lagda.tree

cd xxx, you first run agda (>= 2.8.0) with flags

agda --html --html-highlight=code ex.lagda.tree

agda will produce a ./html/ex.tree, then do postprocessing

agda-tree build

you will get a directory xxx/trees, I will put this directory into configuration forest.toml, then you can view literate Agda in forster system.

image

Example

image

Dependencies

~3.5–4.5MB
~87K SLoC