mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-12-14 19:36:23 +08:00
website updates
Summary: A few minor updates to the website. - fix the color gradient on the homepage - fix unicode escape for the copyright symbol Reviewed By: gkioxari Differential Revision: D19744165 fbshipit-source-id: 31068bd0b408fe7b298e1f69d9998d64498e9d8c
This commit is contained in:
committed by
Facebook Github Bot
parent
15d3a4557e
commit
10ec66dadb
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/bin/bash
|
||||
# Copyright (c) Facebook, Inc. and its affiliates.
|
||||
|
||||
usage() {
|
||||
@@ -9,27 +9,26 @@ usage() {
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Current directory (needed for cleanup later)
|
||||
# Current directory (needed for cleanup later)
|
||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
# Make temporary directory
|
||||
# Make temporary directory
|
||||
WORK_DIR=$(mktemp -d)
|
||||
cd "${WORK_DIR}" || exit
|
||||
|
||||
# Clone both master & gh-pages branches
|
||||
# Clone both master & gh-pages branches
|
||||
git clone git@github.com:facebookresearch/pytorch3d.git pytorch3d-master
|
||||
git clone --branch gh-pages git@github.com:facebookresearch/pytorch3d.git pytorch3d-gh-pages
|
||||
|
||||
cd pytorch3d-master/website || exit
|
||||
|
||||
# Build site, tagged with "latest" version; baseUrl set to /versions/latest/
|
||||
# Build site, tagged with "latest" version; baseUrl set to /versions/latest/
|
||||
yarn
|
||||
yarn run build
|
||||
|
||||
cd .. || exit
|
||||
./scripts/build_website.sh -b
|
||||
|
||||
yarn run build
|
||||
|
||||
cd "${WORK_DIR}" || exit
|
||||
rm -rf pytorch3d-gh-pages/*
|
||||
touch pytorch3d-gh-pages/CNAME
|
||||
@@ -41,6 +40,6 @@ git add .
|
||||
git commit -m 'Update latest version of site'
|
||||
git push
|
||||
|
||||
# Clean up
|
||||
# Clean up
|
||||
cd "${SCRIPT_DIR}" || exit
|
||||
rm -rf "${WORK_DIR}"
|
||||
rm -rf "${WORK_DIR}"
|
||||
|
||||
Reference in New Issue
Block a user