This commit is contained in:
Michael Zhang 2024-05-17 01:49:10 -05:00
parent 56df3385e6
commit 5c35f42baf
7 changed files with 49 additions and 6 deletions

11
Makefile Normal file
View file

@ -0,0 +1,11 @@
GENDIR := html/src/generated
build-to-html:
find src/HottBook \( -name "*.agda" -o -name "*.lagda.md" \) -print0 \
| rust-parallel -0 agda --html --html-dir=$(GENDIR) --html-highlight=auto || true
fd --no-ignore "html$$" $(GENDIR) -x rm
deploy: build-to-html
mdbook build html
rsync -azrP html/book/ root@veil:/home/blogDeploy/public/hott-book
.PHONY: build-to-html deploy

3
html/.gitignore vendored Normal file
View file

@ -0,0 +1,3 @@
book
src/generated/*
!src/generated/.gitkeep

9
html/book.toml Normal file
View file

@ -0,0 +1,9 @@
[book]
authors = ["Michael Zhang"]
language = "en"
multilingual = false
src = "src"
title = "HoTT Book"
[output.html]
additional-css = ["src/generated/Agda.css", "style.css"]

7
html/src/SUMMARY.md Normal file
View file

@ -0,0 +1,7 @@
# Summary
- [Chapter 1](./generated/HottBook.Chapter1.md)
- [Chapter 2](./generated/HottBook.Chapter2.md)
- [Chapter 3](./generated/HottBook.Chapter3.md)
- [Chapter 4](./generated/HottBook.Chapter4.md)
- [Chapter 5](./generated/HottBook.Chapter5.md)

View file

13
html/style.css Normal file
View file

@ -0,0 +1,13 @@
@font-face {
font-family: "PragmataPro Mono Liga";
src:
url("/fonts/patched/PragmataPro-Mono-Liga-Regular-Nerd-Font-Complete.woff2") format("woff2"),
url("https://mzhang.io/fonts/patched/PragmataPro-Mono-Liga-Regular-Nerd-Font-Complete.woff2")
format("woff2");
}
pre.Agda {
font-family: "PragmataPro Mono Liga", monospace;
}

View file

@ -1,13 +1,13 @@
<details>
<summary>Imports</summary>
```
module HottBook.Chapter2 where
```
module HottBook.Chapter2 where
open import Agda.Primitive
open import HottBook.Chapter1
open import HottBook.Util
```
open import Agda.Primitive
open import HottBook.Chapter1
open import HottBook.Util
```
</details>