view templates/downloads/index.html @ 469:39b44ed32913

menu: capitalize the menu options in nav bar This patch capitalize the first letter of the options in nav bar.
author Pulkit Goyal <7895pulkit@gmail.com>
date Thu, 08 Dec 2016 13:48:48 +0530
parents 8a0dad3adbf7
children 68ea82e8ff7c
line wrap: on
line source

{% extends "base.html" %}

{% block content %}

    <h1>Mercurial downloads</h1>
    <script language="javascript">
        var versions = Downloader.versions();
        var more = Downloader.maxversions &&
                   versions.length > Downloader.maxversions;

        // Show tables for Downloader.maxversions versions
        for (i in versions) {
            if (more && i >= Downloader.maxversions)
                break;
            // Need to localize this variable to closure it correctly
            var current = versions[i];
            document.write(Downloader.table(versions[i], function (o) {
                return o.version == current;
            }));
        }

        function exposeversions (node) {
            // Emit but do not render tables for remaining versions
            var html = ''
            for (i in versions) {
                if (i < Downloader.maxversions)
                    continue;
                // Need to localize this variable to closure it correctly
                var current = versions[i];
                html += Downloader.table(versions[i], function (o) {
                    return o.version == current;
                });
            }
            node.innerHTML = html;
        }

        if (more) {
            document.write('\
    <div onclick="exposeversions(this);">\
        <center id="more">[more versions]</center>\
    </div>\
    <br/>\
');
        }
    </script>

    <h5>Development Repositories</h5>
    <dl>
      <dt>Main</dt>
      <dd>The main development repository of the Mercurial maintainer
          <a href="https://www.mercurial-scm.org/wiki/mpm">Matt Mackall</a>
          can be found at <a href="https://www.mercurial-scm.org/repo/hg">
          https://www.mercurial-scm.org/repo/hg</a>.</dd>
      <dt>Committers</dt>
      <dd>The development repository of the Mercurial core contributors
          can be found at
          <a href="https://www.mercurial-scm.org/repo/hg-committed/">
          https://www.mercurial-scm.org/repo/hg-committed/</a>.</dd>
    </dl>
    <p class="dl-note">See
      <a href="https://www.mercurial-scm.org/wiki/DeveloperRepos">Developer
      Repositories</a> on the wiki for a full list.</p>

    <h5>Requirements</h5>
    <dl>
      <dt>Python</dt>
      <dd>Mercurial uses <a href="http://www.python.org">Python</a>
          (versions <em>2.6</em> through <em>2.7</em>).  Most
          ready-to-run Mercurial distributions include Python or use
          the Python that comes with your operating system.  When
          building from source you should confirm that an appropriate
          Python version is available.</dd>
    </dl>

    <h5>Older Releases</h5>
    <dl>
      <dt>Python versions<dt>
      <dd>For more information about version support, see
          <a href="https://www.mercurial-scm.org/wiki/SupportedPythonVersions">Supported
          Python Versions</a> on the wiki.</dd>
      <dt>Python 2.5</dt>
      <dd><a href="/release/mercurial-3.4.2.tar.gz">Mercurial 3.4.2</a>
          is the last release to support Python 2.5.  Use this if you
          need to run Mercurial on very old platforms and you cannot update
          your Python installation.</dd>
      <dt>Python 2.4</dt>
      <dd><a href="/release/mercurial-3.4.2.tar.gz">Mercurial 3.4.2</a>
          is the last release to support Python 2.4.  Use this if you
          need to run Mercurial on very old platforms and you cannot update
          your Python installation.</dd>
      <dt>Python 2.3</dt>
      <dd><a href="/release/mercurial-1.2.1.tar.gz">Mercurial 1.2.1</a>
          is the last release to support Python 2.3.  Use this if you
          need to run Mercurial on very old platforms and you cannot update
          your Python installation.</dd>
      <dt>Older source releases</dt>
      <dd><a href="/release/">All previous source releases</a> are available
          to download.</dd>
    </dl>

{% endblock %}
{% block sidebar %}
    <h3>Get started</h3>
    <p>Mercurial is written in Python with platform independence in mind.
    As a result, Mercurial is available on
    <a href="http://www.microsoft.com/windows">Microsoft Windows</a>,
    <a href="http://kernel.org">GNU/Linux</a>,
    <a href="http://www.apple.com">Mac OS X</a>,
    <a href="http://oracle.com/solaris">Solaris 11 Express</a> and others.
    You can either download a binary package for the system of your choice or
    build it from sources.</p>

    <p>Windows users are likely to enjoy the <a href="http://tortoisehg.org">TortoiseHg</a> 
    GUI the most. It integrates Mercurial directly into your explorer.</p>

    <p>Packages for common Linux, BSD and Solaris distributions can be
    installed from the system specific repositories</p>
    <p>
<pre>
# Debian/Ubuntu
$ apt-get install mercurial

# Fedora
$ yum install mercurial

# Gentoo
$ emerge mercurial

# Mac OS (homebrew)
$ brew install mercurial

# FreeBSD
$ cd /usr/ports/devel/mercurial
$ make install

# Solaris 11 Express
$ pkg install SUNWmercurial
 </pre>
 </p>
{% endblock %}