mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-08-16 16:50:46 +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/"
|
htmldir="html/${libname}/source/"
|
||||||
htmlfile="${htmldir}/${modulename}.html"
|
htmlfile="${htmldir}/${modulename}.html"
|
||||||
mkdir -p "$htmldir"
|
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"
|
sed -i "s|<head>|<head><title>${modulename}</title>|" "$htmlfile"
|
||||||
done <tmp
|
done <tmp
|
||||||
rm tmp
|
rm tmp
|
||||||
|
@ -10,7 +10,8 @@ while IFS= read -r rawfile; do
|
|||||||
htmlfile="${htmldir}/${filename}.html"
|
htmlfile="${htmldir}/${filename}.html"
|
||||||
mkdir -p "${htmldir}"
|
mkdir -p "${htmldir}"
|
||||||
idris2 -c "${rawfile}"
|
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"
|
markdown "$mdfile" >"$htmlfile"
|
||||||
# rm "$mdfile"
|
# rm "$mdfile"
|
||||||
done <tmp
|
done <tmp
|
||||||
|
Loading…
Reference in New Issue
Block a user