Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit c76b09b

Browse files
committed
chore(errors.angularjs.org): add project with redirects to docs.angularjs.org
1 parent f9d2988 commit c76b09b

File tree

4 files changed

+72
-0
lines changed

4 files changed

+72
-0
lines changed

scripts/docs.angularjs.org-firebase/firebase.json

+7
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@
66
"/index-debug.html",
77
"/index-jquery.html"
88
],
9+
"redirects": [
10+
{
11+
"source": "/error/:namespace\\::error*",
12+
"destination": "/error/:namespace/:error*",
13+
"type": 302
14+
}
15+
],
916
"rewrites": [
1017
{
1118
"source": "/",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"projects": {
3+
"default": "errors-angularjs-org"
4+
}
5+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"hosting": {
3+
"public": "public",
4+
"ignore": [
5+
"firebase.json",
6+
"**/.*",
7+
"**/node_modules/**"
8+
],
9+
"redirects": [
10+
{
11+
"source": "/:version/:namespace\\::error*",
12+
"destination": "https://code.angularjs.org/:version/docs/error/:namespace/:error*",
13+
"type": 301
14+
},
15+
{
16+
"source": "/:version/:error*",
17+
"destination": "https://code.angularjs.org/:version/docs/error/:error*",
18+
"type": 301
19+
},
20+
{
21+
"source": "/",
22+
"destination": "https://docs.angularjs.org/error/",
23+
"type": 301
24+
}
25+
]
26+
}
27+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1">
6+
<title>Page Not Found</title>
7+
8+
<style media="screen">
9+
body { background: #ECEFF1; color: rgba(0,0,0,0.87); font-family: Roboto, Helvetica, Arial, sans-serif; margin: 0; padding: 0; }
10+
#message { background: white; max-width: 360px; margin: 100px auto 16px; padding: 32px 24px 16px; border-radius: 3px; }
11+
#message h3 { color: #888; font-weight: normal; font-size: 16px; margin: 16px 0 12px; }
12+
#message h2 { color: #ffa100; font-weight: bold; font-size: 16px; margin: 0 0 8px; }
13+
#message h1 { font-size: 22px; font-weight: 300; color: rgba(0,0,0,0.6); margin: 0 0 16px;}
14+
#message p { line-height: 140%; margin: 16px 0 24px; font-size: 14px; }
15+
#message a { display: block; text-align: center; background: #039be5; text-transform: uppercase; text-decoration: none; color: white; padding: 16px; border-radius: 4px; }
16+
#message, #message a { box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24); }
17+
#load { color: rgba(0,0,0,0.4); text-align: center; font-size: 13px; }
18+
@media (max-width: 600px) {
19+
body, #message { margin-top: 0; background: white; box-shadow: none; }
20+
body { border-top: 16px solid #ffa100; }
21+
}
22+
</style>
23+
</head>
24+
<body>
25+
<div id="message">
26+
<h2>404</h2>
27+
<h1>Page Not Found</h1>
28+
<p>The specified file was not found on this website. Please check the URL for mistakes and try again.</p>
29+
<h3>Why am I seeing this?</h3>
30+
<p>This page was generated by the Firebase Command-Line Interface. To modify it, edit the <code>404.html</code> file in your project's configured <code>public</code> directory.</p>
31+
</div>
32+
</body>
33+
</html>

0 commit comments

Comments
 (0)