10000 Merge pull request #553 from ashawley/fix-scaladoc-redirects · ee08b397/scala.github.com@64d5b76 · GitHub
[go: up one dir, main page]

Skip to content

Commit 64d5b76

Browse files
Merge pull request scala#553 from ashawley/fix-scaladoc-redirects
Fix HTML redirects on scaladoc pages
2 parents 674487d + bd2ad24 commit 64d5b76

File tree

3 files changed

+28
-20
lines changed

3 files changed

+28
-20
lines changed

_layouts/redirected.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
layout: default
3+
---
4+
<!DOCTYPE html>
5+
<html>
6+
<head>
7+
<link rel="canonical" href="{{ page.redirect_to }}"/>
8+
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
9+
<meta http-equiv="refresh" content="0;url={{ page.redirect_to }}" />
10+
</head>
11+
<body>
12+
<h1>Redirecting...</h1>
13+
<a href="{{ page.redirect_to }}">Click here if you are not redirected.<a>
14+
<script>location='{{ page.redirect_to }}'</script>
15+
</body>
16+
</html>

overviews/scaladoc/basics.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
<html>
2-
<head>
3-
<meta http-equiv="Refresh" content="0; url=http://docs.scala-lang.org/overviews/scaladoc/for-library-authors.html" />
4-
<title>Moved</title>
5-
</head>
6-
<body>
7-
<h1>Moved</h1>
8-
<p>This page has moved to <a href="http://docs.scala-lang.org/overviews/scaladoc/for-library-authors.html">http://docs.scala-lang.org/overviews/scaladoc/for-library-authors.html</a>.</p>
9-
</body>
10-
</html>
1+
---
2+
layout: redirected
3+
sitemap: false
4+
permalink: /overviews/scaladoc/basics.html
5+
redirect_to: /overviews/scaladoc/for-library-authors.html
6+
---

overviews/scaladoc/usage.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
<html>
2-
<head>
3-
<meta http-equiv="Refresh" content="0; url=http://docs.scala-lang.org/overviews/scaladoc/interface.html" />
4-
<title>Moved</title>
5-
</head>
6-
<body>
7-
<h1>Moved</h1>
8-
<p>This page has moved to <a href="http://docs.scala-lang.org/overviews/scaladoc/interface.html">http://docs.scala-lang.org/overviews/scaladoc/interface.html</a>.</p>
9-
</body>
10-
</html>
1+
---
2+
layout: redirected
3+
sitemap: false
4+
permalink: /overviews/scaladoc/usage.html
5+
redirect_to: /overviews/scaladoc/interface.html
6+
---

0 commit comments

Comments
 (0)
0