Skip to content

Commit 60f9002

Browse files
committed
Merge remote-tracking branch 'origin/develop' into probability_dev
2 parents 8938f93 + 83213aa commit 60f9002

File tree

17 files changed

+2813
-133
lines changed

17 files changed

+2813
-133
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: Regenerate tactic cheatsheet
2+
on:
3+
push:
4+
branches:
5+
- master
6+
paths:
7+
- 'Manual/Cheatsheet/**'
8+
workflow_dispatch:
9+
10+
jobs:
11+
12+
regenerate:
13+
runs-on: ubuntu-latest
14+
env:
15+
COMMIT_MSG: ${{ github.workspace }}/commit_msg.txt
16+
17+
steps:
18+
- name: Install prerequisites
19+
run: |
20+
sudo apt-get update
21+
sudo apt-get install -y build-essential pandoc curl
22+
23+
- name: Checkout HOL
24+
uses: actions/checkout@v4
25+
with:
26+
path: hol
27+
28+
- name: Checkout HOL webpages
29+
uses: actions/checkout@v4
30+
with:
31+
repository: hol-theorem-prover/hol-webpages
32+
path: hol-webpages
33+
token: ${{ secrets.CHEATSHEET_REGEN }}
34+
35+
- name: Regenerate cheatsheet
36+
run: |
37+
cd hol/Manual/Cheatsheet
38+
make -f Holmakefile
39+
40+
- name: Copy cheatsheet into HOL webpages
41+
run: |
42+
cp hol/Manual/Cheatsheet/cheatsheet.html hol-webpages/new-look/cheatsheet.html
43+
cp hol/Manual/Cheatsheet/cheatsheet.css hol-webpages/new-look/cheatsheet.css
44+
45+
- name: Compose commit message
46+
env:
47+
HEAD_COMMIT: ${{github.event.head_commit.id}}
48+
AUTHOR: ${{github.event.pusher.username || github.event.pusher.name}}
49+
run: |
50+
echo "[cheatsheet] Regenerate cheatsheet" > $COMMIT_MSG
51+
echo "" >> $COMMIT_MSG
52+
echo "Trigger: head commit HOL-Theorem-Prover/HOL@$HEAD_COMMIT, by $AUTHOR" >> $COMMIT_MSG
53+
54+
- name: Commit changes to HOL webpages
55+
run: |
56+
cd hol-webpages
57+
git config user.name "GitHub Actions"
58+
git config user.email "<>"
59+
git add new-look/cheatsheet.html new-look/cheatsheet.css
60+
git commit --allow-empty --file $COMMIT_MSG
61+
git push
62+
63+
- name: Update HOL webpages
64+
run: |
65+
curl --silent https://hol-theorem-prover.org/update.cgi

Manual/Cheatsheet/Holmakefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ EXTRA_CLEANS = cheatsheet.html cheatsheet.pdf
55
all: $(EXTRA_CLEANS)
66

77
cheatsheet.html: $(CHEATSHEET_SOURCES)
8-
pandoc -s --toc -c cheatsheet.css -o cheatsheet.html --from commonmark_x cheatsheet.md
8+
pandoc -s --toc -c cheatsheet.css -o cheatsheet.html --from commonmark_x-smart --wrap=none cheatsheet.md
99

1010
cheatsheet.pdf: $(CHEATSHEET_SOURCES)
1111
pandoc -s --toc -c cheatsheet.css -o cheatsheet.pdf cheatsheet.md

Manual/Cheatsheet/cheatsheet.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ h1, h2, h3 {
3131

3232
h1 {
3333
font-size: 1.8rem;
34-
margin-bottom: 30px;
34+
margin: 30px 0;
3535
}
3636

3737
h1, h2, h3, h4, h5, h6{

Manual/Cheatsheet/cheatsheet.md

+61-46
Large diffs are not rendered by default.

Manual/Description/Holmakefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ tactics.tex: tactics.stex $(PS_STUFF)
2626

2727
theories.tex: theories.stex $(PS_STUFF) $(dprot $(SIGOBJ)/realTheory.uo) \
2828
$(dprot $(HOLDIR)/src/integer/integerTheory.uo) \
29-
$(dprot $(SIGOBJ)/real_sigmaTheory.uo) \
29+
$(dprot $(HOLDIR)/src/real/real_sigmaTheory.uo) \
30+
$(dprot $(HOLDIR)/src/real/analysis/real_topologyTheory.uo) \
3031
$(dprot $(SIGOBJ)/iterateTheory.uo)
3132
$(PS_COMMAND)
3233

Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
INCLUDES = $(HOLDIR)/src/algebra/construction

0 commit comments

Comments
 (0)