Return-Path: X-Original-To: apmail-couchdb-commits-archive@www.apache.org Delivered-To: apmail-couchdb-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3F846F38B for ; Tue, 1 Oct 2013 13:47:06 +0000 (UTC) Received: (qmail 81983 invoked by uid 500); 1 Oct 2013 13:46:37 -0000 Delivered-To: apmail-couchdb-commits-archive@couchdb.apache.org Received: (qmail 81566 invoked by uid 500); 1 Oct 2013 13:46:30 -0000 Mailing-List: contact commits-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list commits@couchdb.apache.org Received: (qmail 80493 invoked by uid 99); 1 Oct 2013 13:46:13 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Oct 2013 13:46:13 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 3642C8AC800; Tue, 1 Oct 2013 13:46:12 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: deathbear@apache.org To: commits@couchdb.apache.org Date: Tue, 01 Oct 2013 13:46:23 -0000 Message-Id: In-Reply-To: <088b553bf2854e5f8b45d967c847f1e2@git.apache.org> References: <088b553bf2854e5f8b45d967c847f1e2@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [13/50] [abbrv] git commit: updated refs/heads/replicator-redesign to 066d69b Add download page. Fixes COUCHDB-906 Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/a16de046 Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/a16de046 Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/a16de046 Branch: refs/heads/replicator-redesign Commit: a16de04618620e293f74992061ba29569ac3da2c Parents: 1449a37 Author: Alexander Shorin Authored: Mon Sep 2 03:25:15 2013 +0400 Committer: Alexander Shorin Committed: Fri Sep 27 22:01:48 2013 +0400 ---------------------------------------------------------------------- share/doc/build/Makefile.am | 1 + share/doc/src/conf.py | 8 ++++- share/doc/templates/help.html | 1 + share/doc/templates/pages/download.html | 48 ++++++++++++++++++++++++++++ 4 files changed, 57 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb/blob/a16de046/share/doc/build/Makefile.am ---------------------------------------------------------------------- diff --git a/share/doc/build/Makefile.am b/share/doc/build/Makefile.am index dcc1150..16ed5d6 100644 --- a/share/doc/build/Makefile.am +++ b/share/doc/build/Makefile.am @@ -391,6 +391,7 @@ src_files = \ src_files_html = \ ../static/rtd.css \ + ../templates/pages/download.html \ ../templates/help.html \ ../templates/searchbox.html \ ../templates/utilities.html http://git-wip-us.apache.org/repos/asf/couchdb/blob/a16de046/share/doc/src/conf.py ---------------------------------------------------------------------- diff --git a/share/doc/src/conf.py b/share/doc/src/conf.py index 04b7079..7c49bbf 100644 --- a/share/doc/src/conf.py +++ b/share/doc/src/conf.py @@ -90,6 +90,12 @@ html_favicon = "../images/favicon.ico" html_use_index = False +html_additional_pages = { + 'download': 'pages/download.html' +} + +html_context = {} + html_sidebars = { "**": [ "searchbox.html", @@ -133,7 +139,7 @@ extlinks = { github_project = 'apache/couchdb' -github_branch = 'master' +html_context['git_branch'] = github_branch = 'master' github_docs_path = 'share/doc/src' http://git-wip-us.apache.org/repos/asf/couchdb/blob/a16de046/share/doc/templates/help.html ---------------------------------------------------------------------- diff --git a/share/doc/templates/help.html b/share/doc/templates/help.html index fcc75c5..be0cb91 100644 --- a/share/doc/templates/help.html +++ b/share/doc/templates/help.html @@ -21,6 +21,7 @@ specific language governing permissions and limitations under the License.
  • Mailing Lists
  • IRC
  • Issues
  • +
  • Download
  • {%- if github_show_url %}
  • {{ _('Show on GitHub') }}
  • http://git-wip-us.apache.org/repos/asf/couchdb/blob/a16de046/share/doc/templates/pages/download.html ---------------------------------------------------------------------- diff --git a/share/doc/templates/pages/download.html b/share/doc/templates/pages/download.html new file mode 100644 index 0000000..76fe93d --- /dev/null +++ b/share/doc/templates/pages/download.html @@ -0,0 +1,48 @@ + + +{% extends "layout.html" %} +{% set title = 'Download' %} +{% set url = 'https://media.readthedocs.org/%s/couchdb/%s/couchdb.%s' %} +{% if git_branch == 'master' %} + {% set rtd_ver = 'latest' %} +{% else %} + {% set rtd_ver = git_branch %} +{% endif %} + +{% block body %} +

    Download Apache CouchDB™ {{ release }} Documentation

    + +

    To download an archive containing all the documents for this version of +CouchDB in one of various formats, follow one of links in this table

    + + + + + + + + + + + + + + +
    PDF (A4 paper size)Download (~1 MB)
    HTMLDownload (~5 MB)
    EPUBDownload (~1 MB)
    + +

    These archives contain all the content of the documentation.

    + +{% endblock %}