Skip to content

Commit 70faa69

Browse files
committed
Docs build update
Adding page build files & final review edits. Removing code snippets for examples to fix build errors but will re-add them once the repo is public.
1 parent 818fe85 commit 70faa69

File tree

8 files changed

+59
-33
lines changed

8 files changed

+59
-33
lines changed

.github/workflows/mkdocs.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Run mkdocs
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
permissions:
8+
contents: write
9+
jobs:
10+
deploy:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v3
15+
16+
- name: Set up Python runtime
17+
uses: actions/setup-python@v4
18+
with:
19+
python-version: 3.x
20+
21+
- name: Install Python dependencies
22+
run: pip install mkdocs-monorepo-plugin mkdocs-redirects mkdocs-with-pdf weasyprint mkdocs-git-authors-plugin mkdocs-git-revision-date-localized-plugin mkdocs-git-committers-plugin-2 setuptools
23+
24+
# - name: Install Chrome
25+
# run: sudo apt install google-chrome-stable
26+
27+
# - run: pip uninstall -y beautifulsoup4
28+
# - run: pip install beautifulsoup4==4.9.3
29+
30+
- name: Set up build cache
31+
uses: actions/cache@v2
32+
with:
33+
key: ${{ github.ref }}
34+
path: .cache
35+
36+
- name: Install Insiders build
37+
env:
38+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
39+
run: pip install git+https://${GH_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git
40+
- run: mkdocs gh-deploy --force

docs/arduino_example.md

+2-24
Original file line numberDiff line numberDiff line change
@@ -47,23 +47,12 @@ This does require some manual definition/setup for pins in the code which the ex
4747

4848
This example uses the FastLED library to cycle the RGB LED on the Thing Plus through a rainbow. Open the code from your downloaded copy of the GitHub repository or copy the code below into a blank sketch. Make sure the FastLED Library is installed, select the board (ESP32S3 Dev Module) and the Port, and click the "Upload" button.
4949

50-
<!--
51-
??? "RGB LED Example"
52-
```
53-
--8<-- "https://raw.githubusercontent.com/sparkfun/SparkFun_Thing_Plus_ESP32-S3/main/Firmware/RGB_LED/RGB_LED.ino"
54-
```
55-
-->
50+
5651

5752
## I<sup>2</sup>C Scanner Power Control
5853

5954
This example shows how to toggle the peripheral power voltage supply on and off as well as scan for any I<sup>2</sup>C devices connected to the I<sup>2</sup>C bus/Qwiic connector. After uploading, open the [serial monitor](https://learn.sparkfun.com/tutorials/terminal-basics/arduino-serial-monitor-windows-mac-linux) with the baud set to **115200** and you should see a serial printout of the Fuel Gauge at 0x32 as well as any other devices connected to the Qwiic connector like the screenshot below shows. If you have a Qwiic board plugged in you should see the power LED on it blinking every second as the bus is powered on and off.
6055

61-
<!--
62-
??? "I2C Scanner Power Control Example"
63-
```
64-
--8<-- "https://raw.githubusercontent.com/sparkfun/SparkFun_Thing_Plus_ESP32-S3/main/Firmware/I2C_Scanner_PowerControl/I2C_Scanner_PowerControl.ino"
65-
```
66-
-->
6756

6857
<figure markdown>
6958
[![Serial printout of I2C scan.](./assets/img/I2C_Scanner_Output.jpg){ width="600"}](./assets/img/I2C_Scanner_Output.jpg "Click to enlarge")
@@ -75,20 +64,9 @@ The SD Card Detect example is a simple example that monitors the card detect pin
7564

7665
After uploading, you can open the serial monitor with the baud set to **115200** and it should print out either "Card Inserted" or "No SD Card" depending on whether or not a &micro;SD card is present.
7766

78-
<!--
79-
??? "SD Card Detect"
80-
```
81-
--8<-- "https://raw.githubusercontent.com/sparkfun/SparkFun_Thing_Plus_ESP32-S3/main/Firmware/SD_Card_Detect/SD_Card_Detect.ino"
82-
```
83-
-->
67+
8468

8569
## PSRAM Test
8670

8771
This example demonstrates how to enable and use PSRAM for RAM requests above a 1,000 byte threshold. The setup initializes PSRAM and prints out whether or not this was successful and then prints out available PSRAM space.
8872

89-
<!--
90-
??? "PSRAM Test Example"
91-
```
92-
--8<-- "https://raw.githubusercontent.com/sparkfun/SparkFun_Thing_Plus_ESP32-S3/main/Firmware/PSRAM_Test/PSRAM_Test.ino"
93-
```
94-
-->

docs/hardware_assembly.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
icon: material/cog
3+
---
4+
15
Now that we're familiar with the hardware on this Thing Plus board, it's time to connect it to our computer or battery power.
26

37
## Basic USB Assembly

docs/hardware_overview.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
icon: material/cog
3+
---
4+
15
Let's take a closer look at the ESP32-S3 module and other hardware present on this Thing Plus board.
26

37
## ESP32-S3 Module
@@ -88,7 +92,7 @@ The board has three solder jumpers labeled <b>PWR</b>, <b>CHG</b>, and <b>LP_CTL
8892
[![Photo highlighting solder jumpers.](./assets/img/Thing_Plus_ESP32S3-Jumpers.jpg){ width="600"}](./assets/img/Thing_Plus_ESP32S3-Jumpers.jpg "Click to enlarge")
8993
</figure>
9094

91-
The <b>LP_CTL</b> jumper controls how the Low Power and Peripherals power works. It is CLOSED by default to pull the power the RT9080 3.3V regulator's enable pin HIGH to enable peripheral power on the <b>3.3V_P</b> rail.
95+
The <b>LP_CTL</b> jumper controls how the Low Power and Peripherals power works. It is CLOSED by default to pull the power the RT9080 3.3V regulator's enable pin HIGH to enable peripheral power on the <b>3.3V_P</b> rail. When opened, the regulator's enable pin connects directly to ESP32 IO45 for users to control manually. Refer to "Peripheral Power Control" above for more information.
9296

9397
## Board Dimensions
9498

docs/introduction.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ icon: material/book-open-page-variant
1111
---
1212

1313
<figure markdown>
14-
![Product Thumbnail]()
14+
![Product Thumbnail](https://cdn.sparkfun.com/r/600-600/assets/parts/2/4/7/6/6/WRL-24408-ESP-32-S3-Feature.jpg)
1515
</figure></a>
1616

1717

1818

1919
- The SparkFun Thing Plus - ESP32-S3 features the powerful and versatile ESP32-S3 from espressif<sup>&trade;</sup>. The ESP32-S3 It includes a LiPo battery charger and fuel gauge, &micro;SD card slot, an addressable LED and more. The Thing Plus footprint breaks out all of the ESP32-S3's 23 GPIO pins to 0.1"-spaced PTH headers. The board also has a USB-C connector for primary power and programming, 2-pin JST connector for a LiPo battery, and a Qwiic connector to integrate it into SparkFun's [Qwiic ecosystem](https://www.sparkfun.com/qwiic).
2020

21-
The ESP32 WROOM-S3 is built around an Xtensa<sup>&reg;</sup> 32-bit LX7 processor with massive processing power that operates at up to 240 MHz. It supports both 2.4 GHz WiFi and Bluetooth<sup>&reg;</sup> 5 (LE) with a built-in PCB antenna. This version of the ESP32-S3 has 4MB Flash memory and 2MB of dynamic/PSRAM and the board also has with a &micro;SD card slot for those who need more storage space.
21+
The ESP32 WROOM-S3 is built around an Xtensa<sup>&reg;</sup> 32-bit LX7 processor with massive processing power that operates at up to 240 MHz. It supports both 2.4 GHz WiFi and Bluetooth<sup>&reg;</sup> 5 (LE) with a built-in PCB antenna. This version of the ESP32-S3 has 4MB Flash memory and 2MB of dynamic/PSRAM and the board also has a &micro;SD card slot for those who need more storage space.
2222

23-
The module has a host of peripherals that can be tied to nearly any GPIO pin including UART, I<sup>2</sup>C, SPI, LCD control, SDIO host, TWAI<sup>&reg;</sup> controller (compatible with ISO 11898-1, i.e., CAN Specification 2.), and more. The ESP32-S3 can run two USB ports simultaneously and can act as a USB host meaning you can connect USB peripherals like a keyboard or mouse to it in this configuration.
23+
The module has a host of peripherals that can be tied to nearly any GPIO pin including UART, I<sup>2</sup>C, SPI, LCD control, SDIO host, TWAI<sup>&reg;</sup> controller (compatible with ISO 11898-1, i.e., CAN Specification 2.), and more. The ESP32-S3 can run two USB ports simultaneously and can act as a USB host.
2424

2525
<center>
2626
[Purchase from SparkFun :fontawesome-solid-cart-plus:{ .heart }](https://www.sparkfun.com/products/24408){ .md-button .md-button--primary }

mkdocs.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,8 @@ nav:
202202
- Hardware Assembly: hardware_assembly.md
203203
- Software Setup:
204204
- Arduino Setup: software_setup.md
205-
- Arduino Example: arduino_example.md
206-
- Resources: resources_and_going_further.md
205+
- Arduino Examples: arduino_example.md
206+
- Resources: resources.md
207207
- Support:
208208
- Troubleshooting: troubleshooting.md
209209
- Submit Issues: github/file_issue.md

overrides/partials/nav.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@
6767
{{ item.render(nav_item, path, 1) }}
6868
{% endfor %}
6969

70-
<!-- Add Hard Copies to NAV menu -->
70+
<!-- Add Print View to NAV menu -->
7171
<li class="md-nav__item">
7272
<a href="/SparkFun_Thing_Plus_ESP32-S3/print_view/" class="md-nav__link">
7373
<span class="md-ellipsis">
74-
Hard Copies&nbsp;{% include ".icons/material/book-open-variant.svg" %}
74+
Print View&nbsp;{% include ".icons/material/book-open-variant.svg" %}
7575
</span>
7676
</a>
7777
</li>

overrides/partials/tabs.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<ul class="md-tabs__list" style="float: right;">
3636
<li class="md-tabs__item">
3737
<a href="/SparkFun_Thing_Plus_ESP32-S3/print_view/" class="md-tabs__link">
38-
Hard Copies 🖨️
38+
Print View 🖨️
3939
</a>
4040
</li>
4141
</ul>

0 commit comments

Comments
 (0)