From 305720530a7bb23094fe9b1d9c59d9a25923aaa3 Mon Sep 17 00:00:00 2001 From: Zhang Huangbin Date: Sat, 22 Oct 2016 00:07:17 +0800 Subject: [PATCH] Fix incorrect article links in zh_CN/installation/_links.md. --- convert.sh | 8 ++++---- html/index-zh_CN.html | 6 +++--- zh_CN/installation/_links.md | 6 +++--- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/convert.sh b/convert.sh index 1db42fc7..ebde6c76 100755 --- a/convert.sh +++ b/convert.sh @@ -90,6 +90,7 @@ for lang in ${all_languages}; do fi done echo -e "\t${_md_lang}\n" >> ${INDEX_MD} + unset _md_lang # Initial index file. if [ -f ${src_dir}/_title.md ]; then @@ -133,13 +134,12 @@ for lang in ${all_languages}; do fi fi - # Article info: - # - title: first line (without '#') of markdown file for article_file in ${all_chapter_articles}; do article_counter="$((article_counter+1))" article_file_basename="$(basename ${article_file})" article_html_file_orig="$(strip_name_prefix ${article_file_basename})" - # Replace '.md' suffix by '.html', and append lang code + + # Replace '.md' suffix by '-.html' if [ X"${lang}" == X'en_US' ]; then article_html_file="$(echo ${article_html_file_orig/%.md/.html})" else @@ -151,7 +151,7 @@ for lang in ${all_languages}; do hide_article_in_index='YES' fi - # Get title in markdown file: '# title' + # Get first line (without the leading '# ') as article title _article_title="$(head -1 ${article_file} | awk -F'# ' '{print $2}')" # diff --git a/html/index-zh_CN.html b/html/index-zh_CN.html index f85c042c..7f15ec87 100644 --- a/html/index-zh_CN.html +++ b/html/index-zh_CN.html @@ -24,8 +24,8 @@
  • 安装 iRedMail:

    @@ -44,7 +44,7 @@
  • -

    Performance tuning for a busy server

    +

    性能优化

  • 迁移

    diff --git a/zh_CN/installation/_links.md b/zh_CN/installation/_links.md index de88e050..f0c49aae 100644 --- a/zh_CN/installation/_links.md +++ b/zh_CN/installation/_links.md @@ -1,7 +1,7 @@ * 安装 iRedMail: - * [Red Hat Enterprise Linux, CentOS](./install.iredmail.on.rhel.html) - * [Debian, Ubuntu](./install.iredmail.on.debian.ubuntu.html) + * [Red Hat Enterprise Linux, CentOS](./install.iredmail.on.rhel-zh_CN.html) + * [Debian, Ubuntu](./install.iredmail.on.debian.ubuntu-zh_CN.html) * [FreeBSD (without Jail)](./install.iredmail.on.freebsd.html), [FreeBSD with Jail (ezjail)](./install.iredmail.on.freebsd.with.jail.html) * [OpenBSD](./install.iredmail.on.openbsd.html) @@ -14,4 +14,4 @@ * [Install iRedMail with a remote MySQL server](./install.iredmail.with.remote.mysql.server.html) * [Perform silent/unattended iRedMail installation](./unattended.iredmail.installation.html) -* [Performance tuning for a busy server](./performance.tuning.html) +* [性能优化](./performance.tuning-zh_CN.html)