Skip to content

Commit

Permalink
Avoid disjoint lines
Browse files Browse the repository at this point in the history
  • Loading branch information
sciencewhiz committed Nov 22, 2024
1 parent b3b7815 commit 8f61f52
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ The ``LinearSystem`` class contains methods to easily create a model of a flywhe

.. remoteliteralinclude:: https://raw.githubusercontent.com/wpilibsuite/allwpilib/v2025.1.1-beta-1/wpilibcExamples/src/main/cpp/examples/StateSpaceFlywheel/cpp/Robot.cpp
:language: c++
:lines: 17,31-46
:lines: 31-46
:lineno-match:

.. tab-item:: Python
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,8 @@ In ``Robot.java``, this will run the scheduler every driver station update perio
.. remoteliteralinclude:: https://raw.githubusercontent.com/wpilibsuite/allwpilib/v2024.3.2/wpilibjExamples/src/main/java/edu/wpi/first/wpilibj/examples/hatchbottraditional/Robot.java
:language: java
:lines: 49-50,55-56
:lineno-match:
:lineno:
:lineno-start: 49

.. tab-item:: C++ (Source)
:sync: C++ (Source)
Expand Down
3 changes: 2 additions & 1 deletion source/docs/software/hardware-apis/misc/addressable-leds.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ After the length of the strip has been set, you'll have to create an ``Addressab
.. remoteliteralinclude:: https://raw.githubusercontent.com/wpilibsuite/allwpilib/v2024.3.2/wpilibcExamples/src/main/cpp/examples/AddressableLED/include/Robot.h
:language: c++
:lines: 12-12, 18-27
:lineno-match:
:lineno:
:lineno-start: 12

.. remoteliteralinclude:: https://raw.githubusercontent.com/wpilibsuite/allwpilib/v2024.3.2/wpilibcExamples/src/main/cpp/examples/AddressableLED/cpp/Robot.cpp
:language: c++
Expand Down
6 changes: 4 additions & 2 deletions source/docs/software/hardware-apis/pneumatics/solenoids.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ Double solenoids are controlled by the ``DoubleSolenoid`` class in WPILib ([Java
.. rli:: https://raw.githubusercontent.com/wpilibsuite/allwpilib/v2024.1.1-beta-3/wpilibjExamples/src/main/java/edu/wpi/first/wpilibj/examples/solenoid/Robot.java
:language: java
:lines: 100, 102
:lineno-match:
:lineno:
:lineno-start: 100

.. tab-item:: C++ (Header)
:sync: C++ (Header)
Expand All @@ -73,7 +74,8 @@ Double solenoids are controlled by the ``DoubleSolenoid`` class in WPILib ([Java
.. rli:: https://raw.githubusercontent.com/wpilibsuite/allwpilib/v2024.1.1-beta-4/wpilibcExamples/src/main/cpp/examples/Solenoid/cpp/Robot.cpp
:language: c++
:lines: 54, 56
:lineno-match:
:lineno:
:lineno-start: 54

## Toggling Solenoids

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -461,15 +461,17 @@ The sample robot in our examples will have an Xbox Controller on USB port 0 for
.. remoteliteralinclude:: https://raw.githubusercontent.com/wpilibsuite/allwpilib/v2025.1.1-beta-1/wpilibjExamples/src/main/java/edu/wpi/first/wpilibj/examples/gettingstarted/Robot.java
:language: java
:lines: 27-28,32-36
:lineno-match:
:lineno:
:lineno-start: 27

.. tab-item:: C++
:sync: c++

.. remoteliteralinclude:: https://raw.githubusercontent.com/wpilibsuite/allwpilib/v2025.1.1-beta-1/wpilibcExamples/src/main/cpp/examples/GettingStarted/cpp/Robot.cpp
:language: c++
:lines: 12-13,17-24
:lineno-match:
:lineno:
:lineno-start: 12

.. tab-item:: Python
:sync: python
Expand Down

0 comments on commit 8f61f52

Please sign in to comment.