Skip to content

Commit 38f14f8

Browse files
committed
Implement PWA Support
1 parent 94bc6de commit 38f14f8

File tree

11 files changed

+60
-36
lines changed

11 files changed

+60
-36
lines changed

.github/workflows/CI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Install LaTeX
1717
run: |
1818
sudo apt-get update
19-
sudo apt install -y texlive-latex-recommended texlive-fonts-recommended texlive-latex-extra latexmk texlive-lang-greek texlive-luatex texlive-xetex texlive-fonts-extra dvipng librsvg2-bin
19+
sudo apt install -y texlive-latex-recommended texlive-fonts-recommended texlive-latex-extra latexmk texlive-lang-greek texlive-luatex texlive-xetex texlive-fonts-extra dvipng librsvg2-bin nodejs npm
2020
- name: Build HTML
2121
run: |
2222
make html

poetry.lock

Lines changed: 20 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ sphinxext-rediraffe = "==0.2.5"
3131
sphinxext-remoteliteralinclude = "==0.3.0"
3232
sphinxext-toptranslators = "==0.1.2"
3333
urllib3 = ">=1.26.6, <2.0.0"
34+
sphinxext-pwa = {git = "https://github.com/wpilibsuite/sphinxext-pwa.git", rev = "main"}
3435

3536
[tool.poetry.dev-dependencies]
3637

readthedocs.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,20 @@ formats:
99
- htmlzip
1010
- pdf
1111

12+
build:
13+
tools:
14+
nodejs: "16"
15+
16+
# Set the version of Python and other tools you might need
17+
build:
18+
os: ubuntu-20.04
19+
tools:
20+
python: "3.8"
21+
# You can also specify other tool versions:
22+
nodejs: "16"
23+
apt_packages:
24+
- librsvg2-bin
25+
1226
python:
13-
version: "3.8"
1427
install:
1528
- requirements: source/requirements.txt

source/_static/first-logo-256px.png

19.7 KB
Loading

source/_static/first-logo-512px.png

43.3 KB
Loading
30.7 KB
Loading

source/_static/touch-icon.png

30.1 KB
Loading

source/conf.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
"sphinxext.delta",
4444
"sphinxext.opengraph",
4545
"sphinxext.photofinish",
46+
"sphinxext.pwa",
4647
"sphinxext.rediraffe",
4748
"sphinxext.remoteliteralinclude",
4849
"sphinxext.toptranslators",
@@ -177,6 +178,17 @@
177178
# Use MathJax3 for better page loading times
178179
mathjax_path = "https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"
179180

181+
# PWA Specific Settings
182+
pwa_name = "FRC Docs"
183+
pwa_short_name = "FRC Docs"
184+
pwa_theme_color = "#003974"
185+
pwa_background_color = "#003974"
186+
pwa_icons = [
187+
["first-logo-256px.png", "256x256"],
188+
["first-logo-512px.png", "512x512"],
189+
]
190+
pwa_apple_icon = "_static/touch-icon.png"
191+
pwa_maskable_icon = "first-logo-maskable.png"
180192

181193
# -- Options for HTML output -------------------------------------------------
182194

@@ -198,7 +210,10 @@
198210

199211
# Specify canonical root
200212
# This tells search engines that this domain is preferred
201-
html_baseurl = "https://docs.wpilib.org/en/stable/"
213+
if os.getenv("TESTING"):
214+
html_baseurl = "http://localhost:8000/"
215+
else:
216+
html_baseurl = "https://frc-docs--1704.org.readthedocs.build/en/1704/"
202217

203218
html_theme_options = {
204219
"collapse_navigation": True,

source/docs/software/driverstation/manually-setting-the-driver-station-to-start-custom-dashboard.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ Set Driver Station to Default
1313

1414
Open the Driver Station software, click on the Setup tab and set the Dashboard setting to Default. **Then close the Driver Station!**
1515

16+
Locate Dashboard JAR file
17+
-------------------------
18+
19+
Find the location of the dashboard ``jar`` file.
20+
1621
Open DS Data Storage file
1722
-------------------------
1823

0 commit comments

Comments
 (0)