build website in docker container

Summary: Do the website building in a docker container to avoid worrying about dependencies.

Reviewed By: nikhilaravi

Differential Revision: D30223892

fbshipit-source-id: 77b7b4630188167316891381f6ca9e9fbe7f0a05
This commit is contained in:
Jeremy Reizenstein
2021-10-06 18:08:25 -07:00
committed by Facebook GitHub Bot
parent d7d740abe9
commit 23ef666db1
3 changed files with 34 additions and 42 deletions

View File

@@ -7,6 +7,8 @@
# run this script from the project root using `./scripts/build_docs.sh`
set -e
usage() {
echo "Usage: $0 [-b]"
echo ""
@@ -37,7 +39,7 @@ done
echo "-----------------------------------"
echo "Building PyTorch3D Docusaurus site"
echo "-----------------------------------"
cd website || exit
cd website
yarn
cd ..
@@ -49,7 +51,7 @@ mkdir -p "website/_tutorials"
mkdir -p "website/static/files"
python scripts/parse_tutorials.py --repo_dir "${cwd}"
cd website || exit
cd website
if [[ $BUILD_STATIC == true ]]; then
echo "-----------------------------------"