Better display chapter/_summary.md.

This commit is contained in:
Zhang Huangbin 2014-09-17 13:37:35 +08:00
parent 170c284951
commit de5672ee67
3 changed files with 11 additions and 5 deletions

View File

@ -1 +0,0 @@
This is most frequently asked questions.

View File

@ -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

View File

@ -7,7 +7,8 @@
<body>
<h3></h3>
<h1 id="frequently-asked-questions-and-howto-documents"><a href="faq-howto/_summary.html">Frequently Asked Questions and Howto documents</a></h1>
<h1 id="frequently-asked-questions-and-howto-documents">Frequently Asked Questions and Howto documents</h1>
<p>Frequently Asked Questions and Howto documents</p>
<ul>
<li><a href="faq-howto/amavisd.no.x-spam.headers.html"> Amavisd + SpamAssassin not working, no mail header (X-Spam-*) inserted.</a></li>
<li><a href="faq-howto/completely.disable.amavisd.clamav.spamassassin.html"> How to completely disable amavisd/ClamAV/SpamAssassin</a></li>
@ -17,11 +18,11 @@
<li><a href="faq-howto/pipe.incoming.email.for.certain.user.to.external.script.html"> How to pipe incoming email for certain user to external script </a></li>
<li><a href="faq-howto/unattended.iredmail.installation.html"> How to perform silent/unattended iRedMail installation</a></li>
</ul>
<h1 id="backup-and-restore"><a href="backup-restore/_summary.html">Backup and Restore</a></h1>
<h1 id="backup-and-restore">Backup and Restore</h1>
<ul>
<li><a href="backup-restore/migrate.to.new.iredmail.server.html">How to migrate old iRedMail server to the latest stable release</a></li>
</ul>
<h1 id="troubleshooting-and-debug"><a href="troubleshooting/_summary.html">Troubleshooting and Debug</a></h1>
<h1 id="troubleshooting-and-debug">Troubleshooting and Debug</h1>
<ul>
<li><a href="troubleshooting/turn.on.debug.mode.in.dovecot.html"> How to turn on debug mode in Dovecot</a></li>
</ul></body></html>