diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 53104fb71..9793d9dc3 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -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 diff --git a/src/bin/uudoc.rs b/src/bin/uudoc.rs index a454555b3..115dfab03 100644 --- a/src/bin/uudoc.rs +++ b/src/bin/uudoc.rs @@ -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!(); }