mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-12-21 23:00:34 +08:00
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:
committed by
Facebook GitHub Bot
parent
d7d740abe9
commit
23ef666db1
@@ -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 "-----------------------------------"
|
||||
|
||||
Reference in New Issue
Block a user