Skip to content

Commit

Permalink
Merge pull request facebook#6151 from zpao/docs-external-sidebar-foll…
Browse files Browse the repository at this point in the history
…owup

Docs external sidebar followup
  • Loading branch information
zpao committed Mar 1, 2016
2 parents 8f2b7d8 + e0442f6 commit 4da7e7e
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 45 deletions.
8 changes: 8 additions & 0 deletions docs/_layouts/redirect.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>Redirecting...</title>
<link rel=canonical href="{{ page.dest_url }}">
<meta http-equiv=refresh content="0; url={{ page.dest_url }}">
<h1>Redirecting...</h1>
<a href="{{ page.dest_url }}">Click here if you are not redirected.</a>
<script>location="{{ page.dest_url }}"</script>
2 changes: 1 addition & 1 deletion docs/_plugins/sidebar_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def sidebar_item_link(item)
if item["href"]
classes.push("external")
end
className = classes.size ? "class=\"#{classes.join(' ')}\"" : "";
className = classes.size > 0 ? " class=\"#{classes.join(' ')}\"" : ""

return "<a href=\"#{href}\"#{className}>#{item["title"]}</a>"
end
Expand Down
8 changes: 2 additions & 6 deletions docs/docs/complementary-tools.it-IT.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
---
id: complementary-tools-it-IT
title: Strumenti Complementari
permalink: complementary-tools-it-IT.html
prev: videos-it-IT.html
next: examples-it-IT.html
layout: redirect
dest_url: https://github.com/facebook/react/wiki/Complementary-Tools
---

Questa pagina è stata spostata sul [wiki di GitHub](https://github.com/facebook/react/wiki/Complementary-Tools).
8 changes: 2 additions & 6 deletions docs/docs/complementary-tools.ko-KR.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
---
id: complementary-tools-ko-KR
title: 상호 보완적인 도구들
permalink: complementary-tools-ko-KR.html
prev: videos-ko-KR.html
next: examples-ko-KR.html
layout: redirect
dest_url: https://github.com/facebook/react/wiki/Complementary-Tools
---

이 페이지는 이동되었습니다. [GitHub wiki](https://github.com/facebook/react/wiki/Complementary-Tools).
8 changes: 2 additions & 6 deletions docs/docs/complementary-tools.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
---
id: complementary-tools
title: Complementary Tools
permalink: complementary-tools.html
prev: videos.html
next: examples.html
layout: redirect
dest_url: https://github.com/facebook/react/wiki/Complementary-Tools
---

This page has moved to the [GitHub wiki](https://github.com/facebook/react/wiki/Complementary-Tools).
8 changes: 2 additions & 6 deletions docs/docs/complementary-tools.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
---
id: complementary-tools-zh-CN
title: 补充工具
permalink: complementary-tools-zh-CN.html
prev: videos-zh-CN.html
next: examples-zh-CN.html
layout: redirect
dest_url: https://github.com/facebook/react/wiki/Complementary-Tools
---

本页被移到了 [GitHub wiki](https://github.com/facebook/react/wiki/Complementary-Tools)
7 changes: 2 additions & 5 deletions docs/docs/examples.it-IT.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
---
id: examples-it-IT
title: Esempi
permalink: examples-it-IT.html
prev: complementary-tools-it-IT.html
layout: redirect
dest_url: https://github.com/facebook/react/wiki/Examples
---

Questa pagina è stata spostata sul [wiki di GitHub](https://github.com/facebook/react/wiki/Examples).
7 changes: 2 additions & 5 deletions docs/docs/examples.ko-KR.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
---
id: examples-ko-KR
title: 예제들
permalink: examples-ko-KR.html
prev: complementary-tools-ko-KR.html
layout: redirect
dest_url: https://github.com/facebook/react/wiki/Examples
---

이 페이지는 이동되었습니다. [GitHub wiki](https://github.com/facebook/react/wiki/Examples).
7 changes: 2 additions & 5 deletions docs/docs/examples.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
---
id: examples
title: Examples
permalink: examples.html
prev: complementary-tools.html
layout: redirect
dest_url: https://github.com/facebook/react/wiki/Examples
---

This page has moved to the [GitHub wiki](https://github.com/facebook/react/wiki/Examples).
7 changes: 2 additions & 5 deletions docs/docs/examples.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
---
id: examples-zh-CN
title: 示例
permalink: examples-zh-CN.html
prev: complementary-tools-zh-CN.html
layout: redirect
dest_url: https://github.com/facebook/react/wiki/Examples
---

本页被移到了 [GitHub wiki](https://github.com/facebook/react/wiki/Examples)

0 comments on commit 4da7e7e

Please sign in to comment.