| 1 |
.. highlight:: console |
| 2 |
|
| 3 |
Installation |
| 4 |
============ |
| 5 |
|
| 6 |
This part of the documentation covers how to install the package. |
| 7 |
It is recommended to install the package in a virtual environment. |
| 8 |
|
| 9 |
|
| 10 |
Create virtual environment |
| 11 |
-------------------------- |
| 12 |
|
| 13 |
There are several packages/modules for creating python virtual environments. |
| 14 |
Here is a manual_ by the PyPA. |
| 15 |
|
| 16 |
|
| 17 |
Installation from PyPI |
| 18 |
---------------------- |
| 19 |
|
| 20 |
You can simply install the package from PyPI:: |
| 21 |
|
| 22 |
$ pip install rstcheck |
| 23 |
|
| 24 |
|
| 25 |
Extras |
| 26 |
~~~~~~ |
| 27 |
|
| 28 |
``rstcheck`` has extras which can be installed to activate optional functionality: |
| 29 |
|
| 30 |
- ``sphinx`` - To activate support for rst documents using the sphinx builder. |
| 31 |
- ``toml`` - To activate support for TOML files as configuration files. |
| 32 |
|
| 33 |
To install an extra simply add it in brackets like so:: |
| 34 |
|
| 35 |
$ pip install rstcheck[sphinx,toml] |
| 36 |
|
| 37 |
|
| 38 |
Installation from source |
| 39 |
------------------------ |
| 40 |
|
| 41 |
You can install ``rstcheck`` directly from a Git repository clone. |
| 42 |
This can be done either by cloning the repository and installing from the local clone:: |
| 43 |
|
| 44 |
$ git clone https://github.com/rstcheck/rstcheck.git |
| 45 |
$ cd rstcheck |
| 46 |
$ pip install . |
| 47 |
|
| 48 |
|
| 49 |
Or installing directly via git:: |
| 50 |
|
| 51 |
$ pip install git+https://github.com/rstcheck/rstcheck |
| 52 |
|
| 53 |
|
| 54 |
You can also download the current version as `tar.gz` or `zip` file, extract it and |
| 55 |
install it with pip like above. |
| 56 |
|
| 57 |
.. highlight:: default |
| 58 |
|
| 59 |
|
| 60 |
.. _manual: https://packaging.python.org/en/latest/guides/installing-using-pip-and-virtual-environments/ |