Skip to content

Commit

Permalink
show the range of 条s in TOC!
Browse files Browse the repository at this point in the history
  • Loading branch information
chuan6 committed Nov 7, 2016
1 parent 8da4f57 commit a60c773
Show file tree
Hide file tree
Showing 30 changed files with 33 additions and 30 deletions.
5 changes: 4 additions & 1 deletion generator/src/generator/toc.clj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@
[:div {:class "li-head"}
elmt-a
(when-let [r (:entries-range t)]
[:span (str "" (int (:from r)))])]]))
(let [a (int (:from r))
b (int (:to r))]
[:span (str "" a
(when (not= a b) (str "-" b)))]))]]))
(to-html [ot]
(let [t (pt/node-val ot)
r (when (pt/internal-node? ot)
Expand Down
2 changes: 1 addition & 1 deletion 体育法.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 党内监督条例.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 公司法.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 农村土地承包法.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 出口退(免)税企业分类管理办法.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 刑法.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 劳动合同法.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 劳动法.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 合伙企业法.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 合同法.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 国有土地上房屋征收与补偿条例.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 婚姻法.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 婚姻登记条例.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 宪法.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 工伤保险条例.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 收养法.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 教育法.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 民法通则.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 消费者权益保护法.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 物业管理条例.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 物权法.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 种子法.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 立法法.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 继承法.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 道路交通安全法.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 食品安全法.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 高等教育法.html

Large diffs are not rendered by default.

0 comments on commit a60c773

Please sign in to comment.