doc: use github URLs for fetching tldr.zip

This commit is contained in:
David Gilman
2025-12-06 15:51:36 -05:00
parent 7c62885c84
commit 1fbc51fe10
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ jobs:
uses: dtolnay/rust-toolchain@stable
- name: Download tldr
run: curl https://tldr.sh/assets/tldr.zip -o docs/tldr.zip
run: curl -L https://github.com/tldr-pages/tldr/releases/latest/download/tldr.zip -o docs/tldr.zip
- name: Generate documentation
run: cargo run --bin uudoc --all-features
+3 -1
View File
@@ -139,7 +139,9 @@ fn print_tldr_error() {
"To include examples in the documentation, download the tldr archive and put it in the docs/ folder."
);
eprintln!();
eprintln!(" curl https://tldr.sh/assets/tldr.zip -o docs/tldr.zip");
eprintln!(
" curl -L https://github.com/tldr-pages/tldr/releases/latest/download/tldr.zip -o docs/tldr.zip"
);
eprintln!();
}