From de5672ee67a2c020f36d220dbbdbd377ac855cc8 Mon Sep 17 00:00:00 2001 From: Zhang Huangbin Date: Wed, 17 Sep 2014 13:37:35 +0800 Subject: [PATCH] Better display chapter/_summary.md. --- 3-faq-howto/_summary.md | 1 - convert.sh | 8 +++++++- html/index.html | 7 ++++--- 3 files changed, 11 insertions(+), 5 deletions(-) delete mode 100644 3-faq-howto/_summary.md diff --git a/3-faq-howto/_summary.md b/3-faq-howto/_summary.md deleted file mode 100644 index d130cefc..00000000 --- a/3-faq-howto/_summary.md +++ /dev/null @@ -1 +0,0 @@ -This is most frequently asked questions. diff --git a/convert.sh b/convert.sh index 81224793..29bcce77 100644 --- a/convert.sh +++ b/convert.sh @@ -59,7 +59,13 @@ for chapter_dir in ${all_chapter_dirs}; do if [ -f ${_title_md} ]; then # generate index info of chapter - echo "# [$(cat ${_title_md})](${chapter_dir_in_article}/_summary.html)" >> ${INDEX_MD} + echo "# $(cat ${_title_md})" >> ${INDEX_MD} + + if [ -f ${_summary_md} ]; then + echo -e "\n\n" >> ${INDEX_MD} + echo "$(cat ${_title_md})" >> ${INDEX_MD} + echo -e "\n\n" >> ${INDEX_MD} + fi fi mkdir -p ${_output_chapter_dir} &>/dev/null diff --git a/html/index.html b/html/index.html index 00dde6ff..e8507cb5 100644 --- a/html/index.html +++ b/html/index.html @@ -7,7 +7,8 @@

-

Frequently Asked Questions and Howto documents

+

Frequently Asked Questions and Howto documents

+

Frequently Asked Questions and Howto documents

-

Backup and Restore

+

Backup and Restore

-

Troubleshooting and Debug

+

Troubleshooting and Debug

\ No newline at end of file