Skip to content

Commit 1fbc51f

Browse files
committed
doc: use github URLs for fetching tldr.zip
1 parent 7c62885 commit 1fbc51f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
uses: dtolnay/rust-toolchain@stable
3535

3636
- name: Download tldr
37-
run: curl https://tldr.sh/assets/tldr.zip -o docs/tldr.zip
37+
run: curl -L https://github.com/tldr-pages/tldr/releases/latest/download/tldr.zip -o docs/tldr.zip
3838

3939
- name: Generate documentation
4040
run: cargo run --bin uudoc --all-features

src/bin/uudoc.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,9 @@ fn print_tldr_error() {
139139
"To include examples in the documentation, download the tldr archive and put it in the docs/ folder."
140140
);
141141
eprintln!();
142-
eprintln!(" curl https://tldr.sh/assets/tldr.zip -o docs/tldr.zip");
142+
eprintln!(
143+
" curl -L https://github.com/tldr-pages/tldr/releases/latest/download/tldr.zip -o docs/tldr.zip"
144+
);
143145
eprintln!();
144146
}
145147

0 commit comments

Comments
 (0)