Skip to content

Commit

Permalink
doc: add toc menu
Browse files Browse the repository at this point in the history
  • Loading branch information
paranoidjk committed Sep 12, 2017
1 parent 99ffbe3 commit cadc4b6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
order: 3
title: Change Log
timeline: true
toc: false
---

`antd-mobile` strictly follows [Semantic Versioning 2.0.0](http://semver.org/).


#### Release Schedule

* Weekly release: patch version at the end of every week for routine bugfix (anytime for urgent bugfix).
Expand Down
7 changes: 4 additions & 3 deletions CHANGELOG.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@
order: 3
title: 更新日志
timeline: true
toc: false
---

`antd-mobile` 严格遵循 [Semantic Versioning 2.0.0](http://semver.org/lang/zh-CN/) 语义化版本规范。

#### 发布周期

* patch 版本:每周末会进行日常 bugfix 更新。(如果有紧急的 bugfix,则任何时候都可发布)
* minor 版本:每月发布一个带有新特性的向下兼容的版本。
* 大版本号:含有破坏性更新和新特性,不在发布周期内。
* 修订版本号:每周末会进行日常 bugfix 更新。(如果有紧急的 bugfix,则任何时候都可发布)
* 次版本号:每月发布一个带有新特性的向下兼容的版本。
* 主版本号:含有破坏性更新和新特性,不在发布周期内。

---

Expand Down
6 changes: 3 additions & 3 deletions site/desktop/src/template/Content/Article.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ export default class Article extends React.Component {
)
}
{
!(content.toc && meta.toc) ? null : <section className="toc">
{props.utils.toReactComponent(content.toc)}
</section>
(!content.toc || content.toc.length <= 1 || meta.toc === false) ?
null :
<section className="toc">{props.utils.toReactComponent(content.toc)}</section>
}
{
this.getArticle(props.utils.toReactComponent(
Expand Down

0 comments on commit cadc4b6

Please sign in to comment.