Skip to content

Commit 24d53c1

Browse files
committed
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)
1 parent d457201 commit 24d53c1

27 files changed

+63
-31
lines changed

404.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
layout: single
33
title: Page Not Found
4+
permalink: 404.html
45
---
56

67
We couldn't find what you were looking for.

Gemfile.lock

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ GEM
22
remote: https://rubygems.org/
33
specs:
44
colorator (0.1)
5-
ffi (1.9.10)
6-
ffi (1.9.10-x64-mingw32)
7-
jekyll (3.1.3)
5+
ffi (1.9.14)
6+
ffi (1.9.14-x64-mingw32)
7+
jekyll (3.1.6)
88
colorator (~> 0.1)
99
jekyll-sass-converter (~> 1.0)
1010
jekyll-watch (~> 1.1)
@@ -14,39 +14,41 @@ GEM
1414
rouge (~> 1.7)
1515
safe_yaml (~> 1.0)
1616
jekyll-paginate (1.1.0)
17-
jekyll-redirect-from (0.10.0)
17+
jekyll-redirect-from (0.11.0)
1818
jekyll (>= 2.0)
1919
jekyll-sass-converter (1.4.0)
2020
sass (~> 3.4)
21-
jekyll-watch (1.3.1)
22-
listen (~> 3.0)
23-
json (1.8.3)
24-
kramdown (1.10.0)
21+
jekyll-watch (1.4.0)
22+
listen (~> 3.0, < 3.1)
23+
json (2.0.1)
24+
kramdown (1.11.1)
2525
liquid (3.0.6)
26-
listen (3.1.1)
27-
rb-fsevent (>= 0.9.3)
28-
rb-inotify (>= 0.9.7)
26+
listen (3.0.8)
27+
rb-fsevent (~> 0.9, >= 0.9.4)
28+
rb-inotify (~> 0.9, >= 0.9.7)
2929
mercenary (0.3.6)
30-
mini_portile2 (2.0.0)
31-
nokogiri (1.6.7.2)
32-
mini_portile2 (~> 2.0.0.rc2)
33-
nokogiri (1.6.7.2-x64-mingw32)
34-
mini_portile2 (~> 2.0.0.rc2)
30+
mini_portile2 (2.1.0)
31+
nokogiri (1.6.8)
32+
mini_portile2 (~> 2.1.0)
33+
pkg-config (~> 1.1.7)
34+
nokogiri (1.6.8-x64-mingw32)
35+
mini_portile2 (~> 2.1.0)
36+
pkg-config (~> 1.1.7)
37+
pkg-config (1.1.7)
3538
posix-spawn (0.3.11)
3639
pygments.rb (0.6.3)
3740
posix-spawn (~> 0.3.6)
3841
yajl-ruby (~> 1.2.0)
39-
rake (11.1.2)
42+
rake (11.2.2)
4043
rb-fsevent (0.9.7)
4144
rb-inotify (0.9.7)
4245
ffi (>= 0.5.0)
4346
redcarpet (3.3.4)
44-
rouge (1.10.1)
47+
rouge (1.11.1)
4548
safe_yaml (1.0.4)
4649
sanitize (2.1.0)
4750
nokogiri (>= 1.4.4)
4851
sass (3.4.22)
49-
wdm (0.1.1)
5052
yajl-ruby (1.2.1)
5153

5254
PLATFORMS
@@ -63,7 +65,6 @@ DEPENDENCIES
6365
rb-fsevent
6466
redcarpet
6567
sanitize (~> 2.0)
66-
wdm (>= 0.1.0)
6768

6869
BUNDLED WITH
6970
1.11.2

_config.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,28 @@ defaults:
1414
type: posts
1515
values:
1616
layout: post
17+
sectionid: blog
18+
- scope:
19+
path: blog
20+
type: pages
21+
values:
22+
sectionid: blog
1723
- scope:
1824
path: docs
1925
type: pages
2026
values:
2127
layout: docs
28+
sectionid: docs
29+
- scope:
30+
path: tips
31+
type: pages
32+
values:
33+
sectionid: docs
34+
- scope:
35+
path: contributing
36+
type: pages
37+
values:
38+
sectionid: docs
2239
exclude:
2340
- Gemfile
2441
- Gemfile.lock

_layouts/default.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@
5050
React
5151
</a>
5252
<ul class="nav-site nav-site-internal">
53-
<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>
53+
<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>
5454
<li><a href="/react/support.html"{% if page.id == 'support' %} class="active"{% endif %}>Support</a></li>
5555
<li><a href="/react/downloads.html"{% if page.id == 'downloads' %} class="active"{% endif %}>Download</a></li>
56-
<li><a href="/react/blog/"{% if layout.sectionid == 'blog' %} class="active"{% endif %}>Blog</a></li>
56+
<li><a href="/react/blog/"{% if page.sectionid == 'blog' %} class="active"{% endif %}>Blog</a></li>
5757
<li>
5858
<input id="algolia-doc-search" type="text" placeholder="Search docs..." />
5959
</li>

acknowledgements.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
id: acknowledgements
33
title: Acknowledgements
44
layout: single
5+
permalink: acknowledgements.html
56
---
67

78
We'd like to thank all of our contributors:

contributing/design-principles.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
id: design-principles
33
title: Design Principles
44
layout: contributing
5-
permalink: design-principles.html
5+
permalink: contributing/design-principles.html
66
---
77

88
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.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
id: why-react-ru-RU
33
title: Почему именно React?
4-
permalink: why-react-ru-RU.html
4+
permalink: docs/why-react-ru-RU.html
55
next: displaying-data-ru-RU.html
66
---
77
React — библиотека JavaScript для создания интерфейсов от команд Facebook и Instagram. Многие ассоциируют React с понятием **View** в паттерне **[MVC](https://ru.wikipedia.org/wiki/Model-View-Controller)**.

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

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
id: displaying-data-ru-RU
33
title: Отображение данных
4-
permalink: displaying-data-ru-RU.html
4+
permalink: docs/displaying-data-ru-RU.html
55
prev: why-react-ru-RU.html
66
next: jsx-in-depth.html
77
---

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
id: interactivity-and-dynamic-uis-ru-RU
33
title: Интерактивные и динамические интерфейсы
4-
permalink: interactivity-and-dynamic-uis-ru-RU.html
4+
permalink: docs/interactivity-and-dynamic-uis-ru-RU.html
55
prev: jsx-gotchas.html
66
next: multiple-components.html
77
---

0 commit comments

Comments
 (0)