summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Bayliss <christopher.j.bayliss@gmail.com>2014-09-19 13:00:47 +1000
committerChristopher Bayliss <christopher.j.bayliss@gmail.com>2014-09-19 13:00:47 +1000
commiteff017eca515bfc181f9f42b33ff1020be936fc9 (patch)
tree57fa5d27bc67f0edff8e71575c26b02d27d02fb8
parent45a740a3d408008e53c48ba04a5441f40b7dfc47 (diff)
Fixed code examples
-rw-r--r--README.rst20
1 files changed, 7 insertions, 13 deletions
diff --git a/README.rst b/README.rst
index 04aa086..d10773e 100644
--- a/README.rst
+++ b/README.rst
@@ -44,15 +44,13 @@ Build LDTP on Linux
First checkout ldtp from github and cd into ldtp2.
-.. code-block:: none
- git clone https://github.com/ldtp/ldtp2.git
- cd ldtp2/
+ ``git clone https://github.com/ldtp/ldtp2.git``
+ ``cd ldtp2/``
Then build and install.
-.. code-block:: none
- python setup.py build
- sudo python setup.py build
+ ``python setup.py build``
+ ``sudo python setup.py build``
Note: If your GNOME version is less than or equal to 2.24, then use LDTPv1 (1.7.x)
@@ -61,16 +59,12 @@ Writing tests
It is best to read the documentation, so first cd into the doc directory.
-.. code-block:: none
- cd ldtp2/doc/
+ ``cd ldtp2/doc/``
Then you can either read ldtp-tutorial.rst in you favorite text editor or build
-a pdf.
+a pdf. First install ``rst2pdf``, then run:
-.. code-block:: none
- yum install rst2pdf #or
- apt-get update; apt-get install rst2pdf
- rst2pdf ldtp-tutorial.rst
+ ``rst2pdf ldtp-tutorial.rst``
Then open the pdf in your favorite pdf viewer.