Skip to content

Commit 995c5f9

Browse files
committed
workaround for html generation: simple bash script that generates a Everything.agda
1 parent 9427d94 commit 995c5f9

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
*~
33
\.*#*
44
\#*
5+
/Cubical/Everything.agda

GNUmakefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ fix-whitespace:
2525
check-whitespace:
2626
$(FIX_WHITESPACE) --check
2727

28-
# typechecking and generating listings for all files imported in README
28+
# typechecking and generating listings for all files
2929

3030
.PHONY : check
3131
check:
@@ -37,7 +37,9 @@ timings: clean
3737

3838
.PHONY : listings
3939
listings: $(wildcard Cubical/**/*.agda)
40-
$(AGDA) --build-library -i. -isrc --html -v0
40+
rm -f Cubical/Everything.agda
41+
./generate-everything.sh > Cubical/Everything.agda
42+
$(AGDA) Cubical/Everything.agda -i. -isrc --html -v0
4143

4244
.PHONY : clean
4345
clean:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
A standard library for Cubical Agda
22
===================================
33

4-
The source code has a glorious clickable [rendered version](https://agda.github.io/cubical/Cubical.README.html).
4+
The source code has a glorious clickable [rendered version](https://agda.github.io/cubical/Cubical.Everything.html).
55

66
There is also a [discord server](https://discord.gg/yjTKHzepMx), shared with [agda-unimath](https://unimath.github.io/agda-unimath/) and the [1lab](https://1lab.dev/).
77

generate-everything.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
3+
printf 'module Cubical.Everything where\n\n'
4+
find Cubical/ -type f -name "*.agda" | sed -e 's/\//./g' -e 's/\.agda$//g' -e 's/^/import /'

0 commit comments

Comments
 (0)