update documentation

pull/157/merge
afc163 10 years ago
parent ae859acc31
commit 018b25bfae

@ -1,6 +1,6 @@
# 下载
- category: top
- category: 3
- order: 2
---

@ -1,6 +1,6 @@
# 快速上手
- category: top
- category: 1
- order: 1
---

@ -1,6 +1,6 @@
# 介绍
- category: top
- category: 0
- order: 0
---

@ -2,7 +2,7 @@
<aside class="aside-container">
<ul>
{%- for category in categories %}
{%- if category.name === 'top' %}
{%- if category.pages.length === 1 %}
{%- for item in category.pages|splitComponentsByType(category.name) %}
<li class="{%- if item.title === post.title %}current{%- endif %}">
<a href="{{permalink_url(item)}}" class="{%- if item.meta.disabled %}nav-link-disabled{%- endif %}">

@ -95,12 +95,12 @@
<li class="{%- if post.directory|rootDirectoryIn(['spec']) %}current{%- endif %}">
<a href="/spec/introduce">设计</a>
</li>
<li class="{%- if post.directory|rootDirectoryIn(['docs','components']) %}current{%- endif %}">
<a href="/docs/introduce">React</a>
</li>
<li>
<a class="nav-link-disabled" href="">案例</a>
</li>
<li class="{%- if post.directory|rootDirectoryIn(['docs','components']) %}current{%- endif %}">
<a href="/docs/introduce">React</a>
</li>
<li>
<a target="_blank" href="https://github.com/ant-design/ant-design">Github</a>
</li>

@ -89,7 +89,7 @@ module.exports = function(nico) {
});
// 设计的分类排序
categories = categories.sort(function(a, b) {
var cats = ['风格', '动画'];
var cats = ['风格', '动画', '模式', '资源'];
a = cats.indexOf(a.name);
b = cats.indexOf(b.name);
return a - b;

@ -0,0 +1,9 @@
# 设计模式
- category: 模式
- disabled: true
---
敬请期待。

@ -0,0 +1,8 @@
# 资源下载
- category: 资源
- disabled: true
---
敬请期待。

@ -180,7 +180,7 @@ a.logo {
a.nav-link-disabled {
cursor: not-allowed;
color: #ddd !important;
color: #ccc !important;
pointer-events: none;
}

Loading…
Cancel
Save