diff --git a/_static/css/theme-exceptions.css b/_static/css/theme-exceptions.css
new file mode 100644
index 00000000000..51cff270bde
--- /dev/null
+++ b/_static/css/theme-exceptions.css
@@ -0,0 +1,50 @@
+body>img {
+ display:none;
+}
+
+.mainHeader .container {
+ padding: 0;
+ margin: 0 2rem;
+ max-width: 100%;
+}
+@media screen and (min-width: 1101px) {
+ .mainHeader .container {
+ margin: 0 10rem;
+ }
+}
+
+.mainHeader .container .content-container .mainNav .mainItem.search .search-border #close-search {
+ top: 0.6rem;
+}
+
+.mainHeader.active-search .container .mainNav .mainItem.search .search-border #input {
+ height: 3.3rem;
+}
+
+.mainHeader.active-search .container .mainNav .mainItem.search .search-border ::placeholder,
+.mainHeader.active-search .container .mainNav .mainItem.search .search-border :-ms-input-placeholder,
+.mainHeader.active-search .container .mainNav .mainItem.search .search-border ::-ms-input-placeholder {
+ color: #262626;
+ opacity: 1;
+}
+
+.Footer {
+ position: relative;
+ z-index: 1;
+}
+
+.Footer .mainNav,
+.Footer .legalNav {
+ padding-left: 0rem;
+ padding-right: 0;
+ max-width: 90%;
+}
+.Footer .footerNav .mainItem a {
+ color: #bbbbbb;
+}
+
+.Footer .mainNav .footerNav .mainItem > ul {
+ margin-top: 2rem;
+}
+
+/*Main Footer exceptions*/
\ No newline at end of file
diff --git a/_static/gallery.css b/_static/gallery.css
index 07caf0e7090..9e942dd2c68 100755
--- a/_static/gallery.css
+++ b/_static/gallery.css
@@ -21,13 +21,7 @@ Tested for Read the Docs theme 0.1.7 */
box-shadow: 0 0 15px rgba(142, 176, 202, 0.5);
}
.sphx-glr-thumbcontainer a.internal {
- bottom: 0;
display: block;
- left: 0;
- padding: 150px 10px 0;
- position: absolute;
- right: 0;
- top: 0;
}
/* Next one is to avoid Sphinx traditional theme to cover all the
thumbnail with its default link Background color */
diff --git a/_static/images/chevron-down-grey.svg b/_static/images/chevron-down-grey.svg
old mode 100755
new mode 100644
index 82d6514f250..64f9ca20432
--- a/_static/images/chevron-down-grey.svg
+++ b/_static/images/chevron-down-grey.svg
@@ -9,7 +9,7 @@
-
+
diff --git a/_static/images/pytorch-colab.svg b/_static/images/pytorch-colab.svg
new file mode 100644
index 00000000000..a672bcaa5e9
--- /dev/null
+++ b/_static/images/pytorch-colab.svg
@@ -0,0 +1,3 @@
+
diff --git a/_static/images/pytorch-download.svg b/_static/images/pytorch-download.svg
new file mode 100644
index 00000000000..387ece7dbe2
--- /dev/null
+++ b/_static/images/pytorch-download.svg
@@ -0,0 +1,3 @@
+
diff --git a/_static/images/pytorch-github.svg b/_static/images/pytorch-github.svg
new file mode 100644
index 00000000000..74d063187c6
--- /dev/null
+++ b/_static/images/pytorch-github.svg
@@ -0,0 +1,3 @@
+
diff --git a/_static/img/card1.png b/_static/img/card1.png
new file mode 100644
index 00000000000..990fd3ea54d
Binary files /dev/null and b/_static/img/card1.png differ
diff --git a/_static/img/card2.png b/_static/img/card2.png
new file mode 100644
index 00000000000..3e748ea2bfd
Binary files /dev/null and b/_static/img/card2.png differ
diff --git a/_static/img/card3.png b/_static/img/card3.png
new file mode 100644
index 00000000000..140f6b8bd14
Binary files /dev/null and b/_static/img/card3.png differ
diff --git a/_static/img/card4.png b/_static/img/card4.png
new file mode 100644
index 00000000000..7e4179352f4
Binary files /dev/null and b/_static/img/card4.png differ
diff --git a/_static/img/card5.png b/_static/img/card5.png
new file mode 100644
index 00000000000..6eaadf529b7
Binary files /dev/null and b/_static/img/card5.png differ
diff --git a/_templates/layout.html b/_templates/layout.html
index d9cb879bdbc..f03ce0a23ef 100644
--- a/_templates/layout.html
+++ b/_templates/layout.html
@@ -1,5 +1,18 @@
{% extends "!layout.html" %}
+
+{% block sidebartitle %}
+
+{% endblock %}
+
+{% block before_global_toc_sidebar %}
+
+ Overview
+
+{% endblock %}
+
{% block footer %}
{{ super() }}
-
{% endblock %}
diff --git a/conf.py b/conf.py
index e67d5f89c0e..4965d26a61c 100644
--- a/conf.py
+++ b/conf.py
@@ -59,6 +59,7 @@
'sphinxcontrib.katex',
'sphinx_copybutton',
'sphinx_gallery.gen_gallery',
+ 'sphinx_tabs.tabs',
]
@@ -124,6 +125,19 @@
# The full version, including alpha/beta/rc tags.
release = torch.__version__
+# POPULATE LINKS TO OTHER VERSIONS
+try:
+ html_context
+except NameError:
+ html_context = dict()
+
+html_context['menus_api_endpoint'] = 'https://pytorch-org-preprod.go-vip.net/wp-json/pytorch/v1/menus'
+html_context['pytorch_site_url'] = 'https://pytorch-org-preprod.go-vip.net'
+html_context['header_css_file'] = html_context['pytorch_site_url'] + '/wp-content/themes/pytorch/assets/css/index.css'
+
+sphinx_tabs_disable_tab_closing = True
+sphinx_tabs_disable_css_loading = True
+
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#
diff --git a/index.rst b/index.rst
index 2603219e85c..f577f41f027 100644
--- a/index.rst
+++ b/index.rst
@@ -1,5 +1,148 @@
Welcome to PyTorch Tutorials
============================
+
+.. container:: cards
+
+ .. container:: title
+
+ WHAT'S NEW
+
+ .. container:: description
+
+ Lorem ipsum dolor sit amet, consectetur
+
+ .. container:: cards-container three-columns
+
+ .. container:: card
+
+ .. container:: image
+
+ .. image:: _static/img/card1.png
+
+ .. container:: featured
+
+ FEATURED
+
+ .. container:: title
+
+ Tutorial
+
+ .. container:: subtitle
+
+ Learn the Basics
+
+ .. container:: description
+
+ A step-by-step guide to building a complete ML workflow with PyTorch.
+
+ .. container:: tags
+
+ tag 1, tag 2, tag 3
+
+ .. container:: card
+
+ .. container:: image
+
+ .. image:: _static/img/card2.png
+
+ .. container:: title
+
+ Tutorial
+
+ .. container:: subtitle
+
+ Sequence-to-Sequence Modeling with nn.Transformer and torchtext
+
+ .. container:: description
+
+ A step-by-step guide to building a complete ML workflow with PyTorch.
+
+ .. container:: tags
+
+ tag 1, tag 2, tag 3
+
+ .. container:: card
+
+ .. container:: image
+
+ .. image:: _static/img/card1.png
+
+ .. container:: featured
+
+ FEATURED
+
+ .. container:: title
+
+ Tutorial
+
+ .. container:: subtitle
+
+ Learn the Basics
+
+ .. container:: description
+
+ A step-by-step guide to building a complete ML workflow with PyTorch.
+
+ .. container:: tags
+
+ tag 1, tag 2, tag 3
+
+
+.. container:: cards
+
+ .. container:: cards-container two-columns
+
+ .. container:: title-container
+
+ .. container:: main-title
+
+ LEARN THE BASICS
+
+ .. container:: main-description
+
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla ac velit vel elit sollicitudin mattis nec.
+
+ .. container:: title-container
+
+ .. container:: main-title
+
+ PYTORCH RECIPES
+
+ .. container:: main-description
+
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla ac velit vel elit sollicitudin mattis nec.
+
+ .. container:: cards-container two-columns
+
+ .. container:: card
+
+ .. container:: image
+
+ .. image:: _static/img/card1.png
+
+ .. container:: subtitle
+
+ Lorem Ipusm esta con les tues esta me
+
+ .. container:: link
+
+ `Get Started with Pytorch `_
+
+ .. container:: card
+
+ .. container:: image
+
+ .. image:: _static/img/card2.png
+
+ .. container:: subtitle
+
+ Sequence-to-Sequence Modeling with nn.Transformer and torchtext
+
+ .. container:: link
+
+ `View The Full Recipes `_
+
+
.. raw:: html
diff --git a/requirements.txt b/requirements.txt
index 5ee2abe0e50..121d893beb3 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,6 +1,6 @@
# Refer to ./jenkins/build.sh for tutorial build instructions
-sphinx==1.8.2
+sphinx==3.5.4
sphinx-gallery==0.3.1
docutils==0.16
sphinx-copybutton
@@ -17,6 +17,7 @@ awscli==1.16.35
flask
spacy==2.3.2
ray[tune]
+sphinx-tabs==3.2.0
# PyTorch Theme
-e git+https://github.com/pytorch/pytorch_sphinx_theme.git#egg=pytorch_sphinx_theme