Skip to content

Commit bbfaf84

Browse files
authored
Merge pull request pytorch#1216 from Jam3/pytorch-2.0-subpage
fix: updated eveything with latest changes
2 parents dd2c70f + 21e58d5 commit bbfaf84

21 files changed

+904
-26
lines changed

_get_started/get-started-locally.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Start Locally
44
permalink: /get-started/locally/
55
background-class: get-started-background
66
body-class: get-started
7-
order: 1
7+
order: 0
88
published: true
99
get-started-locally: true
1010
redirect_from: "/get-started/"

_get_started/get-started-via-cloud-partners.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Start via Cloud Partners
44
permalink: /get-started/cloud-partners/
55
background-class: get-started-background
66
body-class: get-started
7-
order: 2
7+
order: 3
88
published: true
99
get-started-via-cloud: true
1010
---

_get_started/get-started-via-colab.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Try Now via CoLab
44
permalink: /get-started/colab/
55
background-class: get-started-background
66
body-class: get-started
7-
order: 3
7+
order: 10
88
---
99

1010
## Try Now via CoLab

_get_started/pytorch.md

+796
Large diffs are not rendered by default.

_includes/pytorch-side-nav.html

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
<div class="sticky-top get-started-locally-sidebar">
2+
<p id="get-started-shortcuts-menu">Shortcuts</p>
3+
<ul id="get-started-locally-sidebar-list">
4+
<li class="" style="">
5+
<a href="#overview">Overview</a>
6+
</li>
7+
<li class="" style="">
8+
<a href="#pytorch-2x-faster-more-pythonic-and-as-dynamic-as-ever"
9+
>PyTorch 2.x: faster, more pythonic and as dynamic as ever</a
10+
>
11+
</li>
12+
<li class="" style="">
13+
<a href="#testimonials">Testimonials</a>
14+
</li>
15+
16+
<li class="" style="">
17+
<a href="#motivation">Motivation</a>
18+
</li>
19+
<li class="" style="">
20+
<a href="#technology-overview">Technology Overview</a>
21+
</li>
22+
<li class="" style="">
23+
<a href="#user-experience">User Experience</a>
24+
</li>
25+
26+
<li class="" style="">
27+
<a href="#distributed">Distributed</a>
28+
</li>
29+
30+
<li class="" style="">
31+
<a href="#developervendor-experience">Developer/Vendor Experience</a>
32+
</li>
33+
34+
<li class="" style="">
35+
<a href="#final-thoughts">Final Thoughts</a>
36+
</li>
37+
<li class="" style="">
38+
<a href="#accelerating-hugging-face-and-timm-models-with-pytorch-20">
39+
Accelerating Hugging Face And Timm Models With Pytorch 2.0
40+
</a>
41+
</li>
42+
<li class="" style="">
43+
<a href="#requirements">Requirements</a>
44+
</li>
45+
46+
<li class="" style="">
47+
<a href="#getting-started">Getting Started</a>
48+
</li>
49+
<li class="" style="">
50+
<a href="#faqs">FAQs</a>
51+
</li>
52+
<li class="" style="">
53+
<a href="#ask-the-engineers-20-live-qa-series"
54+
>Ask The Engineers 2.0 Live Qa Series</a
55+
>
56+
</li>
57+
<li class="" style="">
58+
<a href="#watch-the-talks-from-pytorch-conference"
59+
>Watch The Talks From Pytorch Conference</a
60+
>
61+
</li>
62+
</ul>
63+
</div>
64+

_includes/pytorch.html

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<div class="row">
2+
<div class="col-md-3">{% include pytorch-side-nav.html %}</div>
3+
<div class="col-md-8 offset-md-1">
4+
<div class="article-wrapper" data-id="{{ item.slug }}">
5+
<article class="pytorch-article">{{ content }}</article>
6+
</div>
7+
</div>
8+
</div>
9+

_layouts/get_started.html

+22-23
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,21 @@
22
<html lang="en">
33
{% include head.html %}
44
<body class="{{ page.body-class }}">
5-
{% include tag_manager_script.html %}
6-
{% include header.html %}
5+
{% include tag_manager_script.html %} {% include header.html %}
76

87
<div class="main-background {{ page.background-class }}"></div>
98

10-
{% assign items = site.get_started | where: "published",true | sort: "order" %}
9+
{% assign items = site.get_started | where: "published",true | sort: "order"
10+
%}
1111

1212
<div class="jumbotron jumbotron-fluid on-dark-background">
1313
<div class="container">
1414
<h1>Get Started</h1>
1515

16-
<p class="lead">Select preferences and run the command to install PyTorch locally, or get started quickly with one of the supported cloud platforms.</p>
16+
<p class="lead">
17+
Select preferences and run the command to install PyTorch locally, or
18+
get started quickly with one of the supported cloud platforms.
19+
</p>
1720
</div>
1821
</div>
1922

@@ -24,31 +27,29 @@ <h1>Get Started</h1>
2427
<nav class="navbar navbar-expand-lg navbar-light main-content-menu">
2528
<ul class="navbar-nav">
2629
{% for item in items %}
27-
<li class="nav-item nav-select">
28-
<a class="nav-link get-started-nav-link" data-id="{{ item.slug }}" href="{{ site.baseurl }}{{ item.permalink }}">{{ item.title }}</a>
29-
</li>
30+
<li class="nav-item nav-select">
31+
<a
32+
class="nav-link get-started-nav-link"
33+
data-id="{{ item.slug }}"
34+
href="{{ site.baseurl }}{{ item.permalink }}"
35+
>{{ item.title }}</a
36+
>
37+
</li>
3038
{% endfor %}
3139
</ul>
3240
</nav>
3341
</div>
3442
</div>
3543

3644
<div class="container">
37-
{% if page.get-started-locally == true %}
45+
{% if page.get-started-locally == true %} {% include
46+
get_started_locally.html %} {% elsif page.order == 2 %} {% include
47+
pytorch.html %} {% elsif page.get-started-via-cloud == true %} {%
48+
include get_started_via_cloud.html %} {% else %}
3849

39-
{% include get_started_locally.html %}
40-
41-
{% elsif page.get-started-via-cloud == true %}
42-
43-
{% include get_started_via_cloud.html %}
44-
45-
{% else %}
46-
47-
<div class="article-wrapper" data-id="{{ item.slug }}">
48-
<article class="pytorch-article">
49-
{{ content }}
50-
</article>
51-
</div>
50+
<div class="article-wrapper" data-id="{{ item.slug }}">
51+
<article class="pytorch-article">{{ content }}</article>
52+
</div>
5253

5354
{% endif %}
5455
</div>
@@ -58,5 +59,3 @@ <h1>Get Started</h1>
5859
{% include footer.html %}
5960
</body>
6061
</html>
61-
62-
<script src="{{ site.baseurl }}/assets/get-started-sidebar.js"></script>

_news/news-item-4.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
order: 4
3+
link: /get-started/pytorch-2.0
4+
summary: "Introducing PyTorch 2.0"
5+
---

_news/news-item-5.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
order: 5
3+
link: https://fb.me/e/29RoWnqBX
4+
summary: "Watch the PyTorch Conference online"
5+
---

assets/images/Caveats.jpg

47.6 KB
Loading

assets/images/pytorch-2.0-img10.png

57.1 KB
Loading

assets/images/pytorch-2.0-img11.png

65.9 KB
Loading

assets/images/pytorch-2.0-img12.png

313 KB
Loading

assets/images/pytorch-2.0-img2.png

70.3 KB
Loading

assets/images/pytorch-2.0-img3.gif

5.8 KB
Loading

assets/images/pytorch-2.0-img4.jpg

75.2 KB
Loading

assets/images/pytorch-2.0-img5.png

295 KB
Loading

assets/images/pytorch-2.0-img6.png

228 KB
Loading

assets/images/pytorch-2.0-img7.png

98.7 KB
Loading

assets/images/pytorch-2.0-img8.png

35.1 KB
Loading

assets/images/pytorch-2.0-img9.png

72.5 KB
Loading

0 commit comments

Comments
 (0)