From 10ec66dadb30cafe4ba647283d4de4163c646429 Mon Sep 17 00:00:00 2001 From: Nikhila Ravi Date: Wed, 5 Feb 2020 09:49:29 -0800 Subject: [PATCH] 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 --- scripts/publish_website.sh | 17 ++++++++--------- website/siteConfig.js | 4 ++-- website/static/css/custom.css | 7 ++----- 3 files changed, 12 insertions(+), 16 deletions(-) diff --git a/scripts/publish_website.sh b/scripts/publish_website.sh index b618d7db..e3002958 100644 --- a/scripts/publish_website.sh +++ b/scripts/publish_website.sh @@ -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}" \ No newline at end of file +rm -rf "${WORK_DIR}" diff --git a/website/siteConfig.js b/website/siteConfig.js index ace8da0d..d7826dd0 100644 --- a/website/siteConfig.js +++ b/website/siteConfig.js @@ -21,7 +21,7 @@ const users = [ const baseUrl = '/' const siteConfig = { - title: 'PyTorch3d', // Title for your website. + title: 'PyTorch3D', // Title for your website. tagline: 'A library for deep learning with 3D data', url: 'https://pytorch3d.org', // Your website URL baseUrl: baseUrl, // Base URL for your project */ @@ -50,7 +50,7 @@ const siteConfig = { }, // This copyright info is used in /core/Footer.js and blog RSS/Atom feeds. - copyright: `Copyright "\u00A9" ${new Date().getFullYear()} Facebook Inc`, + copyright: `Copyright \u{00A9} ${new Date().getFullYear()} Facebook Inc`, highlight: { // Highlight.js theme to use for syntax highlighting in code blocks. diff --git a/website/static/css/custom.css b/website/static/css/custom.css index da5a5708..f3450ef5 100644 --- a/website/static/css/custom.css +++ b/website/static/css/custom.css @@ -59,12 +59,9 @@ html body { } .homeContainer { - background: rgb(2, 0, 36); background: linear-gradient( - 0deg, - rgba(2, 0, 36, 1), - rgba(255, 175, 0, 1) 0%, - rgba(129, 44, 229, 1) 100% + rgba(129, 44, 229, 1) 0%, + rgba(255, 175, 0, 1) 100% ); padding: 30px 0px; }