compile
This commit is contained in:
parent
56df3385e6
commit
5c35f42baf
11
Makefile
Normal file
11
Makefile
Normal 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
3
html/.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
book
|
||||||
|
src/generated/*
|
||||||
|
!src/generated/.gitkeep
|
9
html/book.toml
Normal file
9
html/book.toml
Normal 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
7
html/src/SUMMARY.md
Normal 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)
|
0
html/src/generated/.gitkeep
Normal file
0
html/src/generated/.gitkeep
Normal file
13
html/style.css
Normal file
13
html/style.css
Normal 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;
|
||||||
|
}
|
|
@ -1,13 +1,13 @@
|
||||||
<details>
|
<details>
|
||||||
<summary>Imports</summary>
|
<summary>Imports</summary>
|
||||||
|
|
||||||
```
|
```
|
||||||
module HottBook.Chapter2 where
|
module HottBook.Chapter2 where
|
||||||
|
|
||||||
open import Agda.Primitive
|
open import Agda.Primitive
|
||||||
open import HottBook.Chapter1
|
open import HottBook.Chapter1
|
||||||
open import HottBook.Util
|
open import HottBook.Util
|
||||||
```
|
```
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue