billryan / algorithm-exercise

Data Structure and Algorithm notes. 数据结构与算法/leetcode/lintcode题解/
https://algorithm.yuanbin.me
3.44k stars 891 forks source link

add sections automatically for gitbook SUMMARY.md from *.md source files #10

Open billryan opened 9 years ago

billryan commented 9 years ago

Add new sections by GitbookIO editor is quite simple, but sometimes you may forget to add sections in SUMMARY.md.

It is easy to parse the title of source .md files and add it to the appropriate chapter position. I will implement this feature with Python.

niangaotuantuan commented 9 years ago

Also, when adding questions inside a section, it seems that manual update is needed, such as re-upload travis? I'm not sure about that...

billryan commented 9 years ago

Manual update for SUMMARY.md is necessary if you do not use Gitbook editor.

niangaotuantuan commented 9 years ago

get.

billryan commented 9 years ago

check_summary.py will update SUMMARY.md extracting from *.md title.