|
94 | 94 | </li> |
95 | 95 |
|
96 | 96 | <li> |
97 | | - <a href="{{ theme_variables.external_urls['features'] }}">Features</a> |
| 97 | + <div class="ecosystem-dropdown"> |
| 98 | + <a id="dropdownMenuButton" data-toggle="ecosystem-dropdown"> |
| 99 | + Ecosystem |
| 100 | + </a> |
| 101 | + <div class="ecosystem-dropdown-menu"> |
| 102 | + <a class="nav-dropdown-item" href="{{ theme_variables.external_urls['hub'] }}""> |
| 103 | + <span class=dropdown-title>Models (Beta)</span> |
| 104 | + <p>Discover, publish, and reuse pre-trained models</p> |
| 105 | + </a> |
| 106 | + <a class="nav-dropdown-item" href="{{ theme_variables.external_urls['ecosystem'] }}"> |
| 107 | + <span class=dropdown-title>Tools & Libraries</span> |
| 108 | + <p>Explore the ecosystem of tools and libraries</p> |
| 109 | + </a> |
| 110 | + </div> |
| 111 | + </div> |
98 | 112 | </li> |
99 | 113 |
|
100 | 114 | <li> |
101 | | - <a href="{{ theme_variables.external_urls['ecosystem'] }}">Ecosystem</a> |
| 115 | + <a href="{{ theme_variables.external_urls['mobile'] }}">Mobile</a> |
102 | 116 | </li> |
103 | 117 |
|
104 | 118 | <li> |
|
114 | 128 | </li> |
115 | 129 |
|
116 | 130 | <li> |
117 | | - <a href="{{ theme_variables.external_urls['resources'] }}">Resources</a> |
| 131 | + <div class="resources-dropdown"> |
| 132 | + <a id="resourcesDropdownButton" data-toggle="resources-dropdown"> |
| 133 | + Resources |
| 134 | + </a> |
| 135 | + <div class="resources-dropdown-menu"> |
| 136 | + <a class="nav-dropdown-item" href="{{ theme_variables.external_urls['resources'] }}""> |
| 137 | + <span class=dropdown-title>Developer Resources</span> |
| 138 | + <p>Find resources and get questions answered</p> |
| 139 | + </a> |
| 140 | + <a class="nav-dropdown-item" href="{{ theme_variables.external_urls['features'] }}"> |
| 141 | + <span class=dropdown-title>About</span> |
| 142 | + <p>Learn about PyTorch’s features and capabilities</p> |
| 143 | + </a> |
| 144 | + </div> |
| 145 | + </div> |
118 | 146 | </li> |
119 | 147 |
|
120 | 148 | <li> |
@@ -418,15 +446,23 @@ <h2>Resources</h2> |
418 | 446 | <div class="main-menu"> |
419 | 447 | <ul> |
420 | 448 | <li> |
421 | | - <a href="#">Get Started</a> |
| 449 | + <a href="{{ theme_variables.external_urls['get_started'] }}">Get Started</a> |
| 450 | + </li> |
| 451 | + |
| 452 | + <li> |
| 453 | + <a href="{{ theme_variables.external_urls['features'] }}">Features</a> |
| 454 | + </li> |
| 455 | + |
| 456 | + <li> |
| 457 | + <a href="{{ theme_variables.external_urls['ecosystem'] }}">Ecosystem</a> |
422 | 458 | </li> |
423 | 459 |
|
424 | 460 | <li> |
425 | | - <a href="#">Features</a> |
| 461 | + <a href="{{ theme_variables.external_urls['mobile'] }}">Mobile</a> |
426 | 462 | </li> |
427 | 463 |
|
428 | 464 | <li> |
429 | | - <a href="#">Ecosystem</a> |
| 465 | + <a href="{{ theme_variables.external_urls['hub'] }}">PyTorch Hub</a> |
430 | 466 | </li> |
431 | 467 |
|
432 | 468 | <li> |
@@ -465,6 +501,7 @@ <h2>Resources</h2> |
465 | 501 | sideMenus.bind(); |
466 | 502 | scrollToAnchor.bind(); |
467 | 503 | highlightNavigation.bind(); |
| 504 | + mainMenuDropdown.bind(); |
468 | 505 |
|
469 | 506 | // Add class to links that have code blocks, since we cannot create links in code blocks |
470 | 507 | $("article.pytorch-article a span.pre").each(function(e) { |
|
0 commit comments