Browse Source

Finish Jekyll 3 Upgrade

- Reverts change to use sectionid on layouts (was unreliable), using config to make sure that's specified on all pages that need it
- Adds permalinks to all other pages so that og data is correct
- Corrects some permalinks that were in correct (translations)
main
Paul O’Shannessy 9 years ago
parent
commit
24d53c1c37
  1. 1
      404.md
  2. 41
      Gemfile.lock
  3. 17
      _config.yml
  4. 4
      _layouts/default.html
  5. 1
      acknowledgements.md
  6. 2
      contributing/design-principles.md
  7. 2
      docs/01-why-react.ru-RU.md
  8. 2
      docs/01-why-react.zh-TW.md
  9. 2
      docs/02-displaying-data.ru-RU.md
  10. 2
      docs/03-interactivity-and-dynamic-uis.ru-RU.md
  11. 2
      docs/error-decoder.md
  12. 1
      docs/getting-started.md
  13. 1
      docs/thinking-in-react.it-IT.md
  14. 1
      docs/thinking-in-react.ja-JP.md
  15. 1
      docs/thinking-in-react.md
  16. 2
      docs/thinking-in-react.zh-CN.md
  17. 1
      docs/tutorial.it-IT.md
  18. 1
      docs/tutorial.md
  19. 2
      docs/tutorial.zh-CN.md
  20. 1
      downloads.md
  21. 1
      feed.xml
  22. 1
      jsx-compiler.md
  23. 1
      support.md
  24. 1
      warnings/legacy-factories.md
  25. 1
      warnings/refs-must-have-owner.md
  26. 1
      warnings/special-props.md
  27. 1
      warnings/unknown-prop.md

1
404.md

@ -1,6 +1,7 @@
--- ---
layout: single layout: single
title: Page Not Found title: Page Not Found
permalink: 404.html
--- ---
We couldn't find what you were looking for. We couldn't find what you were looking for.

41
Gemfile.lock

@ -2,9 +2,9 @@ GEM
remote: https://rubygems.org/ remote: https://rubygems.org/
specs: specs:
colorator (0.1) colorator (0.1)
ffi (1.9.10) ffi (1.9.14)
ffi (1.9.10-x64-mingw32) ffi (1.9.14-x64-mingw32)
jekyll (3.1.3) jekyll (3.1.6)
colorator (~> 0.1) colorator (~> 0.1)
jekyll-sass-converter (~> 1.0) jekyll-sass-converter (~> 1.0)
jekyll-watch (~> 1.1) jekyll-watch (~> 1.1)
@ -14,39 +14,41 @@ GEM
rouge (~> 1.7) rouge (~> 1.7)
safe_yaml (~> 1.0) safe_yaml (~> 1.0)
jekyll-paginate (1.1.0) jekyll-paginate (1.1.0)
jekyll-redirect-from (0.10.0) jekyll-redirect-from (0.11.0)
jekyll (>= 2.0) jekyll (>= 2.0)
jekyll-sass-converter (1.4.0) jekyll-sass-converter (1.4.0)
sass (~> 3.4) sass (~> 3.4)
jekyll-watch (1.3.1) jekyll-watch (1.4.0)
listen (~> 3.0) listen (~> 3.0, < 3.1)
json (1.8.3) json (2.0.1)
kramdown (1.10.0) kramdown (1.11.1)
liquid (3.0.6) liquid (3.0.6)
listen (3.1.1) listen (3.0.8)
rb-fsevent (>= 0.9.3) rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (>= 0.9.7) rb-inotify (~> 0.9, >= 0.9.7)
mercenary (0.3.6) mercenary (0.3.6)
mini_portile2 (2.0.0) mini_portile2 (2.1.0)
nokogiri (1.6.7.2) nokogiri (1.6.8)
mini_portile2 (~> 2.0.0.rc2) mini_portile2 (~> 2.1.0)
nokogiri (1.6.7.2-x64-mingw32) pkg-config (~> 1.1.7)
mini_portile2 (~> 2.0.0.rc2) nokogiri (1.6.8-x64-mingw32)
mini_portile2 (~> 2.1.0)
pkg-config (~> 1.1.7)
pkg-config (1.1.7)
posix-spawn (0.3.11) posix-spawn (0.3.11)
pygments.rb (0.6.3) pygments.rb (0.6.3)
posix-spawn (~> 0.3.6) posix-spawn (~> 0.3.6)
yajl-ruby (~> 1.2.0) yajl-ruby (~> 1.2.0)
rake (11.1.2) rake (11.2.2)
rb-fsevent (0.9.7) rb-fsevent (0.9.7)
rb-inotify (0.9.7) rb-inotify (0.9.7)
ffi (>= 0.5.0) ffi (>= 0.5.0)
redcarpet (3.3.4) redcarpet (3.3.4)
rouge (1.10.1) rouge (1.11.1)
safe_yaml (1.0.4) safe_yaml (1.0.4)
sanitize (2.1.0) sanitize (2.1.0)
nokogiri (>= 1.4.4) nokogiri (>= 1.4.4)
sass (3.4.22) sass (3.4.22)
wdm (0.1.1)
yajl-ruby (1.2.1) yajl-ruby (1.2.1)
PLATFORMS PLATFORMS
@ -63,7 +65,6 @@ DEPENDENCIES
rb-fsevent rb-fsevent
redcarpet redcarpet
sanitize (~> 2.0) sanitize (~> 2.0)
wdm (>= 0.1.0)
BUNDLED WITH BUNDLED WITH
1.11.2 1.11.2

17
_config.yml

@ -14,11 +14,28 @@ defaults:
type: posts type: posts
values: values:
layout: post layout: post
sectionid: blog
- scope:
path: blog
type: pages
values:
sectionid: blog
- scope: - scope:
path: docs path: docs
type: pages type: pages
values: values:
layout: docs layout: docs
sectionid: docs
- scope:
path: tips
type: pages
values:
sectionid: docs
- scope:
path: contributing
type: pages
values:
sectionid: docs
exclude: exclude:
- Gemfile - Gemfile
- Gemfile.lock - Gemfile.lock

4
_layouts/default.html

@ -50,10 +50,10 @@
React React
</a> </a>
<ul class="nav-site nav-site-internal"> <ul class="nav-site nav-site-internal">
<li><a href="/react/docs/getting-started.html"{% if layout.sectionid == 'docs' or layout.sectionid == 'tips' or layout.sectionid == 'contributing' %} class="active"{% endif %}>Docs</a></li> <li><a href="/react/docs/getting-started.html"{% if page.sectionid == 'docs' or page.sectionid == 'tips' or page.sectionid == 'contributing' %} class="active"{% endif %}>Docs</a></li>
<li><a href="/react/support.html"{% if page.id == 'support' %} class="active"{% endif %}>Support</a></li> <li><a href="/react/support.html"{% if page.id == 'support' %} class="active"{% endif %}>Support</a></li>
<li><a href="/react/downloads.html"{% if page.id == 'downloads' %} class="active"{% endif %}>Download</a></li> <li><a href="/react/downloads.html"{% if page.id == 'downloads' %} class="active"{% endif %}>Download</a></li>
<li><a href="/react/blog/"{% if layout.sectionid == 'blog' %} class="active"{% endif %}>Blog</a></li> <li><a href="/react/blog/"{% if page.sectionid == 'blog' %} class="active"{% endif %}>Blog</a></li>
<li> <li>
<input id="algolia-doc-search" type="text" placeholder="Search docs..." /> <input id="algolia-doc-search" type="text" placeholder="Search docs..." />
</li> </li>

1
acknowledgements.md

@ -2,6 +2,7 @@
id: acknowledgements id: acknowledgements
title: Acknowledgements title: Acknowledgements
layout: single layout: single
permalink: acknowledgements.html
--- ---
We'd like to thank all of our contributors: We'd like to thank all of our contributors:

2
contributing/design-principles.md

@ -2,7 +2,7 @@
id: design-principles id: design-principles
title: Design Principles title: Design Principles
layout: contributing layout: contributing
permalink: design-principles.html permalink: contributing/design-principles.html
--- ---
After using React in a couple of applications, you might be interested in contributing to React. Before [diving into specifics](https://github.com/facebook/react/blob/master/CONTRIBUTING.md), we think it's important to establish a few design principles guiding our decisions about changes in React. After using React in a couple of applications, you might be interested in contributing to React. Before [diving into specifics](https://github.com/facebook/react/blob/master/CONTRIBUTING.md), we think it's important to establish a few design principles guiding our decisions about changes in React.

2
docs/01-why-react.ru-RU.md

@ -1,7 +1,7 @@
--- ---
id: why-react-ru-RU id: why-react-ru-RU
title: Почему именно React? title: Почему именно React?
permalink: why-react-ru-RU.html permalink: docs/why-react-ru-RU.html
next: displaying-data-ru-RU.html next: displaying-data-ru-RU.html
--- ---
React — библиотека JavaScript для создания интерфейсов от команд Facebook и Instagram. Многие ассоциируют React с понятием **View** в паттерне **[MVC](https://ru.wikipedia.org/wiki/Model-View-Controller)**. React — библиотека JavaScript для создания интерфейсов от команд Facebook и Instagram. Многие ассоциируют React с понятием **View** в паттерне **[MVC](https://ru.wikipedia.org/wiki/Model-View-Controller)**.

2
docs/01-why-react.zh-TW.md

@ -1,7 +1,7 @@
--- ---
id: why-react-zh-TW id: why-react-zh-TW
title: Why React? title: Why React?
permalink: why-react-zh-TW.html permalink: docs/why-react-zh-TW.html
next: displaying-data.html next: displaying-data.html
--- ---
React是Facebook和Instagram用來建立使用者介面的JavaScript函式庫. 很多人認為React就是處理 **[MVC](https://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller)**架構中 **V** 的部份. React是Facebook和Instagram用來建立使用者介面的JavaScript函式庫. 很多人認為React就是處理 **[MVC](https://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller)**架構中 **V** 的部份.

2
docs/02-displaying-data.ru-RU.md

@ -1,7 +1,7 @@
--- ---
id: displaying-data-ru-RU id: displaying-data-ru-RU
title: Отображение данных title: Отображение данных
permalink: displaying-data-ru-RU.html permalink: docs/displaying-data-ru-RU.html
prev: why-react-ru-RU.html prev: why-react-ru-RU.html
next: jsx-in-depth.html next: jsx-in-depth.html
--- ---

2
docs/03-interactivity-and-dynamic-uis.ru-RU.md

@ -1,7 +1,7 @@
--- ---
id: interactivity-and-dynamic-uis-ru-RU id: interactivity-and-dynamic-uis-ru-RU
title: Интерактивные и динамические интерфейсы title: Интерактивные и динамические интерфейсы
permalink: interactivity-and-dynamic-uis-ru-RU.html permalink: docs/interactivity-and-dynamic-uis-ru-RU.html
prev: jsx-gotchas.html prev: jsx-gotchas.html
next: multiple-components.html next: multiple-components.html
--- ---

2
docs/error-decoder.md

@ -1,7 +1,7 @@
--- ---
id: error-decoder id: error-decoder
title: Error Decoder title: Error Decoder
permalink: error-decoder.html permalink: docs/error-decoder.html
--- ---
In the minified production build of React, we avoid sending down full error messages in order to reduce the number of bytes sent over the wire. In the minified production build of React, we avoid sending down full error messages in order to reduce the number of bytes sent over the wire.

1
docs/getting-started.md

@ -1,6 +1,7 @@
--- ---
id: getting-started id: getting-started
title: Getting Started title: Getting Started
permalink: docs/getting-started.html
next: tutorial.html next: tutorial.html
redirect_from: "docs/index.html" redirect_from: "docs/index.html"
--- ---

1
docs/thinking-in-react.it-IT.md

@ -1,6 +1,7 @@
--- ---
id: thinking-in-react-it-IT id: thinking-in-react-it-IT
title: Pensare in React title: Pensare in React
permalink: docs/thinking-in-react-it-IT.html
prev: tutorial-it-IT.html prev: tutorial-it-IT.html
next: conferences-it-IT.html next: conferences-it-IT.html
redirect_from: 'blog/2013/11/05/thinking-in-react.html' redirect_from: 'blog/2013/11/05/thinking-in-react.html'

1
docs/thinking-in-react.ja-JP.md

@ -1,6 +1,7 @@
--- ---
id: thinking-in-react-ja-JP id: thinking-in-react-ja-JP
title: Reactの考え方 title: Reactの考え方
permalink: docs/thinking-in-react-ja-JP.html
prev: tutorial-ja-JP.html prev: tutorial-ja-JP.html
next: conferences.html next: conferences.html
redirect_from: 'blog/2013/11/05/thinking-in-react.html' redirect_from: 'blog/2013/11/05/thinking-in-react.html'

1
docs/thinking-in-react.md

@ -1,6 +1,7 @@
--- ---
id: thinking-in-react id: thinking-in-react
title: Thinking in React title: Thinking in React
permalink: docs/thinking-in-react.html
prev: tutorial.html prev: tutorial.html
next: conferences.html next: conferences.html
redirect_from: 'blog/2013/11/05/thinking-in-react.html' redirect_from: 'blog/2013/11/05/thinking-in-react.html'

2
docs/thinking-in-react.zh-CN.md

@ -1,7 +1,7 @@
--- ---
id: thinking-in-react-zh-CN id: thinking-in-react-zh-CN
title: React 编程思想 title: React 编程思想
permalink: thinking-in-react-zh-CN.html permalink: docs/thinking-in-react-zh-CN.html
prev: tutorial-zh-CN.html prev: tutorial-zh-CN.html
next: conferences-zh-CN.html next: conferences-zh-CN.html
redirect_from: 'blog/2013/11/05/thinking-in-react.html' redirect_from: 'blog/2013/11/05/thinking-in-react.html'

1
docs/tutorial.it-IT.md

@ -1,6 +1,7 @@
--- ---
id: tutorial-it-IT id: tutorial-it-IT
title: Tutorial title: Tutorial
permalink: docs/tutorial-it-IT.html
prev: getting-started-it-IT.html prev: getting-started-it-IT.html
next: thinking-in-react-it-IT.html next: thinking-in-react-it-IT.html
--- ---

1
docs/tutorial.md

@ -1,6 +1,7 @@
--- ---
id: tutorial id: tutorial
title: Tutorial title: Tutorial
permalink: docs/tutorial.html
prev: getting-started.html prev: getting-started.html
next: thinking-in-react.html next: thinking-in-react.html
--- ---

2
docs/tutorial.zh-CN.md

@ -1,7 +1,7 @@
--- ---
id: tutorial-zh-CN id: tutorial-zh-CN
title: 教程 title: 教程
permalink: tutorial-zh-CN.html permalink: docs/tutorial-zh-CN.html
prev: getting-started-zh-CN.html prev: getting-started-zh-CN.html
next: thinking-in-react-zh-CN.html next: thinking-in-react-zh-CN.html
--- ---

1
downloads.md

@ -2,6 +2,7 @@
id: downloads id: downloads
title: Downloads title: Downloads
layout: single layout: single
permalink: downloads.html
--- ---
Download the starter kit to get everything you need to Download the starter kit to get everything you need to
[get started with React](/react/docs/getting-started.html). The starter kit includes React and some simple example apps. [get started with React](/react/docs/getting-started.html). The starter kit includes React and some simple example apps.

1
feed.xml

@ -1,5 +1,4 @@
--- ---
layout: none
--- ---
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">

1
jsx-compiler.md

@ -1,6 +1,7 @@
--- ---
layout: single layout: single
title: JSX Compiler Service title: JSX Compiler Service
permalink: jsx-compiler.html
id: jsx-compiler id: jsx-compiler
--- ---

1
support.md

@ -2,6 +2,7 @@
title: Need help? title: Need help?
layout: single layout: single
id: support id: support
permalink: support.html
--- ---
**React** is worked on full-time by Facebook's product infrastructure and Instagram's user interface engineering teams. They're often around and available for questions. **React** is worked on full-time by Facebook's product infrastructure and Instagram's user interface engineering teams. They're often around and available for questions.

1
warnings/legacy-factories.md

@ -1,6 +1,7 @@
--- ---
title: React Element Factories and JSX Warning title: React Element Factories and JSX Warning
layout: single layout: single
permalink: warnings/legacy-factories.html
--- ---
You probably came here because your code is calling your component as a plain function call. This is now deprecated: You probably came here because your code is calling your component as a plain function call. This is now deprecated:

1
warnings/refs-must-have-owner.md

@ -1,6 +1,7 @@
--- ---
title: Refs Must Have Owner Warning title: Refs Must Have Owner Warning
layout: single layout: single
permalink: warnings/refs-must-have-owner.html
--- ---
You are probably here because you got the following error messages: You are probably here because you got the following error messages:

1
warnings/special-props.md

@ -1,6 +1,7 @@
--- ---
title: Special Props Warning title: Special Props Warning
layout: single layout: single
permalink: warnings/special-props.html
--- ---
Most props on a JSX element are passed on to the component, however, there are two special props (`ref` and `key`) which are used by React, and are thus not forwarded to the component. Most props on a JSX element are passed on to the component, however, there are two special props (`ref` and `key`) which are used by React, and are thus not forwarded to the component.

1
warnings/unknown-prop.md

@ -1,6 +1,7 @@
--- ---
title: Unknown Prop Warning title: Unknown Prop Warning
layout: single layout: single
permalink: warnings/unknown-prop.html
--- ---
The unknown-prop warning will fire if you attempt to render a DOM element with a prop that is not recognized by React as a legal DOM attribute/property. You should ensure that your DOM elements do not have spurious props floating around. The unknown-prop warning will fire if you attempt to render a DOM element with a prop that is not recognized by React as a legal DOM attribute/property. You should ensure that your DOM elements do not have spurious props floating around.

Loading…
Cancel
Save