From be61cf95b1a72ecac0ced137564d883e735d87ed Mon Sep 17 00:00:00 2001 From: zeme-wana <15709674+zeme-wana@users.noreply.github.com> Date: Mon, 1 Jul 2024 13:43:33 +0200 Subject: [PATCH] Fix bug in ./script/combined-haddock.sh (#6263) --- scripts/combined-haddock.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/combined-haddock.sh b/scripts/combined-haddock.sh index 070af490204..c7c3c4ee147 100755 --- a/scripts/combined-haddock.sh +++ b/scripts/combined-haddock.sh @@ -138,7 +138,7 @@ haddock \ echo "Assembling top-level doc-index.json" -for file in $(find "${OUTPUT_DIR}" -name "*.doc-index.json"); do +for file in $(find "${OUTPUT_DIR}" -name "*doc-index.json"); do project=$(basename "$(dirname "$file")"); jq ".[] | .link = \"${project}/\(.link)\"" "${file}" done | @@ -203,6 +203,8 @@ fi # These are the currently broken links which incluce some non-sensical URLs and other edge-cases. BROKEN_LINKS=( + "file:///.*/haddocks/plutus-tx/PlutusTx-Prelude.html https://hackage.haskell.org/package/hashable-1.4.6.0/docs/Data-Hashable-Class.html" + "file:///.*/haddocks/plutus-tx/PlutusTx-Prelude.html https://hackage.haskell.org/package/random-1.2.1.2/docs/System-Random-Internal.html" "file:///.*/haddocks/plutus-tx/PlutusTx-Prelude.html file:///.*/plutus-tx/Data-Aeson-Types-FromJSON.html" "file:///.*/haddocks/plutus-tx/PlutusTx-Prelude.html file:///.*/plutus-tx/Data-Aeson-Types-ToJSON.html" "file:///.*/haddocks/plutus-tx/PlutusTx-Prelude.html file:///.*/plutus-tx/Basement-Numerical-Subtractive.html"