diff --git a/90_builder/bookFold.sh b/90_builder/bookFold.sh index c277ba6..5528894 100755 --- a/90_builder/bookFold.sh +++ b/90_builder/bookFold.sh @@ -9,7 +9,7 @@ chown -R appuser:appgroup "$OUTPUT_DIR" function convert_adoc() { if [ -f "$1" ]; then echo "-> Konvertiere $1 zu HTML..." - asciidoctor -b html5 -a stylesheet=$TEMPLATES/retro-dark.css -a linkcss -a toc=left "$INPUT_DIR/$1" -o "$OUTPUT_DIR/$2" + asciidoctor -b html5 -a stylesheet=$TEMPLATES/retro-dark.css -a linkcss -a toc=left $1 -o $2 else echo " [INFO] $1 nicht gefunden, überspringe..." fi @@ -17,7 +17,7 @@ function convert_adoc() { echo '--- Baue README ---' -convert_adoc README.adoc README.html +convert_adoc "$INPUT_DIR/README.adoc" "$OUTPUT_DIR/README.html" echo '--- Baue Lore (Master-Dokument) ---' LORE_SRC="$INPUT_DIR/index.adoc" @@ -39,9 +39,11 @@ if [ -f "$INPUT_DIR/darkCenter.adoc" ]; then asciidoctor -b html5 -d book -a stylesheet=$TEMPLATES/retro-dark.css -a linkcss -a toc=left "$INPUT_DIR/darkCenter.adoc" -o "$OUTPUT_DIR/darkCenter.html" fi -rm -rf ./export +rm -rf export mkdir "$OUTPUT_DIR/css" cp "$TEMPLATES/retro-dark.css" "$OUTPUT_DIR/css/" cp "$TEMPLATES/index.html" "$OUTPUT_DIR/" sed -i 's/\/workspace\/templates/css/g' "$OUTPUT_DIR/darkCenter.html" -chown -R appuser:appgroup "$OUTPUT_DIR" \ No newline at end of file +sed -i 's/\/workspace\/templates/css/g' "$OUTPUT_DIR/lore.html" +sed -i 's/\/workspace\/templates/css/g' "$OUTPUT_DIR/README.html" +chown -R appuser:appgroup "$OUTPUT_DIR" diff --git a/90_builder/container/deb_Dockerfile b/90_builder/container/deb_Dockerfile index a0317aa..97ab655 100644 --- a/90_builder/container/deb_Dockerfile +++ b/90_builder/container/deb_Dockerfile @@ -13,4 +13,4 @@ ADD ./90_builder/bookFold.sh ./ RUN chown -R appuser:appgroup /workspace -CMD ["/usr/bin/bash" "./bookFold.sh"] \ No newline at end of file +CMD ["/workspace/bookFold.sh"]