mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-11-24 06:52:19 +03:00
[ ci ] fix katla scripts following the TTC version subdirectory (#2787)
This commit is contained in:
parent
85bb822f3b
commit
255cce9d9c
3
.github/scripts/katla.sh
vendored
3
.github/scripts/katla.sh
vendored
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user