Skip to content

Commit b0bf574

Browse files
committed
build: update book.toml
1 parent 152ce01 commit b0bf574

File tree

4 files changed

+14
-18
lines changed

4 files changed

+14
-18
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,10 @@ jobs:
1212
rustup set profile minimal
1313
rustup toolchain install stable
1414
rustup default stable
15-
- name: Install latest mdbook
16-
run: |
17-
tag=$(curl 'https://api.github.com/repos/rust-lang/mdbook/releases/latest' | jq -r '.tag_name')
18-
url="https://github.com/rust-lang/mdbook/releases/download/${tag}/mdbook-${tag}-x86_64-unknown-linux-gnu.tar.gz"
19-
mkdir bin
20-
curl -sSL $url | tar -xz --directory=bin
21-
echo "$(pwd)/bin" >> $GITHUB_PATH
15+
- name: Install mdbook and plugins
16+
uses: actions-rs/cargo@v1
17+
with:
18+
command: install
19+
args: mdbook mdbook-toc
2220
- name: Run tests
2321
run: mdbook test

.github/workflows/deploy.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Deploy
22
on:
33
push:
44
branches:
5-
- main
5+
- master
66

77
jobs:
88
deploy:
@@ -15,13 +15,11 @@ jobs:
1515
- uses: actions/checkout@v4
1616
with:
1717
fetch-depth: 0
18-
- name: Install latest mdbook
19-
run: |
20-
tag=$(curl 'https://api.github.com/repos/rust-lang/mdbook/releases/latest' | jq -r '.tag_name')
21-
url="https://github.com/rust-lang/mdbook/releases/download/${tag}/mdbook-${tag}-x86_64-unknown-linux-gnu.tar.gz"
22-
mkdir mdbook
23-
curl -sSL $url | tar -xz --directory=./mdbook
24-
echo `pwd`/mdbook >> $GITHUB_PATH
18+
- name: Install mdbook and plugins
19+
uses: actions-rs/cargo@v1
20+
with:
21+
command: install
22+
args: mdbook mdbook-toc
2523
- name: Build Book
2624
run: |
2725
# This assumes your book is in the root of your repository.

book.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[book]
2-
authors = ["ChiangYintso"]
2+
authors = ["Yinzuo Jiang"]
33
language = "en"
44
multilingual = false
55
src = "doc"
6-
title = "ICPC wiki"
6+
title = "Algorithms"
77

88
[output.html]
99
mathjax-support = true

doc/数学.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ long long fast_pow(long long base, long long idx, long long mod) {
4949

5050
(不可用!)
5151

52-
```
52+
```c++
5353
//
5454
// Created by Jiang Yinzuo on 2020/12/12.
5555
//

0 commit comments

Comments
 (0)