Skip to content

Commit 10ec66d

Browse files
nikhilaravifacebook-github-bot
authored andcommitted
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
1 parent 15d3a45 commit 10ec66d

File tree

3 files changed

+12
-16
lines changed

3 files changed

+12
-16
lines changed

scripts/publish_website.sh

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/bin/bash
22
# Copyright (c) Facebook, Inc. and its affiliates.
33

44
usage() {
@@ -9,27 +9,26 @@ usage() {
99
exit 1
1010
}
1111

12-
# Current directory (needed for cleanup later)
12+
# Current directory (needed for cleanup later)
1313
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
1414

15-
# Make temporary directory
15+
# Make temporary directory
1616
WORK_DIR=$(mktemp -d)
1717
cd "${WORK_DIR}" || exit
1818

19-
# Clone both master & gh-pages branches
19+
# Clone both master & gh-pages branches
2020
git clone git@github.com:facebookresearch/pytorch3d.git pytorch3d-master
2121
git clone --branch gh-pages git@github.com:facebookresearch/pytorch3d.git pytorch3d-gh-pages
2222

2323
cd pytorch3d-master/website || exit
2424

25-
# Build site, tagged with "latest" version; baseUrl set to /versions/latest/
25+
# Build site, tagged with "latest" version; baseUrl set to /versions/latest/
2626
yarn
27+
yarn run build
2728

2829
cd .. || exit
2930
./scripts/build_website.sh -b
3031

31-
yarn run build
32-
3332
cd "${WORK_DIR}" || exit
3433
rm -rf pytorch3d-gh-pages/*
3534
touch pytorch3d-gh-pages/CNAME
@@ -41,6 +40,6 @@ git add .
4140
git commit -m 'Update latest version of site'
4241
git push
4342

44-
# Clean up
43+
# Clean up
4544
cd "${SCRIPT_DIR}" || exit
46-
rm -rf "${WORK_DIR}"
45+
rm -rf "${WORK_DIR}"

website/siteConfig.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const users = [
2121
const baseUrl = '/'
2222

2323
const siteConfig = {
24-
title: 'PyTorch3d', // Title for your website.
24+
title: 'PyTorch3D', // Title for your website.
2525
tagline: 'A library for deep learning with 3D data',
2626
url: 'https://pytorch3d.org', // Your website URL
2727
baseUrl: baseUrl, // Base URL for your project */
@@ -50,7 +50,7 @@ const siteConfig = {
5050
},
5151

5252
// This copyright info is used in /core/Footer.js and blog RSS/Atom feeds.
53-
copyright: `Copyright "\u00A9" ${new Date().getFullYear()} Facebook Inc`,
53+
copyright: `Copyright \u{00A9} ${new Date().getFullYear()} Facebook Inc`,
5454

5555
highlight: {
5656
// Highlight.js theme to use for syntax highlighting in code blocks.

website/static/css/custom.css

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,9 @@ html body {
5959
}
6060

6161
.homeContainer {
62-
background: rgb(2, 0, 36);
6362
background: linear-gradient(
64-
0deg,
65-
rgba(2, 0, 36, 1),
66-
rgba(255, 175, 0, 1) 0%,
67-
rgba(129, 44, 229, 1) 100%
63+
rgba(129, 44, 229, 1) 0%,
64+
rgba(255, 175, 0, 1) 100%
6865
);
6966
padding: 30px 0px;
7067
}

0 commit comments

Comments
 (0)