From ce086841cda9c96a0c39acc74b44a36c2e238001 Mon Sep 17 00:00:00 2001 From: Zhang Huangbin Date: Thu, 13 Aug 2015 23:08:13 +0800 Subject: [PATCH] * Improve convert.sh to support other languages. --- convert.sh | 9 ++++--- html/zh_CN/debug.dovecot.html | 43 +++++++++++++++++++++++++++++++++ html/zh_CN/index.html | 7 ++++-- tools/markdown2html.py | 3 +++ zh_CN/troubleshooting/_title.md | 1 + 5 files changed, 58 insertions(+), 5 deletions(-) create mode 100644 html/zh_CN/debug.dovecot.html create mode 100644 zh_CN/troubleshooting/_title.md diff --git a/convert.sh b/convert.sh index 3a1bc1d1..3c3fc0b3 100755 --- a/convert.sh +++ b/convert.sh @@ -55,8 +55,10 @@ for lang in ${all_languages}; do # Directory used to store converted html files. OUTPUT_DIR="${ROOTDIR}/html" + CSS_FILE='./css/markdown.css' if [ X"${lang}" != X'en_US' ]; then OUTPUT_DIR="${ROOTDIR}/html/${lang}" + CSS_FILE='../css/markdown.css' fi # Markdown file used to store index of chapters/articles. @@ -79,7 +81,7 @@ for lang in ${all_languages}; do # - article title: _title.md for chapter_dir in ${all_chapter_dirs}; do if [ ! -d ${chapter_dir} ]; then - break + continue fi # Get articles @@ -144,7 +146,8 @@ for lang in ${all_languages}; do ${OUTPUT_DIR} \ output_filename="${article_html_file}" \ title="${_article_title}" \ - add_index_link='yes' + add_index_link='yes' \ + css="${CSS_FILE}" if [ X"$?" == X'0' ]; then echo -e ' [DONE]' @@ -171,7 +174,7 @@ for lang in ${all_languages}; do echo "* ${article_counter} files total for ${lang}." echo "* Converting ${INDEX_MD} for index page." - ${CMD_CONVERT} ${INDEX_MD} ${OUTPUT_DIR} title="iRedMail Documentations" + ${CMD_CONVERT} ${INDEX_MD} ${OUTPUT_DIR} title="iRedMail Documentations" css="${CSS_FILE}" # Cleanup and reset variables rm -f ${INDEX_MD} diff --git a/html/zh_CN/debug.dovecot.html b/html/zh_CN/debug.dovecot.html new file mode 100644 index 00000000..0e66d4df --- /dev/null +++ b/html/zh_CN/debug.dovecot.html @@ -0,0 +1,43 @@ + + + + 开启 Dovecot 调试模式 + + + + +

开启 Dovecot 调试模式

+
+

不知道Dovecot的配置文件在哪个目录?请查阅这个教程: +iRedMail 主要组件的配置文件和日志文件路径.

+
+

要调试 Dovecot,请修改 dovecot.conf 的如下参数:

+
mail_debug = yes
+
+ +

之后重启 Dovecot 服务。

+

如果需要查看验证和密码相关的调试信息,请修改如下参数并重启 Dovecot 服务:

+
auth_verbose = yes
+auth_debug = yes
+auth_debug_passwords = yes
+auth_verbose_passwords = yes
+
+ +

如果重启 Dovecot 服务时看到很多错误信息(例如:dovecot fails, spawning too +quickly),可能是由于 Dovecot 配置文件中有某种错误导致的。请在命令行手动重启 +Dovecot 服务,它会报告配置文件的错误:

+
# dovecot -c /etc/dovecot/dovecot.conf
+

Document published under a CC BY-ND 3.0 license. If you found something wrong, please do contact us to fix it. + \ No newline at end of file diff --git a/html/zh_CN/index.html b/html/zh_CN/index.html index cce3ac63..eea61be0 100644 --- a/html/zh_CN/index.html +++ b/html/zh_CN/index.html @@ -2,13 +2,16 @@ iRedMail Documentations - +

Document published under a CC BY-ND 3.0 license. If you found something wrong, please do contact us to fix it.