Skip to content

Commit 349d3cc

Browse files
committed
Automated tutorials push
1 parent 856bd0b commit 349d3cc

File tree

252 files changed

+12785
-12633
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

252 files changed

+12785
-12633
lines changed

404.html

Lines changed: 40 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -65,51 +65,33 @@
6565
<link rel="canonical" href="https://docs.pytorch.org/tutorials/404.html" />
6666
<link rel="index" title="Index" href="genindex.html" />
6767
<link rel="search" title="Search" href="search.html" />
68+
<!DOCTYPE html>
69+
<html>
70+
<head>
71+
<meta charset="UTF-8">
72+
<meta name="viewport" content="width=device-width, initial-scale=1" />
73+
<title> 404 - Page Not Found </title>
74+
</head>
75+
76+
<base href="">
77+
<script type="text/javascript" src="_static/js/theme.js"></script>
78+
<link rel="stylesheet" type="text/css" href="_static/styles/bootstrap.css" crossorigin="anonymous">
79+
<link rel="stylesheet" type="text/css" href="_static/styles/pydata-sphinx-theme.css" crossorigin="anonymous">
80+
<link rel="preconnect" href="https://fonts.googleapis.com">
81+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
82+
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400&display=swap" rel="stylesheet">
83+
<link rel="stylesheet" type="text/css" href="_static/css/theme.css" crossorigin="anonymous">
84+
<meta property="og:image" content="_static/img/pytorch_seo.png" />
85+
<link rel="stylesheet" href="_static/webfonts/all.min.css" crossorigin="anonymous">
86+
<meta http-equiv="Content-Security-Policy"
87+
content="default-src * 'unsafe-inline' 'unsafe-eval' data: blob:; style-src * 'unsafe-inline'; script-src * 'unsafe-inline' 'unsafe-eval' blob:;">
88+
<meta name="pytorch_project" content="">
89+
90+
91+
<script async src="https://cse.google.com/cse.js?cx=e65585f8c3ea1440e"></script>
6892

6993
<meta name="viewport" content="width=device-width, initial-scale=1"/>
7094
<meta name="docsearch:language" content="en"/>
71-
<script>
72-
// Fix static asset paths for 404 page on static hosting
73-
(function () {
74-
// Skip on localhost/development
75-
if (window.location.hostname === 'localhost' ||
76-
window.location.hostname === '127.0.0.1') {
77-
return;
78-
}
79-
80-
// Get the base path for _static assets
81-
let basePath = '/';
82-
83-
// On docs.pytorch.org, use first subdirectory (e.g. /tutorials, /docs) as base
84-
if (window.location.hostname === 'docs.pytorch.org') {
85-
const pathParts = window.location.pathname.split('/').filter(part => part);
86-
if (pathParts.length > 0) {
87-
basePath = '/' + pathParts[0] + '/';
88-
}
89-
}
90-
91-
// Fix CSS links
92-
document.querySelectorAll('link[href*="_static"]').forEach(link => {
93-
if (!link.href.startsWith('http') && !link.href.startsWith('/')) {
94-
link.href = basePath + link.getAttribute('href');
95-
}
96-
});
97-
98-
// Fix script sources
99-
document.querySelectorAll('script[src*="_static"]').forEach(script => {
100-
if (!script.src.startsWith('http') && !script.src.startsWith('/')) {
101-
script.src = basePath + script.getAttribute('src');
102-
}
103-
});
104-
105-
// Fix image sources
106-
document.querySelectorAll('img[src*="_static"]').forEach(img => {
107-
if (!img.src.startsWith('http') && !img.src.startsWith('/')) {
108-
img.src = basePath + img.getAttribute('src');
109-
}
110-
});
111-
})();
112-
</script>
11395
<!-- Conditional CSS for header and footer height adjustment -->
11496

11597

@@ -888,23 +870,23 @@
888870
<div id="searchbox"></div>
889871
<article class="bd-article">
890872

891-
<article class="bd-article" id="pytorch-article">
892-
<div class="container text-center error-404-container">
893-
<h1 class="error-404-title">404</h1>
894-
<h2 class="error-404-subtitle">Page Not Found</h2>
895-
<p class="error-404-text">The page you are looking for might have been removed, had its name changed, or is
896-
temporarily unavailable.</p>
897-
<div class="error-404-buttons">
898-
<a href="index.html" class="btn btn-primary error-404-button">
899-
Back Home <i class="fa fa-arrow-right" aria-hidden="true"></i>
900-
</a>
901-
<a href="https://github.com/pytorch/pytorch/issues/new?template=documentation.yml&labels=module:%20docs,broken-link"
902-
class="btn btn-secondary error-404-button error-404-issue-button">
903-
Found a broken link? File an issue <i class="fa-brands fa-github" aria-hidden="true"></i>
904-
</a>
905-
</div>
873+
874+
<div id="searchbox"></div>
875+
<div class="container text-center error-404-container">
876+
<h1 class="error-404-title">404</h1>
877+
<h2 class="error-404-subtitle">Page Not Found</h2>
878+
<p class="error-404-text">The page you are looking for might have been removed, had its name changed, or is
879+
temporarily unavailable.</p>
880+
<div class="error-404-buttons">
881+
<a href="http://localhost:8000/" class="btn btn-primary error-404-button">
882+
Back Home <i class="fa fa-arrow-right" aria-hidden="true"></i>
883+
</a>
884+
<a href="https://github.com/pytorch/pytorch/issues/new?template=documentation.yml&labels=module:%20docs,broken-link"
885+
class="btn btn-secondary error-404-button error-404-issue-button">
886+
Found a broken link? File an issue <i class="fa-brands fa-github" aria-hidden="true"></i>
887+
</a>
906888
</div>
907-
</article>
889+
</div>
908890

909891
</article>
910892

Binary file not shown.
0 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
0 Bytes
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)