Skip to content

Commit 9d4691f

Browse files
committed
Download mdBook instead of compile, add GH URLs
1 parent ab474b9 commit 9d4691f

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/main.yaml

+5-3
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,13 @@ jobs:
3434
- name: Checkout
3535
uses: actions/checkout@v3
3636

37-
- name: Install mdBook
38-
run: cargo install mdbook --no-default-features --features search
37+
- name: Download mdBook
38+
run: |
39+
mkdir bin
40+
curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.4.21/mdbook-v0.4.21-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=bin
3941
4042
- name: Build Docs
41-
run: $HOME/.cargo/bin/mdbook build
43+
run: bin/mdbook build
4244

4345
- name: Upload artifact
4446
uses: actions/upload-pages-artifact@v1

book.toml

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ title = "NYU Processor Design Documentation"
88
[output.html]
99
default-theme = "ayu"
1010
curly-quotes = true
11+
git-repository-url = "https://github.com/NYU-Processor-Design/nyu-processor-design.github.io/tree/main"
12+
edit-url-template = "https://github.com/NYU-Processor-Design/nyu-processor-design.github.io/tree/main/{path}"
1113

1214
[output.html.fold]
1315
enable = true

0 commit comments

Comments
 (0)