mirror of
https://github.com/tiennm99/styleguide.git
synced 2026-10-12 18:16:47 +00:00
48 lines
1.5 KiB
HTML
48 lines
1.5 KiB
HTML
<!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>
|