Repository navigation
Expand file tree
/
Copy path404.html
More file actions
47 lines (47 loc) · 1.49 KB
/
Copy path404.html
File metadata and controls
47 lines (47 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>HTTP/404 Page not found</title>
<link rel="stylesheet" href="/styleguide/assets/css/style.css">
<link rel="shortcut icon" href="/styleguide/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script>
// Try to redirect for old guidelinks.
window.onload = function() {
// Slice off the leading "/styleguide/".
const missingPage = location.pathname.substr(12);
const map = {
'cppguide.xml': 'cppguide.html',
'google-r-style.html': 'Rguide.html',
'htmlcssguide.xml': 'htmlcssguide.html',
'javascriptguide.xml': 'jsguide.html',
'javascriptguide.html': 'jsguide.html',
'jsoncstyleguide.html': 'jsoncguide.html',
'jsoncstyleguide.xml': 'jsoncguide.html',
'lispguide.xml': 'lispguide.html',
'objcguide.xml': 'objcguide.html',
'Rguide.xml': 'Rguide.html',
'shell.xml': 'shellguide.html',
'vimscriptfull.xml': 'vimscriptfull.html',
'vimscriptguide.xml': 'vimscriptguide.html',
'xmlstyle.html': 'xmlguide.html',
};
const newPage = map[missingPage];
if (newPage) {
navigation.navigate(`/styleguide/${newPage}`);
}
};
</script>
</head>
<body>
<div class="container-lg px-3 my-5 markdown-body">
<h1><a href="/styleguide/">Google Style Guides</a></h1>
<h1>Error: HTTP/404 File not found</h1>
<p>
Our guides have gone through format changes over the years, so try our
<a href="/styleguide/">homepage</a> to see the latest available list.
</p>
</div>
</body>
</html>