-
Notifications
You must be signed in to change notification settings - Fork 1
/
404.html
66 lines (55 loc) · 2.51 KB
/
404.html
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
---
layout: default
title: 404 - MontageJS
---
<section>
<div class="wrapper">
<div class="cols">
<aside class="col col-1-2">
<h1 class="title-404">404</h1>
</aside>
<div class="col col-1-2">
<p>Ooops... looks like the page you were looking for was either moved or removed from our site.</p>
<p>Please return to our <a href="http://montagejs.org/index.html">home page</a> or use the links above to find the information you want.</p>
<p>You can also <a href="/community/contact-us/">contact us</a> with further questions.</p>
</div>
</div>
</div>
</section>
<script type="text/javascript">
var path = window.location.pathname;
// sets the title so we know which URLs are broken
document.title = "404 - " + path;
// Old API Docs
var oldApiDocMatcher = /\/apis\/([^.]*).html/
var oldApiDocMatch = path.match(oldApiDocMatcher);
if (oldApiDocMatch) {
window.location = "/api/" + oldApiDocMatch[1] + ".html";
}
// Redirect List
var redirects = {
'/docs/Component-draw-cycle.html': '/docs/draw-cycle.html',
'/docs/Data-binding.html': '/docs/data-binding.html',
'/docs/Event-handling.html': '/docs/event-handling.html',
'/docs/examples.html': '/docs/montagejs-examples.html',
'/docs/Exploring-components.html': '/docs/exploring-components.html',
'/docs/getting-started.html': '/docs/montagejs-setup.html',
'/docs/Hello-Montage.html': '/docs/hello-montagejs.html',
'/docs/kitchen-sink': '/docs/montagejs-examples.html',
'/docs/kitchen-sink.html': '/docs/montagejs-examples.html',
'/docs/montage-objects.html': '/docs/montagejs-objects.html',
'/docs/Montage-serialization-format.html': '/docs/serialization-format.html',
'/docs/Naming-Conventions.html': '/docs/naming-conventions.html',
'/docs/native-components.html': '/docs/theme-native-components.html',
'/docs/overlay-component.html': '/docs/overlay.html',
'/docs/Quick-Start.html': '/docs/montagejs-setup.html',
'/docs/quick-start.html': '/docs/montagejs-setup.html',
'/themes': '/docs/themes.html',
'/themes/': '/docs/themes.html',
'/mfiddle': 'http://montagejs.github.io/mfiddle/',
'/mfiddle/': 'http://montagejs.github.io/mfiddle/'
};
if (redirects.hasOwnProperty(path)) {
window.location = redirects[path];
}
</script>