Add navigation bar in article pages.

This commit is contained in:
Zhang Huangbin 2014-09-20 22:32:14 +08:00
parent 0d11c814d6
commit 21c3832f54
29 changed files with 224 additions and 59 deletions

View File

@ -1,5 +1,7 @@
# Configure Thunderbird as mail client (IMAP, SMTP and global ldap address book)
[TOC]
iRedMail provides POP3S (POP3 over TLS), IMAPS (IMAP over TLS), SMTPS (SMTP over TLS) for receiving and sending emails by default.
## Create new mail account

View File

@ -1,9 +1,10 @@
# Turn on debug mode in OpenLDAP
In OpenLDAP config file `slapd.conf`, update parameter `loglevel` to value `256`, then restart OpenLDAP service.
* On RHEL/CentOS and OpenBSD, it's `/etc/openldap/slapd.conf`
* On Debian/Ubuntu, it's `/etc/ldap/slapd.conf`
* On FreeBSD, it's `/usr/local/etc/openldap/slapd.conf`
* On RHEL/CentOS and OpenBSD, it's `/etc/openldap/slapd.conf`
* On Debian/Ubuntu, it's `/etc/ldap/slapd.conf`
* On FreeBSD, it's `/usr/local/etc/openldap/slapd.conf`
```
loglevel 256

View File

@ -97,7 +97,9 @@ for chapter_dir in ${all_chapter_dirs}; do
# 'src/default/' is path to view source file on bitbucket.org
echo "* [${_article_title}](src/default/${article_file_without_prefix})" >> ${README_MD}
${CMD_CONVERT} ${article_file} ${_output_chapter_dir} title="${_article_title}"
${CMD_CONVERT} ${article_file} ${_output_chapter_dir} \
title="${_article_title}" \
add_index_link='yes'
done
done

View File

@ -4,9 +4,13 @@
<title>How to migrate old iRedMail server to the latest stable release</title>
<link href="../css/markdown.css" rel="stylesheet"></head>
</head>
<body>
<h1 id="how-to-migrate-old-iredmail-server-to-the-latest-stable-release">How to migrate old iRedMail server to the latest stable release</h1>
<div id="navigation">
<a href="http://www.iredmail.org" target="_blank">iRedMail web site</a>
// <a href="../index.html">Document Index</a>
</div><h1 id="how-to-migrate-old-iredmail-server-to-the-latest-stable-release">How to migrate old iRedMail server to the latest stable release</h1>
<div class="toc">
<ul>
<li><a href="#how-to-migrate-old-iredmail-server-to-the-latest-stable-release">How to migrate old iRedMail server to the latest stable release</a><ul>

View File

@ -14,7 +14,7 @@ p {
margin-bottom: 4px;
padding: 0;
}
h1 { font-size: 48px; }
h1 { font-size: 40px; }
h2 { font-size: 36px; padding-top: 24px;}
h3 { font-size: 24px; }
h4 { font-size: 21px; }
@ -251,7 +251,7 @@ pre, code {
padding: 5px 10px 5px 10px;
word-wrap: normal;
font-size: 14px;
line-height: 20px;
line-height: 25px;
}
code { padding: 1px 5px 1px 5px; }
pre>code {
@ -259,3 +259,41 @@ pre>code {
border: 0;
padding: 5px 10px 5px 0px;
}
/* A fixed navigation bar */
#navigation {
/*position: fixed;*/
top: 0;
width: 70%;
height: 35px;
/*
text-align: center;
*/
padding-top: 15px;
/*
color: #ffffff;
*/
/* Adds shadow to the bottom of the bar */
/*
-webkit-box-shadow: 0px 0px 8px 0px #000000;
-moz-box-shadow: 0px 0px 8px 0px #000000;
box-shadow: 0px 0px 8px 0px #000000;
*/
/* Adds the transparent background */
/*
background-color: #000000;
*/
}
#navigation a {
font-size: 20px;
/*
padding-left: 15px;
padding-right: 15px;
*/
text-decoration: none;
}
#navigation a:hover {
color: #0099ff;
}

View File

@ -4,9 +4,13 @@
<title> Password hashes</title>
<link href="../css/markdown.css" rel="stylesheet"></head>
</head>
<body>
<h1 id="password-hashes">Password hashes</h1>
<div id="navigation">
<a href="http://www.iredmail.org" target="_blank">iRedMail web site</a>
// <a href="../index.html">Document Index</a>
</div><h1 id="password-hashes">Password hashes</h1>
<h2 id="password-hashes-supported-by-iredmail">Password hashes supported by iRedMail</h2>
<p>iRedMail configures Postfix to use Dovecot as SASL authenticate server, so all
password schemes supported by Dovecot can be used in iRedMail. Please refer to

View File

@ -4,9 +4,13 @@
<title> Why append timestamp in maildir path</title>
<link href="../css/markdown.css" rel="stylesheet"></head>
</head>
<body>
<h1 id="why-append-timestamp-in-maildir-path">Why append timestamp in maildir path</h1>
<div id="navigation">
<a href="http://www.iredmail.org" target="_blank">iRedMail web site</a>
// <a href="../index.html">Document Index</a>
</div><h1 id="why-append-timestamp-in-maildir-path">Why append timestamp in maildir path</h1>
<p>iRedMail will append timestamp in maildir path by default, here's why.</p>
<p>Depends on the tools/scripts you used to create mail accounts, it's tunable
in scripts shipped within iRedMail and iRedAdmin (file <code>settings.py</code>, variable

View File

@ -4,9 +4,13 @@
<title> Allow user to send email without authentication </title>
<link href="../css/markdown.css" rel="stylesheet"></head>
</head>
<body>
<h1 id="allow-user-to-send-email-without-authentication">Allow user to send email without authentication</h1>
<div id="navigation">
<a href="http://www.iredmail.org" target="_blank">iRedMail web site</a>
// <a href="../index.html">Document Index</a>
</div><h1 id="allow-user-to-send-email-without-authentication">Allow user to send email without authentication</h1>
<div class="toc">
<ul>
<li><a href="#allow-user-to-send-email-without-authentication">Allow user to send email without authentication</a></li>

View File

@ -4,9 +4,13 @@
<title> Amavisd + SpamAssassin not working, no mail header (X-Spam-*) inserted.</title>
<link href="../css/markdown.css" rel="stylesheet"></head>
</head>
<body>
<h1 id="amavisd-spamassassin-not-working-no-mail-header-x-spam-inserted">Amavisd + SpamAssassin not working, no mail header (X-Spam-*) inserted.</h1>
<div id="navigation">
<a href="http://www.iredmail.org" target="_blank">iRedMail web site</a>
// <a href="../index.html">Document Index</a>
</div><h1 id="amavisd-spamassassin-not-working-no-mail-header-x-spam-inserted">Amavisd + SpamAssassin not working, no mail header (X-Spam-*) inserted.</h1>
<p>Amavisd has below setting in its config file <code>/etc/amavisd/amavisd.conf</code> by default:</p>
<pre><code>$sa_tag_level_deflt = 2.0;
</code></pre>

View File

@ -4,9 +4,13 @@
<title> Completely disable Amavisd + ClamAV + SpamAssassin</title>
<link href="../css/markdown.css" rel="stylesheet"></head>
</head>
<body>
<h1 id="completely-disable-amavisd-clamav-spamassassin">Completely disable Amavisd + ClamAV + SpamAssassin</h1>
<div id="navigation">
<a href="http://www.iredmail.org" target="_blank">iRedMail web site</a>
// <a href="../index.html">Document Index</a>
</div><h1 id="completely-disable-amavisd-clamav-spamassassin">Completely disable Amavisd + ClamAV + SpamAssassin</h1>
<p>In iRedMail, Amavisd provides below features:</p>
<ul>
<li>content-based spam scanning (invoke SpamAssassin)</li>

View File

@ -4,9 +4,25 @@
<title> Configure Thunderbird as mail client (IMAP, SMTP and global ldap address book)</title>
<link href="../css/markdown.css" rel="stylesheet"></head>
</head>
<body>
<h1 id="configure-thunderbird-as-mail-client-imap-smtp-and-global-ldap-address-book">Configure Thunderbird as mail client (IMAP, SMTP and global ldap address book)</h1>
<div id="navigation">
<a href="http://www.iredmail.org" target="_blank">iRedMail web site</a>
// <a href="../index.html">Document Index</a>
</div><h1 id="configure-thunderbird-as-mail-client-imap-smtp-and-global-ldap-address-book">Configure Thunderbird as mail client (IMAP, SMTP and global ldap address book)</h1>
<div class="toc">
<ul>
<li><a href="#configure-thunderbird-as-mail-client-imap-smtp-and-global-ldap-address-book">Configure Thunderbird as mail client (IMAP, SMTP and global ldap address book)</a><ul>
<li><a href="#create-new-mail-account">Create new mail account</a></li>
<li><a href="#configure-thunderbird-as-pop3-client">Configure Thunderbird as POP3 client</a></li>
<li><a href="#configure-thunderbird-as-imap-client">Configure Thunderbird as IMAP client</a></li>
<li><a href="#configure-thunderbird-to-send-mail-via-smtp">Configure Thunderbird to send mail via SMTP</a></li>
<li><a href="#use-openldap-as-global-ldap-address-book">Use OpenLDAP as Global LDAP Address Book</a></li>
</ul>
</li>
</ul>
</div>
<p>iRedMail provides POP3S (POP3 over TLS), IMAPS (IMAP over TLS), SMTPS (SMTP over TLS) for receiving and sending emails by default.</p>
<h2 id="create-new-mail-account">Create new mail account</h2>
<p>To create a new mail account with Thunderbird, please click menu: <code>File -&gt; New -&gt; Mail Account</code>.</p>

View File

@ -4,9 +4,13 @@
<title> Disable spam virus scanning for outgoing mails</title>
<link href="../css/markdown.css" rel="stylesheet"></head>
</head>
<body>
<h1 id="disable-spam-virus-scanning-for-outgoing-mails">Disable spam virus scanning for outgoing mails</h1>
<div id="navigation">
<a href="http://www.iredmail.org" target="_blank">iRedMail web site</a>
// <a href="../index.html">Document Index</a>
</div><h1 id="disable-spam-virus-scanning-for-outgoing-mails">Disable spam virus scanning for outgoing mails</h1>
<p>To disable spam/virus scanning for outgoing mails, you can add bypass settings in Amavisd config file: <code>/etc/amavisd/amavisd.conf</code> (RHEL/CentOS/Scientific Linux) or <code>/etc/amavis/conf.d/50-user</code> (Debian/Ubuntu) or <code>/usr/local/etc/amavisd.conf</code> (FreeBSD).</p>
<ul>
<li>bypass_spam_checks_maps</li>

View File

@ -4,9 +4,13 @@
<title> Enable SMTPS service (SMTP over SSL, port 465)</title>
<link href="../css/markdown.css" rel="stylesheet"></head>
</head>
<body>
<h1 id="enable-smtps-service-smtp-over-ssl-port-465">Enable SMTPS service (SMTP over SSL, port 465)</h1>
<div id="navigation">
<a href="http://www.iredmail.org" target="_blank">iRedMail web site</a>
// <a href="../index.html">Document Index</a>
</div><h1 id="enable-smtps-service-smtp-over-ssl-port-465">Enable SMTPS service (SMTP over SSL, port 465)</h1>
<div class="toc">
<ul>
<li><a href="#enable-smtps-service-smtp-over-ssl-port-465">Enable SMTPS service (SMTP over SSL, port 465)</a><ul>

View File

@ -4,9 +4,13 @@
<title> LDAP: Add an alias domain </title>
<link href="../css/markdown.css" rel="stylesheet"></head>
</head>
<body>
<h1 id="ldap-add-an-alias-domain">LDAP: Add an alias domain</h1>
<div id="navigation">
<a href="http://www.iredmail.org" target="_blank">iRedMail web site</a>
// <a href="../index.html">Document Index</a>
</div><h1 id="ldap-add-an-alias-domain">LDAP: Add an alias domain</h1>
<h2 id="what-an-alias-domain-is-used-for">What an alias domain is used for?</h2>
<p>Let's say you have a mail domain <code>example.com</code> hosted on your iRedMail server,
if you add domain name <code>domain.ltd</code> as an alias domain of <code>example.com</code>, all

View File

@ -4,9 +4,13 @@
<title> LDAP: Add a mail alias account </title>
<link href="../css/markdown.css" rel="stylesheet"></head>
</head>
<body>
<h1 id="ldap-add-a-mail-alias-account">LDAP: Add a mail alias account</h1>
<div id="navigation">
<a href="http://www.iredmail.org" target="_blank">iRedMail web site</a>
// <a href="../index.html">Document Index</a>
</div><h1 id="ldap-add-a-mail-alias-account">LDAP: Add a mail alias account</h1>
<ul>
<li>
<p>Log into phpLDAPadmin as LDAP root dn <code>cn=Manager</code> or <code>cn=vmailadmin</code>:<br />

View File

@ -4,9 +4,13 @@
<title> LDAP: Add a mail list account </title>
<link href="../css/markdown.css" rel="stylesheet"></head>
</head>
<body>
<h1 id="ldap-add-a-mail-list-account">LDAP: Add a mail list account</h1>
<div id="navigation">
<a href="http://www.iredmail.org" target="_blank">iRedMail web site</a>
// <a href="../index.html">Document Index</a>
</div><h1 id="ldap-add-a-mail-list-account">LDAP: Add a mail list account</h1>
<h2 id="add-mail-list-with-iredadmin-pro">Add mail list with iRedAdmin-Pro</h2>
<p>With iRedAdmin-Pro, you can easily add mail list account by click menu:
<code>Add -&gt; Mail List</code> in main navigation bar.</p>

View File

@ -4,9 +4,13 @@
<title> LDAP: User mail forwarding. </title>
<link href="../css/markdown.css" rel="stylesheet"></head>
</head>
<body>
<h1 id="ldap-user-mail-forwarding">LDAP: User mail forwarding.</h1>
<div id="navigation">
<a href="http://www.iredmail.org" target="_blank">iRedMail web site</a>
// <a href="../index.html">Document Index</a>
</div><h1 id="ldap-user-mail-forwarding">LDAP: User mail forwarding.</h1>
<h2 id="set-mail-forwarding-with-iredadmin-pro">Set mail forwarding with iRedAdmin-Pro</h2>
<p>With iRedAdmin-Pro, you can simply add mail forwarding addresses in user
profile page, under tab <code>Forwarding</code>.</p>

View File

@ -4,9 +4,13 @@
<title> Pipe incoming email for certain user to external script </title>
<link href="../css/markdown.css" rel="stylesheet"></head>
</head>
<body>
<h1 id="pipe-incoming-email-for-certain-user-to-external-script">Pipe incoming email for certain user to external script</h1>
<div id="navigation">
<a href="http://www.iredmail.org" target="_blank">iRedMail web site</a>
// <a href="../index.html">Document Index</a>
</div><h1 id="pipe-incoming-email-for-certain-user-to-external-script">Pipe incoming email for certain user to external script</h1>
<p>This tutorial explains how to pipe incoming email for certain user to external script.</p>
<h2 id="configure-postfix-to-use-your-external-script-as-transport">Configure Postfix to use your external script as transport</h2>
<p>To pipe incoming emails to external script, you must add your external script

View File

@ -4,9 +4,13 @@
<title> Quarantine clean mail into SQL database</title>
<link href="../css/markdown.css" rel="stylesheet"></head>
</head>
<body>
<h1 id="quarantine-clean-mail-into-sql-database">Quarantine clean mail into SQL database</h1>
<div id="navigation">
<a href="http://www.iredmail.org" target="_blank">iRedMail web site</a>
// <a href="../index.html">Document Index</a>
</div><h1 id="quarantine-clean-mail-into-sql-database">Quarantine clean mail into SQL database</h1>
<p>To quarantine clean mails into SQL database, please follow below steps:</p>
<h1 id="configure-amavisd-to-enable-quarantining">Configure Amavisd to enable quarantining</h1>
<ul>

View File

@ -4,9 +4,13 @@
<title> Force Dovecot to recalculate mailbox quota </title>
<link href="../css/markdown.css" rel="stylesheet"></head>
</head>
<body>
<h1 id="force-dovecot-to-recalculate-mailbox-quota">Force Dovecot to recalculate mailbox quota</h1>
<div id="navigation">
<a href="http://www.iredmail.org" target="_blank">iRedMail web site</a>
// <a href="../index.html">Document Index</a>
</div><h1 id="force-dovecot-to-recalculate-mailbox-quota">Force Dovecot to recalculate mailbox quota</h1>
<p>iRedMail enables dict quota since iRedMail-0.7.0, dict quota is recalculated
only if the quota goes below zero</p>
<ul>

View File

@ -4,9 +4,13 @@
<title> SQL: Create an mail alias account with SQL command line </title>
<link href="../css/markdown.css" rel="stylesheet"></head>
</head>
<body>
<h1 id="sql-create-an-mail-alias-account-with-sql-command-line">SQL: Create an mail alias account with SQL command line</h1>
<div id="navigation">
<a href="http://www.iredmail.org" target="_blank">iRedMail web site</a>
// <a href="../index.html">Document Index</a>
</div><h1 id="sql-create-an-mail-alias-account-with-sql-command-line">SQL: Create an mail alias account with SQL command line</h1>
<p>To create an mail alias account, you can simply insert a SQL record in table
<code>vmail.alias</code>. For example:</p>
<pre><code class="mysql">sql&gt; USE vmail;

View File

@ -4,9 +4,13 @@
<title> Store SpamAssassin bayes in SQL</title>
<link href="../css/markdown.css" rel="stylesheet"></head>
</head>
<body>
<h1 id="store-spamassassin-bayes-in-sql">Store SpamAssassin bayes in SQL</h1>
<div id="navigation">
<a href="http://www.iredmail.org" target="_blank">iRedMail web site</a>
// <a href="../index.html">Document Index</a>
</div><h1 id="store-spamassassin-bayes-in-sql">Store SpamAssassin bayes in SQL</h1>
<p><strong>THIS ARTICLE IS STILL A DRAFT, DO NOT APPLY IT IN PRODUCTION SERVER.</strong></p>
<h2 id="summary">Summary</h2>
<p>This article will guide you to configure related components to store

View File

@ -4,9 +4,13 @@
<title> Perform silent/unattended iRedMail installation</title>
<link href="../css/markdown.css" rel="stylesheet"></head>
</head>
<body>
<h1 id="perform-silentunattended-iredmail-installation">Perform silent/unattended iRedMail installation</h1>
<div id="navigation">
<a href="http://www.iredmail.org" target="_blank">iRedMail web site</a>
// <a href="../index.html">Document Index</a>
</div><h1 id="perform-silentunattended-iredmail-installation">Perform silent/unattended iRedMail installation</h1>
<p>iRedMail will store configrations in file iRedMail-x.y.z/config during
installation, and ask you whether to use it for installation directly
or create a new one.</p>

View File

@ -4,9 +4,11 @@
<title>iRedMail Documentations</title>
<link href="./css/markdown.css" rel="stylesheet"></head>
</head>
<body>
<h1 id="how-to">How to</h1>
<div id="navigation">
<a href="http://www.iredmail.org" target="_blank">iRedMail web site</a>
</div><h1 id="how-to">How to</h1>
<ul>
<li><a href="howto/allow.user.to.send.email.without.authentication.html"> Allow user to send email without authentication
</a></li>

View File

@ -4,9 +4,13 @@
<title> How to install SOGo on CentOS 6 with iRedMail (MySQL backend)</title>
<link href="../css/markdown.css" rel="stylesheet"></head>
</head>
<body>
<h1 id="how-to-install-sogo-on-centos-6-with-iredmail-mysql-backend">How to install SOGo on CentOS 6 with iRedMail (MySQL backend)</h1>
<div id="navigation">
<a href="http://www.iredmail.org" target="_blank">iRedMail web site</a>
// <a href="../index.html">Document Index</a>
</div><h1 id="how-to-install-sogo-on-centos-6-with-iredmail-mysql-backend">How to install SOGo on CentOS 6 with iRedMail (MySQL backend)</h1>
<h2 id="requirements">Requirements</h2>
<ul>
<li>A working iRedMail server (MySQL backend) on CentOS 6.</li>

View File

@ -4,9 +4,13 @@
<title> Turn on debug mode in Amavisd </title>
<link href="../css/markdown.css" rel="stylesheet"></head>
</head>
<body>
<h1 id="turn-on-debug-mode-in-amavisd">Turn on debug mode in Amavisd</h1>
<div id="navigation">
<a href="http://www.iredmail.org" target="_blank">iRedMail web site</a>
// <a href="../index.html">Document Index</a>
</div><h1 id="turn-on-debug-mode-in-amavisd">Turn on debug mode in Amavisd</h1>
<p>In Amavisd config file <code>/etc/amavisd/amavisd.conf</code>, change <code>$log_level</code>, then restart amavis service.</p>
<pre><code>$log_level = 5; # verbosity 0..5, -d
</code></pre>

View File

@ -4,9 +4,13 @@
<title> Turn on debug mode in Dovecot</title>
<link href="../css/markdown.css" rel="stylesheet"></head>
</head>
<body>
<h1 id="turn-on-debug-mode-in-dovecot">Turn on debug mode in Dovecot</h1>
<div id="navigation">
<a href="http://www.iredmail.org" target="_blank">iRedMail web site</a>
// <a href="../index.html">Document Index</a>
</div><h1 id="turn-on-debug-mode-in-dovecot">Turn on debug mode in Dovecot</h1>
<p>To turn on debug mode in Dovecot, please update Dovecot config file
<code>/etc/dovecot/dovecot.conf</code> (Linux/OpenBSD) or
<code>/usr/local/etc/dovecot/dovecot.conf</code> (FreeBSD), set <code>mail_debug</code> to <code>yes</code>:</p>

View File

@ -4,13 +4,19 @@
<title> Turn on debug mode in OpenLDAP </title>
<link href="../css/markdown.css" rel="stylesheet"></head>
</head>
<body>
<h1 id="turn-on-debug-mode-in-openldap">Turn on debug mode in OpenLDAP</h1>
<p>In OpenLDAP config file <code>slapd.conf</code>, update parameter <code>loglevel</code> to value <code>256</code>, then restart OpenLDAP service.
* On RHEL/CentOS and OpenBSD, it's <code>/etc/openldap/slapd.conf</code>
* On Debian/Ubuntu, it's <code>/etc/ldap/slapd.conf</code>
* On FreeBSD, it's <code>/usr/local/etc/openldap/slapd.conf</code></p>
<div id="navigation">
<a href="http://www.iredmail.org" target="_blank">iRedMail web site</a>
// <a href="../index.html">Document Index</a>
</div><h1 id="turn-on-debug-mode-in-openldap">Turn on debug mode in OpenLDAP</h1>
<p>In OpenLDAP config file <code>slapd.conf</code>, update parameter <code>loglevel</code> to value <code>256</code>, then restart OpenLDAP service.</p>
<ul>
<li>On RHEL/CentOS and OpenBSD, it's <code>/etc/openldap/slapd.conf</code></li>
<li>On Debian/Ubuntu, it's <code>/etc/ldap/slapd.conf</code></li>
<li>On FreeBSD, it's <code>/usr/local/etc/openldap/slapd.conf</code></li>
</ul>
<pre><code>loglevel 256
</code></pre>

View File

@ -47,10 +47,24 @@ html = """\
<title>%(title)s</title>
<link href="%(css)s" rel="stylesheet"></head>
</head>
<body>
""" % cmd_opts
# Add navigation items.
# Link to iRedMail.org
html += """
<div id="navigation">
<a href="http://www.iredmail.org" target="_blank">iRedMail web site</a>
"""
# Add link to index page in article pages.
if 'add_index_link' in cmd_opts:
html += """
// <a href="../index.html">Document Index</a>
"""
html += """</div>"""
# Read markdown file and render as HTML body
# Handle unicode characters with web.safeunicode
orig_content = web.safeunicode(open(filename).read())