Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 25fdaf9

Browse files
committed
Merge pull request facebook#6151 from zpao/docs-external-sidebar-followup
Docs external sidebar followup (cherry picked from commit 4da7e7e)
1 parent 5f7f9b1 commit 25fdaf9

10 files changed

+25
-45
lines changed

docs/_layouts/redirect.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<!DOCTYPE html>
2+
<meta charset="utf-8">
3+
<title>Redirecting...</title>
4+
<link rel=canonical href="{{ page.dest_url }}">
5+
<meta http-equiv=refresh content="0; url={{ page.dest_url }}">
6+
<h1>Redirecting...</h1>
7+
<a href="{{ page.dest_url }}">Click here if you are not redirected.</a>
8+
<script>location="{{ page.dest_url }}"</script>

docs/_plugins/sidebar_item.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def sidebar_item_link(item)
1111
if item["href"]
1212
classes.push("external")
1313
end
14-
className = classes.size ? "class=\"#{classes.join(' ')}\"" : "";
14+
className = classes.size > 0 ? " class=\"#{classes.join(' ')}\"" : ""
1515

1616
return "<a href=\"#{href}\"#{className}>#{item["title"]}</a>"
1717
end
Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
---
2-
id: complementary-tools-it-IT
3-
title: Strumenti Complementari
42
permalink: complementary-tools-it-IT.html
5-
prev: videos-it-IT.html
6-
next: examples-it-IT.html
3+
layout: redirect
4+
dest_url: https://github.com/facebook/react/wiki/Complementary-Tools
75
---
8-
9-
Questa pagina è stata spostata sul [wiki di GitHub](https://github.com/facebook/react/wiki/Complementary-Tools).
Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
---
2-
id: complementary-tools-ko-KR
3-
title: 상호 보완적인 도구들
42
permalink: complementary-tools-ko-KR.html
5-
prev: videos-ko-KR.html
6-
next: examples-ko-KR.html
3+
layout: redirect
4+
dest_url: https://github.com/facebook/react/wiki/Complementary-Tools
75
---
8-
9-
이 페이지는 이동되었습니다. [GitHub wiki](https://github.com/facebook/react/wiki/Complementary-Tools).

docs/docs/complementary-tools.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
---
2-
id: complementary-tools
3-
title: Complementary Tools
42
permalink: complementary-tools.html
5-
prev: videos.html
6-
next: examples.html
3+
layout: redirect
4+
dest_url: https://github.com/facebook/react/wiki/Complementary-Tools
75
---
8-
9-
This page has moved to the [GitHub wiki](https://github.com/facebook/react/wiki/Complementary-Tools).
Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
---
2-
id: complementary-tools-zh-CN
3-
title: 补充工具
42
permalink: complementary-tools-zh-CN.html
5-
prev: videos-zh-CN.html
6-
next: examples-zh-CN.html
3+
layout: redirect
4+
dest_url: https://github.com/facebook/react/wiki/Complementary-Tools
75
---
8-
9-
本页被移到了 [GitHub wiki](https://github.com/facebook/react/wiki/Complementary-Tools)

docs/docs/examples.it-IT.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
---
2-
id: examples-it-IT
3-
title: Esempi
42
permalink: examples-it-IT.html
5-
prev: complementary-tools-it-IT.html
3+
layout: redirect
4+
dest_url: https://github.com/facebook/react/wiki/Examples
65
---
7-
8-
Questa pagina è stata spostata sul [wiki di GitHub](https://github.com/facebook/react/wiki/Examples).

docs/docs/examples.ko-KR.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
---
2-
id: examples-ko-KR
3-
title: 예제들
42
permalink: examples-ko-KR.html
5-
prev: complementary-tools-ko-KR.html
3+
layout: redirect
4+
dest_url: https://github.com/facebook/react/wiki/Examples
65
---
7-
8-
이 페이지는 이동되었습니다. [GitHub wiki](https://github.com/facebook/react/wiki/Examples).

docs/docs/examples.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
---
2-
id: examples
3-
title: Examples
42
permalink: examples.html
5-
prev: complementary-tools.html
3+
layout: redirect
4+
dest_url: https://github.com/facebook/react/wiki/Examples
65
---
7-
8-
This page has moved to the [GitHub wiki](https://github.com/facebook/react/wiki/Examples).

docs/docs/examples.zh-CN.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
---
2-
id: examples-zh-CN
3-
title: 示例
42
permalink: examples-zh-CN.html
5-
prev: complementary-tools-zh-CN.html
3+
layout: redirect
4+
dest_url: https://github.com/facebook/react/wiki/Examples
65
---
7-
8-
本页被移到了 [GitHub wiki](https://github.com/facebook/react/wiki/Examples)

0 commit comments

Comments
 (0)