Skip to content

Commit f93179d

Browse files
committed
deprecate mdgen, try mdbook
1 parent 48a9e5a commit f93179d

File tree

9 files changed

+31
-134
lines changed

9 files changed

+31
-134
lines changed

.github/workflows/book.yml

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

.github/workflows/ci.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1-
name: Deploy to github pages
1+
# Sample workflow for building and deploying a mdBook site to GitHub Pages
2+
#
3+
# To get started with mdBook see: https://rust-lang.github.io/mdBook/index.html
4+
#
5+
name: Deploy mdBook site to Pages
26

37
on:
4-
pull_request:
8+
# Runs on pushes targeting the default branch
59
push:
6-
branches:
7-
- master
10+
branches: ["master"]
11+
12+
# Allows you to run this workflow manually from the Actions tab
813
workflow_dispatch:
914

1015
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
@@ -20,35 +25,30 @@ concurrency:
2025
cancel-in-progress: false
2126

2227
jobs:
28+
# Build job
2329
build:
2430
runs-on: ubuntu-latest
31+
env:
32+
MDBOOK_VERSION: 0.4.36
2533
steps:
26-
- name: checkout
27-
uses: actions/checkout@v4
28-
29-
- name: install elan
34+
- uses: actions/checkout@v4
35+
- name: Install mdBook
3036
run: |
31-
curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf | sh -s -- -y --default-toolchain none
32-
echo "$HOME/.elan/bin" >> $GITHUB_PATH
33-
34-
- name: build markdown files by mdgen
35-
run: lake run mdbuild
36-
37-
- name: setup mdBook
38-
uses: peaceiris/actions-mdbook@v1
39-
with:
40-
mdbook-version: '0.4.35'
41-
42-
- name: build html from markdown
37+
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf -y | sh
38+
rustup update
39+
cargo install --version ${MDBOOK_VERSION} mdbook
40+
- name: Setup Pages
41+
id: pages
42+
uses: actions/configure-pages@v4
43+
- name: Build with mdBook
4344
run: mdbook build
44-
45-
- name: upload artifact
45+
- name: Upload artifact
4646
uses: actions/upload-pages-artifact@v3
4747
with:
4848
path: ./book
4949

50+
# Deployment job
5051
deploy:
51-
if: github.ref == 'refs/heads/master'
5252
environment:
5353
name: github-pages
5454
url: ${{ steps.deployment.outputs.page_url }}
@@ -57,4 +57,4 @@ jobs:
5757
steps:
5858
- name: Deploy to GitHub Pages
5959
id: deployment
60-
uses: actions/deploy-pages@v4
60+
uses: actions/deploy-pages@v4

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
这是一本关于 Lean 4 内核和实现外部类型检查器的书;它是用 mdBook 构建的。
44

5-
原作者:[Chris Bailey](https://github.com/ammkrn) 原文地址:[https://ammkrn.github.io/type_checking_in_lean4/](https://ammkrn.github.io/type_checking_in_lean4/)
5+
原作者:[Christopher A. Bailey](https://github.com/ammkrn) 原文地址:[https://ammkrn.github.io/type_checking_in_lean4/](https://ammkrn.github.io/type_checking_in_lean4/)
66

7-
译者:[subfish_zhou](https://github.com/subfish-zhou)
7+
译者:[subfish_zhou](https://github.com/subfish-zhou) 译本地址:[http://www.leanprover.cn/type-checking-in-lean-zh/](http://www.leanprover.cn/type-checking-in-lean-zh/)
88

99
## 贡献
1010

book.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ src = "src"
66
title = "Lean 4 类型检查"
77

88
[output.html]
9-
git-repository-url = "https://github.com/Lean-zh/type_checking"
9+
git-repository-url = "https://github.com/Lean-zh/type-checking-in-lean-zh"
1010
additional-css = ["./assets/pagetoc.css"]
1111
additional-js = [
1212
"assets/blockPlay.js",
@@ -15,7 +15,7 @@ additional-js = [
1515
]
1616

1717
# Settings to overwrite the edit button and make it a code execution button.
18-
# edit-url-template = "https://raw.githubusercontent.com/Lean-zh/type_checking/master/{path}"
18+
# edit-url-template = "https://raw.githubusercontent.com/Lean-zh/type-checking-in-lean-zh/master/{path}"
1919

2020
# To ensure that the 404 page functions properly.
21-
# site-url = "https://github.com/Lean-zh/type_checking"
21+
# site-url = "https://github.com/Lean-zh/type-checking-in-lean-zh"

lake-manifest.json

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

lakefile.lean

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

lean-toolchain

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/title_page.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# Type Checking in Lean 4
1+
# Lean 4 类型检查
22

3-
This document exists to help readers better understand Lean's kernel, clarify the trust assumptions involved in using Lean, and serve as a resource for those who wish to write their own external type checkers for Lean's kernel language.
3+
本文档旨在帮助读者更好地理解 Lean 的内核,解释使用 Lean 所涉及的信任假设,并为希望为 Lean 内核语言编写自己的外部类型检查器的读者提供资源。

0 commit comments

Comments
 (0)