This commit is contained in:
ericptraut 2017-03-29 08:35:03 -07:00
Родитель de09b16ae0
Коммит 94bc24e1b4
5 изменённых файлов: 4 добавлений и 39 удалений

Просмотреть файл

@ -6,16 +6,7 @@
<ul>
{% for item in section.items %}
<li>
{{ item | docs_sidebar_link }}
{% if item.subitems %}
<ul>
{% for subitem in item.subitems %}
<li>
{{ subitem | docs_sidebar_link }}
</li>
{% endfor %}
</ul>
{% endif %}
<a href=\"/reactxp/docs/#{item["id"]}.html\" #{item["title"]}</a>
</li>
{% endfor %}
</ul>

Просмотреть файл

@ -1,26 +0,0 @@
module Jekyll
module SidebarItemFilter
def docs_sidebar_link(item)
return sidebar_helper(item, 'docs')
end
def sidebar_helper(item, group)
pageID = @context.registers[:page]["id"]
itemID = item["id"]
href = item["href"] || "/reactxp/#{group}/#{itemID}.html"
classes = []
if pageID == itemID
classes.push("active")
end
if item["href"]
classes.push("external")
end
className = classes.size > 0 ? " class=\"#{classes.join(' ')}\"" : ""
return "<a href=\"#{href}\"#{className}>#{item["title"]}</a>"
end
end
end
Liquid::Template.register_filter(Jekyll::SidebarItemFilter)

Просмотреть файл

@ -1,4 +1,4 @@
$primary: #cc7a6f;
$primary: #59b941;
$linkColor: darken($primary, 9%);
$linkInteract: darken($linkColor, 9%);
$pageBg: #f9f9f9;

Просмотреть файл

@ -17,4 +17,4 @@ While it is possible to write ReactXP apps in Javascript, we *highly* recommend
## Understanding React
If you are new to React, you should first familiarize yourself with the core concepts. We provide an overview and some [simple examples](docs/react_concepts.html). Also refer to the official [React](http://facebook.github.io/react/) and [React Native](https://facebook.github.io/react-native/) documentation sites.
If you are new to React, you should first familiarize yourself with the core concepts. We provide an overview and some [simple examples](react_concepts.html). Also refer to the official [React](http://facebook.github.io/react/) and [React Native](https://facebook.github.io/react-native/) documentation sites.

Просмотреть файл

@ -64,7 +64,7 @@ id: home
</p>
</div>
<div class="overview-section">
<h3>Evolving ReactXP</h3>
<h3>Evolution</h3>
<p>
We plan to snap a new version of ReactXP on a monthly basis, following the same general
update timeline of React Native. Each new version will get its own branch, allowing