From fdcaef18685d26556b4d3d2a17626fb49ab80f7c Mon Sep 17 00:00:00 2001 From: Jan Dittberner Date: Sat, 31 May 2014 13:25:39 +0200 Subject: [PATCH] move installation documentation - move installation documentation from README.rst to docs/install.rst --- README.rst | 49 +++------------------------------- docs/index.rst | 2 ++ docs/install.rst | 68 +++++++++++++++++++++++++++++++++++++++++++++++- 3 files changed, 73 insertions(+), 46 deletions(-) diff --git a/README.rst b/README.rst index a7fff78..97c5c6d 100644 --- a/README.rst +++ b/README.rst @@ -4,49 +4,8 @@ gvaldap This is the GNUViech Admin LDAP administration tool project. -Working Environment -=================== +GNUViech Admin is a suite of tools for server management used for hosting +customer management at `Jan Dittberner IT-Consulting & -Solutions +`_. -You have several options in setting up your working environment. We recommend -using virtualenv to separate the dependencies of your project from your -system's python environment. If on Linux or Mac OS X, you can also use -virtualenvwrapper to help manage multiple virtualenvs across different -projects. - -Virtualenv Only ---------------- - -First, make sure you are using virtualenv (http://www.virtualenv.org). Once -that's installed, create your virtualenv:: - - $ virtualenv --distribute gvaldap - -You will also need to ensure that the virtualenv has the project directory -added to the path. Adding the project directory will allow `django-admin.py` to -be able to change settings using the `--settings` flag. - -Virtualenv with virtualenvwrapper ------------------------------------- - -In Linux and Mac OSX, you can install virtualenvwrapper -(http://virtualenvwrapper.readthedocs.org/en/latest/), which will take care of -managing your virtual environments and adding the project path to the -`site-directory` for you:: - - $ mkdir gvaldap - $ mkvirtualenv -a gvaldap gvaldap-dev - $ cd gvaldap && add2virtualenv `pwd` - - -Installation of Dependencies -============================= - -Depending on where you are installing dependencies: - -In development:: - - $ pip install -r requirements/local.txt - -For production:: - - $ pip install -r requirements.txt +Read the :doc:`Installation instructions ` to get started locally. diff --git a/docs/index.rst b/docs/index.rst index 5716510..0bf07e1 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -3,6 +3,8 @@ You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. +.. include:: ../README.rst + Welcome to gvaldap's documentation! ==================================== diff --git a/docs/install.rst b/docs/install.rst index 7ebed79..f0cb69d 100644 --- a/docs/install.rst +++ b/docs/install.rst @@ -1,4 +1,70 @@ +.. index:: installation + +======= Install ======= -This is where you write how to get a new laptop to run this project. +Working Environment +=================== + +You have several options in setting up your working environment. We recommend +using virtualenv to separate the dependencies of your project from your +system's python environment. If on Linux or Mac OS X, you can also use +virtualenvwrapper to help manage multiple virtualenvs across different +projects. + +.. index:: virtualenv + +Virtualenv Only +--------------- + +First, make sure you are using `virtualenv`_. Once that's installed, create +your virtualenv: + +.. code-block:: sh + + $ virtualenv --distribute gvaldap + +.. _virtualenv: https://virtualenv.pypa.io/en/latest/ + +You will also need to ensure that the virtualenv has the project directory +added to the path. Adding the project directory will allow `django-admin.py` to +be able to change settings using the `--settings` flag. + +.. index:: virtualenvwrapper + +Virtualenv with virtualenvwrapper +------------------------------------ + +In Linux and Mac OSX, you can install `virtualenvwrapper +`_, which will take care +of managing your virtual environments and adding the project path to the +`site-directory` for you: + +.. code-block:: sh + + $ mkdir gvaldap + $ mkvirtualenv -a gvaldap gvaldap-dev + $ cd gvaldap && add2virtualenv `pwd` + + +.. index:: pip, requirements, dependencies + +Installation of Dependencies +============================= + +Depending on where you are installing dependencies: + +In development: + +.. code-block:: sh + + $ pip install -r requirements/local.txt + +For production: + +.. code-block:: sh + + $ pip install -r requirements.txt + +.. index:: celery, worker, ldap queue