Skip to content

Commit 01861b0

Browse files
authored
Merge pull request #210 from pytorch/update-top-nav-bar
Update top nav bar dropdown categories
2 parents 9aac006 + ef905fe commit 01861b0

File tree

5 files changed

+12
-5
lines changed

5 files changed

+12
-5
lines changed

Gruntfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ module.exports = function(grunt) {
6666
connect: {
6767
server: {
6868
options: {
69-
port: 8000,
69+
port: 3000,
7070
base: 'docs/_build/html',
7171
livereload: true,
7272
open: true

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"grunt-browserify": "^5.0.0",
1313
"grunt-contrib-clean": "^1.1.0",
1414
"grunt-contrib-concat": "^2.1.0",
15-
"grunt-contrib-connect": "^1.0.2",
15+
"grunt-contrib-connect": "^5.0.0",
1616
"grunt-contrib-copy": "~1.0.0",
1717
"grunt-contrib-uglify": "~3.3.0",
1818
"grunt-contrib-watch": "^1.1.0",

pytorch_sphinx_theme2/templates/404.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
1818
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400&display=swap" rel="stylesheet">
1919
<link rel="stylesheet" type="text/css" href="_static/css/theme.css" crossorigin="anonymous">
20-
<meta property="og:image" content="_static/img/pytorch_seo.png" />
20+
<meta property="og:image" content="https://pytorch.org/docs/stable/_static/img/pytorch_seo.png" />
2121
<link rel="stylesheet" href="_static/webfonts/all.min.css" crossorigin="anonymous">
2222
<meta http-equiv="Content-Security-Policy"
2323
content="default-src * 'unsafe-inline' 'unsafe-eval' data: blob:; style-src * 'unsafe-inline'; script-src * 'unsafe-inline' 'unsafe-eval' blob:;">

pytorch_sphinx_theme2/templates/pytorch_header.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@
8686
<a class="nav-dropdown-item" href="{{ theme_variables.external_urls['host-your-project'] }}">
8787
<span class="dropdown-title">Host Your Project</span>
8888
</a>
89+
<a class="nav-dropdown-item" href="{{ theme_variables.external_urls['ray'] }}">
90+
<span class="dropdown-title">RAY</span>
91+
</a>
8992
</div>
9093
</div>
9194
</li>
@@ -156,6 +159,9 @@
156159
<a class="nav-dropdown-item" href="{{ theme_variables.external_urls['contact_us'] }}">
157160
<span class="dropdown-title">Contact</span>
158161
</a>
162+
<a class="nav-dropdown-item" href="{{ theme_variables.external_urls['brand_guidelines'] }}">
163+
<span class="dropdown-title">Brand Guidelines</span>
164+
</a>
159165
</div>
160166
</div>
161167
</li>

pytorch_sphinx_theme2/theme_variables.jinja

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
'hub': 'https://pytorch.org/hub',
5454
'governing_board': 'https://pytorch.org/governing-board',
5555
'youtube': 'https://www.youtube.com/pytorch',
56-
'brand_guidelines': 'https://pytorch.org/assets/brand-guidelines/PyTorch-Brand-Guidelines.pdf',
56+
'brand_guidelines': 'https://pytorch.org/wp-content/uploads/2025/09/pytorch_brand_guide_091925a.pdf',
5757
'community': 'https://pytorch.org/#community-module',
5858
'credits': 'https://pytorch.org/credits',
5959
'forums': 'https://discuss.pytorch.org/',
@@ -69,6 +69,7 @@
6969
'xla': 'https://pytorch.org/xla',
7070
'data': 'https://pytorch.org/data',
7171
'torcharrow': 'https://pytorch.org/torcharrow',
72-
'torchrec': 'https://pytorch.org/torchrec'
72+
'torchrec': 'https://pytorch.org/torchrec',
73+
'ray': 'https://pytorch.org/projects/ray/'
7374
}
7475
-%}

0 commit comments

Comments
 (0)