Skip to content

Commit

Permalink
make files available in chunked html output dir
Browse files Browse the repository at this point in the history
  • Loading branch information
svbaelen committed Oct 18, 2024
1 parent 15f519d commit a1fd8a8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 1 addition & 3 deletions src/scripts/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ function sidebarBtns() {
const btnHome = document.querySelector("#btn-home");
btnHome.style.display = "flex";
btnHome.addEventListener("click", (ev) => {
window.open(
`${baseUrl}`
);
window.location.href = baseUrl;
});

}
Expand Down
8 changes: 8 additions & 0 deletions utils/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,16 @@ else
done

if [ $HTTP_SERVE = 1 ];then

servedir="$OUTPUT_DIR$SUBPATH" # subpath by default = ""
cd /app/$servedir

# move everything from build dir to chunked html dir
if [ $CHUNKED_HTML = 1 ];then
mv -f ../*.tex .
mv -f ../*.pdf .
fi

printf "[INFO - main] "
printf "=> ----------------------------------------------\n"
echo "[INFO - main] => serving at http://localhost:$HTTP_PORT (in $servedir)"
Expand Down

0 comments on commit a1fd8a8

Please sign in to comment.