Skip to content

Commit

Permalink
build: update book.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangyinzuo committed Aug 5, 2024
1 parent 152ce01 commit b0bf574
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 18 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@ jobs:
rustup set profile minimal
rustup toolchain install stable
rustup default stable
- name: Install latest mdbook
run: |
tag=$(curl 'https://api.github.com/repos/rust-lang/mdbook/releases/latest' | jq -r '.tag_name')
url="https://github.com/rust-lang/mdbook/releases/download/${tag}/mdbook-${tag}-x86_64-unknown-linux-gnu.tar.gz"
mkdir bin
curl -sSL $url | tar -xz --directory=bin
echo "$(pwd)/bin" >> $GITHUB_PATH
- name: Install mdbook and plugins
uses: actions-rs/cargo@v1
with:
command: install
args: mdbook mdbook-toc
- name: Run tests
run: mdbook test
14 changes: 6 additions & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Deploy
on:
push:
branches:
- main
- master

jobs:
deploy:
Expand All @@ -15,13 +15,11 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install latest mdbook
run: |
tag=$(curl 'https://api.github.com/repos/rust-lang/mdbook/releases/latest' | jq -r '.tag_name')
url="https://github.com/rust-lang/mdbook/releases/download/${tag}/mdbook-${tag}-x86_64-unknown-linux-gnu.tar.gz"
mkdir mdbook
curl -sSL $url | tar -xz --directory=./mdbook
echo `pwd`/mdbook >> $GITHUB_PATH
- name: Install mdbook and plugins
uses: actions-rs/cargo@v1
with:
command: install
args: mdbook mdbook-toc
- name: Build Book
run: |
# This assumes your book is in the root of your repository.
Expand Down
4 changes: 2 additions & 2 deletions book.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[book]
authors = ["ChiangYintso"]
authors = ["Yinzuo Jiang"]
language = "en"
multilingual = false
src = "doc"
title = "ICPC wiki"
title = "Algorithms"

[output.html]
mathjax-support = true
Expand Down
2 changes: 1 addition & 1 deletion doc/数学.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ long long fast_pow(long long base, long long idx, long long mod) {

(不可用!)

```
```c++
//
// Created by Jiang Yinzuo on 2020/12/12.
//
Expand Down

0 comments on commit b0bf574

Please sign in to comment.