1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-07-16 11:04:17 +02:00

Add a dev theme to help with slide aspect ratio (#1842)

Added a dev theme to help with slide aspect ratio while updating content
or for reviewing PRs.

Fixes #1796.

---------

Co-authored-by: Dustin J. Mitchell <djmitche@google.com>
Co-authored-by: Martin Geisler <martin@geisler.net>
This commit is contained in:
Manichand Kondapaka
2024-03-05 16:03:42 +05:30
committed by GitHub
parent c509dbd9e4
commit 0761f936ca
6 changed files with 67 additions and 101 deletions

View File

@ -37,6 +37,10 @@ else
fi
mdbook build -d "$dest_dir"
# Disable the redbox button in built versions of the course
echo '// Disabled in published builds, see build.sh' > "${dest_dir}/html/theme/redbox.js"
mv "$dest_dir/pandoc/pdf/comprehensive-rust.pdf" "$dest_dir/html/"
(cd "$dest_dir/exerciser" && zip --recurse-paths ../html/comprehensive-rust-exercises.zip comprehensive-rust-exercises/)