Skip to content

Commit

Permalink
implemented tab support
Browse files Browse the repository at this point in the history
  • Loading branch information
Daltz333 committed Apr 6, 2019
1 parent a0be6ca commit 873edc9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 16 deletions.
24 changes: 11 additions & 13 deletions source/Pneumatics/pneumatics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,23 +46,21 @@ construct a Solenoid object, simply pass the desired port number
set the value of the solenoid call set(true) to enable or set(false) to
disable the solenoid output.

C++

::
.. tabs::

frc::Solenoid exampleSolenoid {1};
.. code-tab:: c++

exampleSolenoid.Set(true);
exampleSolenoid.Set(false);
frc::Solenoid exampleSolenoid {1};

Java
exampleSolenoid.Set(true);
exampleSolenoid.Set(false);

::
.. code-tab:: java

Solenoid exampleSolenoid = new Solenoid(1);
Solenoid exampleSolenoid = new Solenoid(1);

exampleSolenoid.set(true);
exampleSolenoid.set(false);
exampleSolenoid.set(true);
exampleSolenoid.set(false);

Double Solenoids in WPILib
~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand All @@ -77,7 +75,7 @@ be passed to the DoubleSolenoid if teams have a non-standard PCM CAN ID

.. tabs::

.. code-tab:: C++
.. code-tab:: c++

frc::DoubleSolenoid exampleDouble {1, 2};
frc::DoubleSolenoid exampleDouble {/* The PCM CAN ID */ 9, 1, 2};
Expand All @@ -86,7 +84,7 @@ be passed to the DoubleSolenoid if teams have a non-standard PCM CAN ID
exampleDouble.Set(frc::DoubleSolenoid::Value::kForward);
exampleDouble.Set(frc::DoubleSolenoid::Value::kReverse);

.. code-tab:: Java
.. code-tab:: java

import static edu.wpi.first.wpilibj.DoubleSolenoid.Value.*;

Expand Down
1 change: 0 additions & 1 deletion source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = ['sphinx_tabs.tabs']

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']

Expand Down
4 changes: 2 additions & 2 deletions source/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
sphinx_rtd_theme
sphinx==2.0.0
sphinx-tabs==1.1.2
sphinx
sphinx-tabs==1.1.10

0 comments on commit 873edc9

Please sign in to comment.