Skip to content

Commit 5307ff3

Browse files
authored
Merge pull request #130 from Seasawher/add-solutions
Add solutions
2 parents 7cb76d7 + ba71641 commit 5307ff3

File tree

8 files changed

+48
-51
lines changed

8 files changed

+48
-51
lines changed

.github/workflows/book.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: Book
22

3-
on: [push, pull_request]
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- master
8+
workflow_dispatch:
49

510
jobs:
611
book:
@@ -26,7 +31,7 @@ jobs:
2631
2732
- name: Build Some LaTeX
2833
run: |
29-
pandoc --to latex md/cover.md $(grep -o '\(md/.*\.md\)' CONTENTS.md | tr -d '(' | tr -d ')') --toc --template ./eisvogel.latex --top-level-division=chapter -V documentclass=book -V classoption=oneside --no-highlight |
34+
pandoc --to latex md/cover.md $(grep -o '\(md/.*\.md\)' SUMMARY.md | tr -d '(' | tr -d ')') --toc --template ./eisvogel.latex --top-level-division=chapter -V documentclass=book -V classoption=oneside --no-highlight |
3035
sed -e 's/\\begin{verbatim}/\\begin{minted}{Lean}/' -e 's/{verbatim}/{minted}/' -e's/% Listings/\\usepackage{minted}\n\\newmintinline[lean]{pygments\/lean4.py:Lean4Lexer -x}{bgcolor=white}\n\\newminted[leancode]{pygments\/lean4.py:Lean4Lexer -x}{fontsize=\\footnotesize}\n\\setminted{fontsize=\\footnotesize, breaklines}\n/' >out.tex
3136
3237
- name: Build a PDF

.github/workflows/deploy.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: Deploy to github pages
22

3-
on: [push, pull_request]
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- master
8+
workflow_dispatch:
49

510
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
611
permissions:

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/build
22
.lake/
33
book
4-
md/
5-
!md/SUMMARY.md
4+
md/

CONTENTS.md

Lines changed: 0 additions & 26 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Authors: Arthur Paulino, Damiano Testa, Edward Ayers, Evgenia Karunus, Henrik Böving, Jannis Limperg, Siddhartha Gadgil, Siddharth Bhat
44

5-
* Tha textbook in html format is [here](https://leanprover-community.github.io/lean4-metaprogramming-book/).
5+
* The textbook in html format is [here](https://leanprover-community.github.io/lean4-metaprogramming-book/).
66

77
* A PDF is [available here for download](../../releases/download/latest/Metaprogramming.in.Lean.4.pdf) (and is rebuilt on each change).
88

SUMMARY.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Summary
2+
3+
# Main
4+
5+
- [Introduction](md/main/01_intro.md)
6+
- [Overview](md/main/02_overview.md)
7+
- [Expressions](md/main/03_expressions.md)
8+
- [MetaM](md/main/04_metam.md)
9+
- [Syntax](md/main/05_syntax.md)
10+
- [Macros](md/main/06_macros.md)
11+
- [Elaboration](md/main/07_elaboration.md)
12+
- [Embedding DSLs By Elaboration](md/main/08_dsls.md)
13+
- [Tactics](md/main/09_tactics.md)
14+
- [Lean4 Cheat-sheet](md/main/10_cheat-sheet.md)
15+
16+
# Extra
17+
18+
- [Options](md/extra/01_options.md)
19+
- [Attributes]()
20+
- [Pretty Printing](md/extra/03_pretty-printing.md)
21+
22+
# Solutions
23+
24+
- [Introduction]()
25+
- [Overview]()
26+
- [Expressions](md/solutions/03_expressions.md)
27+
- [`MetaM`](md/solutions/04_metam.md)
28+
- [`Syntax`](md/solutions/05_syntax.md)
29+
- [Macros]()
30+
- [Elaboration](md/solutions/07_elaboration.md)
31+
- [DSLs]()
32+
- [Tactics](md/solutions/09_tactics.md)

book.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
authors = ["Arthur Paulino, Damiano Testa, Edward Ayers, Evgenia Karunus, Henrik Böving, Jannis Limperg, Siddhartha Gadgil, Siddharth Bhat"]
33
language = "en"
44
multilingual = false
5-
src = "md"
5+
src = "."
66
title = "Metaprogramming in Lean 4"
77

88
[output.html]

md/SUMMARY.md

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)