From 8a4b81cc0b68dfff804f0abb7f03175cffccf9fe Mon Sep 17 00:00:00 2001 From: Valentin Haenel Date: Tue, 26 Mar 2013 00:46:59 +0100 Subject: use proper synatx highlighting for shell commands --- doc/source/intro.rst | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/doc/source/intro.rst b/doc/source/intro.rst index cbe10c16..90ccea9e 100644 --- a/doc/source/intro.rst +++ b/doc/source/intro.rst @@ -36,9 +36,9 @@ Installing GitPython is easily done using `setuptools`_. Assuming it is installed, just run the following from the command-line: -.. sourcecode:: none +.. sourcecode:: console - # easy_install GitPython + $ easy_install GitPython This command will download the latest version of GitPython from the `Python Package Index `_ and install it @@ -54,9 +54,9 @@ here: Alternatively, you can install from the distribution using the ``setup.py`` script: -.. sourcecode:: none +.. sourcecode:: console - # python setup.py install + $ python setup.py install .. note:: In this case, you have to manually install `GitDB`_ and `async`_ as well. It would be recommended to use the :ref:`git source repository ` in that case. @@ -82,16 +82,22 @@ GitPython's git repo is available on GitHub, which can be browsed at: * https://github.com/gitpython-developers/GitPython -and cloned using:: +and cloned using: + +.. sourcecode:: console $ git clone git://github.com/gitpython-developers/GitPython.git git-python -Initialize all submodules to obtain the required dependencies with:: +Initialize all submodules to obtain the required dependencies with: + +.. sourcecode:: console $ cd git-python $ git submodule update --init --recursive -Finally verify the installation by running the `nose powered `_ unit tests:: +Finally verify the installation by running the `nose powered `_ unit tests: + +.. sourcecode:: console $ nosetests -- cgit v1.2.3