Setup website with docusaurus (#11)

Summary:
Set up landing page, docs page, and html versions of the ipython notebook tutorials.
Pull Request resolved: https://github.com/fairinternal/pytorch3d/pull/11

Reviewed By: gkioxari

Differential Revision: D19730380

Pulled By: nikhilaravi

fbshipit-source-id: 5df8d3f2ac2f8dce4d51f5d14fc336508c2fd0ea
This commit is contained in:
Nikhila Ravi
2020-02-04 17:25:51 -08:00
committed by Facebook Github Bot
parent e290f87ca9
commit 15d3a4557e
48 changed files with 1900 additions and 72 deletions

View File

@@ -0,0 +1,308 @@
/**
* Copyright (c) 2017-present, Facebook, Inc.
*
**/
html body {
font-family: 'Montserrat', sans-serif;
overflow-x: hidden;
}
.fixedHeaderContainer {
background-color: #222222;
}
.fixedHeaderContainer header .headerTitleWithLogo {
display: block;
color: #ffffff;
}
.fixedHeaderContainer header .logo {
height: 50px;
}
.fixedHeaderContainer header a:nth-child(2) {
position: absolute;
right: 0px;
}
.fixedHeaderContainer header a:nth-child(2) h3 {
font-size: 14px;
}
.fixedHeaderContainer header a:nth-child(2) h3::before {
content: 'v: ';
}
.navigationSlider {
margin-right: 80px;
}
.navigationSlider .slidingNav ul {
background: #222222;
}
.navigationSlider .slidingNav ul li a {
color: #c7d4fd;
}
.navigationSlider .slidingNav ul li a:hover,
.navigationSlider .slidingNav ul li a:focus {
color: #ffffff;
background-color: inherit;
}
.navigationSlider .slidingNav ul li.siteNavItemActive > a,
.navigationSlider .slidingNav ul li.siteNavGroupActive > a {
background-color: inherit;
}
.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%
);
padding: 30px 0px;
}
.splashLogo {
display: block;
margin: 0 auto;
height: 200px;
width: 800px;
}
.projectTitle {
color: #ffffff;
font-variant: small-caps;
font-weight: 300;
}
.promoSection .button {
border: 2px solid #fff;
color: #ffffff;
font-size: 19px;
margin: 10px;
}
.promoSection .button:hover {
background: inherit;
border: 2px solid #ffffff;
color: #ffffff;
}
.landingPage {
padding: 0px;
}
.productShowcaseSection {
padding: 45px 20px 30px 20px;
}
div.productShowcaseSection {
color: #6c6c6c;
padding-top: 40px;
}
#quickstart {
padding-top: 80px;
}
.productShowcaseSection > h2 {
font-variant: small-caps;
font-weight: 360;
margin: 0px;
padding: 0px;
color: #5b1861;
}
.productShowcaseSection p {
font-weight: 360;
}
# Subtitles for key features
.productShowcaseSection .blockContent > div span p {
font-size: 18px;
}
.productShowcaseSection div.container {
padding: 40px 0px;
}
.productShowcaseSection img {
height: 100px;
}
.gridBlock .fourByGridBlock img {
max-width: 200%;
}
.productShowcaseSection li {
padding: 10px 0;
}
.productShowcaseSection pre {
margin: 10px 0;
}
.productShowcaseSection code {
background: #fff;
}
.container .wrapper .alignCenter h2 {
color: #222222;
}
div#quickstart {
background: #efefef;
}
div#quickstart ol {
margin-bottom: 0px;
}
.nav-footer {
background-color: #222222;
}
.nav-footer .sitemap a {
color: #c7d4fd;
}
.nav-footer .sitemap a:hover {
color: #ffffff;
}
.social {
text-align: center
}
a,
p a {
color: #4872f9;
}
a:hover,
p a:hover {
color: #4872f9;
}
.imageAlignTop .blockImage {
margin-bottom: 20px;
max-width: 200px;
}
/* Style tutorials */
.tutorialBody {
margin-top: -20px;
color: #6c6c6c;
}
.tutorialBody h1 {
margin: 0px;
}
.tutorialBody h1,
.tutorialBody h2,
.tutorialBody h3 {
color: #222222;
}
.tutorialBody pre {
font-family: 'IBM Plex Mono', monospace;
font-size: 14px;
margin: 0px;
}
.tutorialBody .input_prompt,
.tutorialBody .output_prompt {
color: darkred;
font-size: 12px;
}
.tutorialBody .highlight {
background: #f3f4f7;
padding: 10px 20px;
border: lightgray 1px solid;
border-radius: 3px;
}
.tutorialBody .cell {
margin: 20px;
}
.tutorialBody .output_stderr {
background-color: #fdede9;
}
.tutorialBody .anchor-link {
color: lightgray;
}
.tutorialBody iframe {
width: 100%;
height: 100vh;
}
.tutorialButtonWrapper,
.tutorialRuntime {
margin: 20px;
}
.tutorialButtonWrapper {
float: left;
margin: 5px;
}
.colabButtonWrapper {
float: left;
margin: 5px;
}
.colabButtonWrapper img {
padding-right: 0.25em;
}
.tutorialButtonsWrapper {
display: flex;
align-items: center;
}
/* .tutorialButton {
color: #4872f9;
border: 1px solid #4872f9;
}
*/
.tutorialButton svg {
height: 15px;
margin-right: 5px;
}
.tutorialButton:hover {
color: #4872f9;
background-color: inherit;
}
.wrapper {
max-width: 1400px;
}
@media only screen and (min-device-width: 360px) and (max-device-width: 736px) {
}
@media only screen and (min-width: 1024px) {
}
@media only screen and (max-width: 1023px) {
}
@media only screen and (min-width: 1400px) {
}
@media only screen and (min-width: 1500px) {
}

View File

@@ -0,0 +1,209 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
**/
.highlight .hll {
background-color: #ffffcc;
}
.highlight .c {
color: #60a0b0;
font-style: italic;
} /* Comment */
.highlight .err {
border: 1px solid #ff0000;
} /* Error */
.highlight .k {
color: #007020;
font-weight: bold;
} /* Keyword */
.highlight .o {
color: #666666;
} /* Operator */
.highlight .cm {
color: #60a0b0;
font-style: italic;
} /* Comment.Multiline */
.highlight .cp {
color: #007020;
} /* Comment.Preproc */
.highlight .c1 {
color: #60a0b0;
font-style: italic;
} /* Comment.Single */
.highlight .cs {
color: #60a0b0;
background-color: #fff0f0;
} /* Comment.Special */
.highlight .gd {
color: #a00000;
} /* Generic.Deleted */
.highlight .ge {
font-style: italic;
} /* Generic.Emph */
.highlight .gr {
color: #ff0000;
} /* Generic.Error */
.highlight .gh {
color: #000080;
font-weight: bold;
} /* Generic.Heading */
.highlight .gi {
color: #00a000;
} /* Generic.Inserted */
.highlight .go {
color: #808080;
} /* Generic.Output */
.highlight .gp {
color: #c65d09;
font-weight: bold;
} /* Generic.Prompt */
.highlight .gs {
font-weight: bold;
} /* Generic.Strong */
.highlight .gu {
color: #800080;
font-weight: bold;
} /* Generic.Subheading */
.highlight .gt {
color: #0040d0;
} /* Generic.Traceback */
.highlight .kc {
color: #007020;
font-weight: bold;
} /* Keyword.Constant */
.highlight .kd {
color: #007020;
font-weight: bold;
} /* Keyword.Declaration */
.highlight .kn {
color: #007020;
font-weight: bold;
} /* Keyword.Namespace */
.highlight .kp {
color: #007020;
} /* Keyword.Pseudo */
.highlight .kr {
color: #007020;
font-weight: bold;
} /* Keyword.Reserved */
.highlight .kt {
color: #902000;
} /* Keyword.Type */
.highlight .m {
color: #40a070;
} /* Literal.Number */
.highlight .s {
color: #4070a0;
} /* Literal.String */
.highlight .na {
color: #4070a0;
} /* Name.Attribute */
.highlight .nb {
color: #007020;
} /* Name.Builtin */
.highlight .nc {
color: #0e84b5;
font-weight: bold;
} /* Name.Class */
.highlight .no {
color: #60add5;
} /* Name.Constant */
.highlight .nd {
color: #555555;
font-weight: bold;
} /* Name.Decorator */
.highlight .ni {
color: #d55537;
font-weight: bold;
} /* Name.Entity */
.highlight .ne {
color: #007020;
} /* Name.Exception */
.highlight .nf {
color: #06287e;
} /* Name.Function */
.highlight .nl {
color: #002070;
font-weight: bold;
} /* Name.Label */
.highlight .nn {
color: #0e84b5;
font-weight: bold;
} /* Name.Namespace */
.highlight .nt {
color: #062873;
font-weight: bold;
} /* Name.Tag */
.highlight .nv {
color: #bb60d5;
} /* Name.Variable */
.highlight .ow {
color: #007020;
font-weight: bold;
} /* Operator.Word */
.highlight .w {
color: #bbbbbb;
} /* Text.Whitespace */
.highlight .mf {
color: #40a070;
} /* Literal.Number.Float */
.highlight .mh {
color: #40a070;
} /* Literal.Number.Hex */
.highlight .mi {
color: #40a070;
} /* Literal.Number.Integer */
.highlight .mo {
color: #40a070;
} /* Literal.Number.Oct */
.highlight .sb {
color: #4070a0;
} /* Literal.String.Backtick */
.highlight .sc {
color: #4070a0;
} /* Literal.String.Char */
.highlight .sd {
color: #4070a0;
font-style: italic;
} /* Literal.String.Doc */
.highlight .s2 {
color: #4070a0;
} /* Literal.String.Double */
.highlight .se {
color: #4070a0;
font-weight: bold;
} /* Literal.String.Escape */
.highlight .sh {
color: #4070a0;
} /* Literal.String.Heredoc */
.highlight .si {
color: #70a0d0;
font-style: italic;
} /* Literal.String.Interpol */
.highlight .sx {
color: #c65d09;
} /* Literal.String.Other */
.highlight .sr {
color: #235388;
} /* Literal.String.Regex */
.highlight .s1 {
color: #4070a0;
} /* Literal.String.Single */
.highlight .ss {
color: #517918;
} /* Literal.String.Symbol */
.highlight .bp {
color: #007020;
} /* Name.Builtin.Pseudo */
.highlight .vc {
color: #bb60d5;
} /* Name.Variable.Class */
.highlight .vg {
color: #bb60d5;
} /* Name.Variable.Global */
.highlight .vi {
color: #bb60d5;
} /* Name.Variable.Instance */
.highlight .il {
color: #40a070;
} /* Literal.Number.Integer.Long */