Skip to content

Commit 79cf826

Browse files
wpietsjanc
authored andcommitted
docs: Fix the layout in multiple .rst files for the PDF output
Fixes formatting issues in the following categories: - Tutorials - External Links
1 parent 8ffe9da commit 79cf826

12 files changed

+38
-40
lines changed

docs/external_links.rst

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,6 @@ This page lists links to information, tutorial, articles, and posts on Apache My
1010
Helpful Tutorials and Tools
1111
---------------------------
1212

13-
- |sensor_app_link| : A detailed step-by-step guide on how to build your IoT Sensor Network using STM32 Blue Pill, nRF24L01, ESP8266, thethings.io, and Apache Mynewt.
14-
15-
.. |sensor_app_link| raw:: html
16-
17-
<a href="https://medium.com/@ly.lee/build-your-iot-sensor-network-stm32-blue-pill-nrf24l01-esp8266-apache-mynewt-thethings-io-ca7486523f5d" target="_blank">Sensor app and network tutorial</a>
18-
19-
- |ubuntu_vbox_link| : An Ubuntu VirtualBox with the complete Mynewt 1.6.0 source code + build tools for STM32 Blue Pill to go with the tutorial above. `
20-
21-
.. |ubuntu_vbox_link| raw:: html
22-
23-
<a href="https://github.com/lupyuen/stm32bluepill-mynewt-sensor/releases/tag/v1.0.0" target="_blank">Ubuntu VirtualBox with Source Code and Build Tools</a>
13+
- `Sensor app and network tutorial: <https://lupyuen.github.io/articles/build-your-iot-sensor-network-stm32-blue-pill-nrf24l01-esp8266-apache-mynewt-thethings-io>`_ A detailed step-by-step guide on how to build your IoT Sensor Network using STM32 Blue Pill, nRF24L01, ESP8266, thethings.io, and Apache Mynewt.
2414

15+
- `Ubuntu VirtualBox with Source Code and Build Tools: <https://github.com/lupyuen/stm32bluepill-mynewt-sensor/releases/tag/v1.0.0>`_ An Ubuntu VirtualBox with the complete Mynewt 1.6.0 source code + build tools for STM32 Blue Pill to go with the tutorial above.

docs/tutorials/blinky/blinky.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ Tutorials are available for the following boards:
4646
- :doc:`rbnano2`
4747
- :doc:`blinky_stm32f4disc`
4848
- :doc:`blinky_STM32F303`
49+
- :doc:`blinky_pin-wheel-mods`
4950

5051
We also have a tutorial that shows you how to add :doc:`blinky_console`.
5152

docs/tutorials/blinky/blinky_STM32F303.rst

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Mynewt to build your first *Hello World* application (Blinky) on a
99
target board. Once built using the *newt* tool, this application will
1010
blink the LED lights on the target board.
1111

12-
Create a project with a simple app that blinks an LED on the stmf303
12+
Create a project with a simple app that blinks an LED on the STM F303
1313
discovery board. In the process import some external libraries into your
1414
project. Download the application to the target and watch it blink!
1515

@@ -20,7 +20,7 @@ What you need
2020
- Laptop running Mac OSX.
2121
- It is assumed you have already installed newt tool.
2222
- It is assumed you already installed native tools as described
23-
`here <../get_started/native_tools.html>`__
23+
:doc:`here <../../get_started/native_install/native_tools>`
2424

2525
Also, we assume that you're familiar with UNIX shells. Let's gets
2626
started!
@@ -29,8 +29,8 @@ Create a project
2929
~~~~~~~~~~~~~~~~
3030

3131
Create a new project to hold your work. For a deeper understanding, you
32-
can read about project creation in `Get Started -- Creating Your First
33-
Project <../get_started/project_create.html>`__ or just follow the
32+
can read about project creation in :doc:`Get Started -- Creating Your First
33+
Project <../../get_started/project_create>` or just follow the
3434
commands below.
3535

3636
If you've already created a project from another tutorial, you can
@@ -168,16 +168,14 @@ Want more?
168168

169169
Want to make your board do something a little more exciting with the
170170
LEDs? Then try making the modifications to the Blinky app to make it a
171-
`pin-wheel app <pin-wheel-mods.html>`__ and you can light all the LEDs in
171+
:doc:`pin wheel app <blinky_pin-wheel-mods>` and you can light all the LEDs in
172172
a pin-wheel fashion.
173173

174174
We have more fun tutorials for you to get your hands dirty. Be bold and
175-
try other Blinky-like `tutorials <../tutorials/nRF52.html>`__ or try
176-
enabling additional functionality such as `remote
177-
comms <project-slinky.html>`__ on the current board.
175+
try other Blinky-like :doc:`tutorials <nRF52>` or try
176+
enabling additional functionality such as :doc:`remote comms <../slinky/project-slinky>` on the current board.
178177

179178
If you see anything missing or want to send us feedback, please do so by
180-
signing up for appropriate mailing lists on our `Community
181-
Page <../../community.html>`__.
179+
signing up for appropriate mailing lists on our `Community Page </community>`_
182180

183181
Keep on hacking and blinking!

docs/tutorials/blinky/blinky_pin-wheel-mods.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Objective
55
~~~~~~~~~~~~~~~
66

77

8-
Learn how to modify an existing app -- the `blinky <STM32F303.html>`__ app
8+
Learn how to modify an existing app -- the :doc:`blinky <blinky_STM32F303>` app
99
-- to light all the LEDs on the STM32F3 Discovery board.
1010

1111
What you need
@@ -14,7 +14,7 @@ What you need
1414
- Discovery kit with STM32F303VC MCU
1515
- Laptop running Mac OSX.
1616
- It is assumed you have already installed and run the
17-
`blinky <STM32F303.html>`__ app succesfully.
17+
:doc:`blinky <blinky_STM32F303>` app succesfully.
1818

1919
Since you've already successfully created your blinky app project,
2020
you'll need to modify only one file, main.c, in order to get this app
@@ -100,7 +100,6 @@ all lit, they should then go off in the same order. This should repeat
100100
continuously.
101101

102102
If you see anything missing or want to send us feedback, please do so by
103-
signing up for appropriate mailing lists on our `Community
104-
Page <../../community.html>`__.
103+
signing up for appropriate mailing lists on our `Community Page </community>`_.
105104

106105
Keep on hacking and blinking!

docs/tutorials/os_fundamentals/tasks_lesson.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,7 @@ expect when we set the ``work_task`` priority higher and lower than the
317317

318318
.. figure:: ../pics/task_lesson.png
319319
:alt: Task Scheduling
320+
:width: 360
320321

321322
Task Scheduling
322323

docs/tutorials/sensors/air_quality_sensor.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,13 +734,15 @@ Here's what your SenseAir board should look like once it's wired up:
734734

735735
.. figure:: ../pics/K30labeled.JPG
736736
:alt: SenseAir Wiring
737+
:width: 500
737738

738739
SenseAir Wiring
739740

740-
Now that you have that wired up, let's connect it to the nRF52DK board. Since we will be using the built-in UART, we can simply connect it to the pre-configured pins for TX (P.06) and RX (P.08). Here's what your board should look like once everything is connected:
741+
Now that you have that wired up, let's connect it to the nRF52DK board. Since we will be using the built-in UART, we can simply connect it to the pre-configured pins for TX (P.06) and RX (P.08). Here's what your board should look like once everything is connected:
741742

742743
.. figure:: ../pics/nrf52labeled.JPG
743744
:alt: SenseAir and nRF52DK Wiring
745+
:width: 500
744746

745747
SenseAir and nRF52DK Wiring
746748

docs/tutorials/sensors/sensor_bleprph_oic.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,11 +325,13 @@ from the Android App:
325325

326326
.. image:: ../pics/smart_controller_main.png
327327
:align: center
328+
:width: 270
328329

329330
1. Select ``Accelerometer`` to see the sensor data samples:
330331

331332
.. image:: ../pics/smart_controller_accelerometer.png
332333
:align: center
334+
:width: 270
333335

334336
2. Move your BNO055 sensor device around to see the values for the
335337
coordinates change.

docs/tutorials/sensors/sensor_nrf52_bno055.rst

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,7 @@ the following syscfg settings enabled:
126126
commands. The ``SENSOR_CLI`` setting, that specifies whether the
127127
``sensor`` shell command is enabled, is enabled by default.
128128

129-
1. Run the ``newt target create`` command, from your project base
130-
directory, to create the target. We name the target
131-
``nrf52_bno055_test``:
129+
1. Run the ``newt target create`` command, from your project base directory, to create the target. We name the target ``nrf52_bno055_test``:
132130

133131
.. code-block:: console
134132
@@ -137,8 +135,7 @@ directory, to create the target. We name the target
137135
Target targets/nrf52_bno055_test successfully created
138136
$
139137
140-
2. Run the ``newt target set`` command to set the app, bsp, and
141-
build\_profile variables for the target:
138+
2. Run the ``newt target set`` command to set the app, bsp, and build\_profile variables for the target:
142139

143140
.. code-block:: console
144141
@@ -150,8 +147,7 @@ build\_profile variables for the target:
150147
151148
$
152149
153-
3. Run the ``newt target set`` command to enable the ``I2C_0``,
154-
``BNO055_OFB``, and ``BBNO055_CLI`` syscfg settings:
150+
3. Run the ``newt target set`` command to enable the ``I2C_0``, ``BNO055_OFB``, and ``BBNO055_CLI`` syscfg settings:
155151

156152
.. code-block:: console
157153
@@ -201,8 +197,7 @@ Step 3: Building the Bootloader and Application Image
201197
Linking ~/dev/myproj/bin/targets/nrf52_boot/app/boot/mynewt/mynewt.elf
202198
Target successfully built: targets/nrf52_boot
203199
204-
2. Run the ``newt build nrf52_bno055_test`` command to build the
205-
sensors\_test application:
200+
2. Run the ``newt build nrf52_bno055_test`` command to build the sensors\_test application:
206201

207202
.. code-block:: console
208203
@@ -285,8 +280,7 @@ Step 6: Connecting the nRF52-DK Board to your Computer
285280
board to power the board and to load the bootloader and application
286281
image.
287282

288-
2. Turn the power on the board to ON. You should see the green LED
289-
light up on the board.
283+
2. Turn the power on the board to ON. You should see the green LED light up on the board.
290284

291285
Step 7: Loading the Bootloader and the Application Image
292286
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -300,8 +294,7 @@ Step 7: Loading the Bootloader and the Application Image
300294
Loading bootloader
301295
$
302296
303-
2. Run the ``newt load nrf52_bno055_test`` command to load the
304-
application image on to the board:
297+
2. Run the ``newt load nrf52_bno055_test`` command to load the application image on to the board:
305298

306299
.. code-block:: console
307300
@@ -578,4 +571,7 @@ with a sensor, We recommend that you:
578571
Overview <sensors>`
579572

580573
.. |Alt Layout - BNO055| image:: ../pics/BNO055_small.jpg
574+
:height: 350
575+
581576
.. |Alt Layout - NRF52_I2C| image:: ../pics/NRF52_I2C_small.jpg
577+
:height: 350

docs/tutorials/sensors/sensor_nrf52_bno055_oic.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,13 @@ from the Android App:
125125

126126
.. image:: ../pics/smart_controller_main.png
127127
:align: center
128+
:width: 300
128129

129130
1. Select ``Accelerometer`` to see the sensor data samples:
130131

131132
.. image:: ../pics/smart_controller_accelerometer.png
132133
:align: center
134+
:width: 300
133135

134136
2. Move your BNO055 sensor device around to see the values for the
135137
coordinates change.

docs/tutorials/sensors/sensor_nrf52_drv2605.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ the following syscfg settings enabled:
5757
the driver.
5858

5959
- ``DRV2605_EN_PIN``: The pin the driver needs to gpio in order to enable
60-
your DRV2605 device.
60+
your DRV2605 device.
6161

6262
- ``DRV2605_RATED_VOLTAGE``: I have no easy default for you here, it is
6363
entirelay based on your purchased LRA motor. See 8.5.2.1 Rated Voltage

0 commit comments

Comments
 (0)