[ ci ] fix katla scripts following the TTC version subdirectory (#2787)

This commit is contained in:
G. Allais 2022-12-01 20:20:01 +00:00 committed by GitHub
parent 85bb822f3b
commit 255cce9d9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -11,7 +11,8 @@ while IFS= read -r rawfile; do
htmldir="html/${libname}/source/"
htmlfile="${htmldir}/${modulename}.html"
mkdir -p "$htmldir"
katla html "$rawfile" "${prefix}/${libname}/build/ttc/${filename}.ttm" >"$htmlfile"
ttc_version=$(ls "${prefix}/${libname}/build/ttc/")
katla html "$rawfile" "${prefix}/${libname}/build/ttc/${ttc_version}/${filename}.ttm" >"$htmlfile"
sed -i "s|<head>|<head><title>${modulename}</title>|" "$htmlfile"
done <tmp
rm tmp

View File

@ -10,7 +10,8 @@ while IFS= read -r rawfile; do
htmlfile="${htmldir}/${filename}.html"
mkdir -p "${htmldir}"
idris2 -c "${rawfile}"
katla markdown "$rawfile" "build/ttc/source/${filename}.ttm" >"$mdfile"
ttc_version=$(ls build/ttc)
katla markdown "$rawfile" "build/ttc/${ttc_version}/source/${filename}.ttm" >"$mdfile"
markdown "$mdfile" >"$htmlfile"
# rm "$mdfile"
done <tmp