From d60a127d0b24b5490542970f47d5a89fbd9df753 Mon Sep 17 00:00:00 2001 From: Dave Jones Date: Wed, 26 Jul 2017 19:28:43 +0100 Subject: [PATCH] Replace apt-get with apt and other miscellaneous changes --- docs/development.rst | 4 ++-- docs/faq.rst | 4 ++-- docs/installing.rst | 3 ++- docs/recipes.rst | 3 ++- docs/recipes_advanced.rst | 2 ++ 5 files changed, 10 insertions(+), 6 deletions(-) diff --git a/docs/development.rst b/docs/development.rst index 3dcc75c..8d64ab8 100644 --- a/docs/development.rst +++ b/docs/development.rst @@ -32,7 +32,7 @@ within a virtual Python environment: .. code-block:: console - $ sudo apt-get install lsb-release build-essential git git-core \ + $ sudo apt install lsb-release build-essential git git-core \ > exuberant-ctags virtualenvwrapper python-virtualenv python3-virtualenv \ > python-dev python3-dev $ cd @@ -89,7 +89,7 @@ command should install all required dependencies: .. code-block:: console - $ sudo apt-get install texlive-latex-recommended texlive-latex-extra \ + $ sudo apt install texlive-latex-recommended texlive-latex-extra \ texlive-fonts-recommended graphviz inkscape Once these are installed, you can use the "doc" target to build the diff --git a/docs/faq.rst b/docs/faq.rst index 839477c..618791f 100644 --- a/docs/faq.rst +++ b/docs/faq.rst @@ -65,7 +65,7 @@ example:: b = Button(17) b.when_pressed = pushed() -In the case above, when assigning to the ``when_pressed``, the thing that is +In the case above, when assigning to ``when_pressed``, the thing that is assigned is the *result of calling* the ``pushed`` function. Because ``pushed`` doesn't explicitly return anything, the result is ``None``. Hence this is equivalent to doing:: @@ -113,7 +113,7 @@ suppress the warnings you've got a couple of options: .. code-block:: console - $ GPIOZERO_PIN_FACTORY=pigpio python + $ GPIOZERO_PIN_FACTORY=pigpio python3 In this case no warning is issued because there's no fallback; either the specified factory loads or it fails in which case an :exc:`ImportError` will diff --git a/docs/installing.rst b/docs/installing.rst index 660a6aa..836a943 100644 --- a/docs/installing.rst +++ b/docs/installing.rst @@ -4,7 +4,8 @@ Installing GPIO Zero GPIO Zero is installed by default in `Raspbian Jessie`_ and `Raspbian x86`_, available from `raspberrypi.org`_. Follow these guides to installing on other -operating systems, including for PCs using the :doc:`remote GPIO ` feature. +operating systems, including for PCs using the :doc:`remote GPIO ` +feature. Raspberry Pi ============ diff --git a/docs/recipes.rst b/docs/recipes.rst index 7b3b25d..a399dad 100644 --- a/docs/recipes.rst +++ b/docs/recipes.rst @@ -167,7 +167,8 @@ controlled: .. literalinclude:: examples/led_board_2.py -See more :class:`LEDBoard` examples in :doc:`recipes_advanced`. +See more :class:`LEDBoard` examples in the :ref:`advanced LEDBoard recipes +`. LEDBarGraph =========== diff --git a/docs/recipes_advanced.rst b/docs/recipes_advanced.rst index 10e97f4..6ed634b 100644 --- a/docs/recipes_advanced.rst +++ b/docs/recipes_advanced.rst @@ -8,6 +8,8 @@ The following recipes demonstrate some of the capabilities of the GPIO Zero library. Please note that all recipes are written assuming Python 3. Recipes *may* work under Python 2, but no guarantees! +.. _ledboard-advanced: + LEDBoard ========