Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' Includes fixups to quirk…
Browse files Browse the repository at this point in the history
…s selecting USB cam settables implementation

# Conflicts:
#	photon-core/src/main/java/org/photonvision/vision/camera/CameraQuirk.java
#	photon-core/src/main/java/org/photonvision/vision/camera/USBCameraSource.java
  • Loading branch information
gerth2 committed Jul 19, 2024
2 parents 27705ff + 9ad9b82 commit 7fbb93d
Show file tree
Hide file tree
Showing 177 changed files with 42,745 additions and 22 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
name: Build

on:
# Run on pushes to master and pushed tags, and on pull requests against master, but ignore the docs folder
push:
branches: [ master ]
tags:
- 'v*'
paths:
- '**'
- '!docs/**'
- '.github/**'
pull_request:
branches: [ master ]
paths:
- '**'
- '!docs/**'
- '.github/**'

jobs:
build-client:
Expand Down Expand Up @@ -101,24 +110,23 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
repository: 'PhotonVision/photonvision-docs.git'
ref: master
- uses: actions/setup-python@v5
with:
python-version: '3.9'
python-version: '3.11'
- name: Install dependencies
working-directory: docs
run: |
python -m pip install --upgrade pip
pip install sphinx sphinx_rtd_theme sphinx-tabs sphinxext-opengraph doc8
pip install -r requirements.txt
- name: Build the docs
working-directory: docs
run: |
make html
- uses: actions/upload-artifact@v4
with:
name: built-docs
path: build/html
path: docs/build/html
build-photonlib-host:
env:
MACOSX_DEPLOYMENT_TARGET: 13
Expand Down
13 changes: 11 additions & 2 deletions .github/workflows/lint-format.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
name: Lint and Format

on:
# Run on pushes to master and pushed tags, and on pull requests against master, but ignore the docs folder
push:
branches: [ master ]
tags:
- 'v*'
paths:
- '**'
- '!docs/**'
- '.github/**'
pull_request:
branches: [ master ]
paths:
- '**'
- '!docs/**'
- '.github/**'

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
Expand All @@ -26,9 +35,9 @@ jobs:
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: 3.11
- name: Install wpiformat
run: pip3 install wpiformat
run: pip3 install wpiformat==2024.37
- name: Run
run: wpiformat
- name: Check output
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
name: Documentation
name: Photon Code Documentation

on:
# Run on pushes to master and pushed tags, and on pull requests against master, but ignore the docs folder
push:
# For now, run on all commits to master
branches: [ master ]
# and also all tags starting with v
tags:
- 'v*'
paths:
- '**'
- '!docs/**'
- '.github/**'
pull_request:
branches: [ master ]
paths:
- '**'
- '!docs/**'
- '.github/**'

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
Expand Down Expand Up @@ -58,12 +67,12 @@ jobs:
- name: Build javadocs/doxygen
run: |
chmod +x gradlew
./gradlew docs:generateJavaDocs docs:doxygen
./gradlew photon-docs:generateJavaDocs photon-docs:doxygen
- uses: actions/upload-artifact@v4
with:
name: built-docs
path: docs/build/docs
path: photon-docs/build/docs

release:
needs: [build-client, run_docs]
Expand All @@ -76,6 +85,7 @@ jobs:

- run: find .
- name: copy file via ssh password
if: github.ref == 'refs/heads/master'
uses: appleboy/[email protected]
with:
host: ${{ secrets.WEBMASTER_SSH_HOST }}
Expand Down
46 changes: 46 additions & 0 deletions .github/workflows/photonvision-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: PhotonVision Sphinx Documentation Checks

on:
push:
branches: [ master ]
paths:
- 'docs/**'
- '.github/**'
pull_request:
branches: [ master ]
paths:
- 'docs/**'
- '.github/**'

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- uses: actions/setup-python@v4
with:
python-version: '3.11'

- name: Install and upgrade pip
run: python -m pip install --upgrade pip

- name: Install Python dependencies
working-directory: docs
run: |
pip install sphinx sphinx_rtd_theme sphinx-tabs sphinxext-opengraph doc8
pip install -r requirements.txt
- name: Check links
working-directory: docs
run: make linkcheck
continue-on-error: true

- name: Check lint
working-directory: docs
run: make lint

- name: Compile HTML
working-directory: docs
run: make html
8 changes: 8 additions & 0 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,16 @@ on:
branches: [ master ]
tags:
- 'v*'
paths:
- '**'
- '!docs/**'
- '.github/**'
pull_request:
branches: [ master ]
paths:
- '**'
- '!docs/**'
- '.github/**'

jobs:
buildAndDeploy:
Expand Down
28 changes: 28 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
version: 2

sphinx:
builder: html
configuration: docs/source/conf.py
fail_on_warning: true

build:
os: ubuntu-22.04
tools:
python: "3.11"
jobs:
post_checkout:
# Cancel building pull requests when there aren't changed in the docs directory or YAML file.
# You can add any other files or directories that you'd like here as well,
# like your docs requirements file, or other files that will change your docs build.
#
# If there are no changes (git diff exits with 0) we force the command to return with 183.
# This is a special exit code on Read the Docs that will cancel the build immediately.
- |
if [ "$READTHEDOCS_VERSION_TYPE" = "external" ] && git diff --quiet origin/master -- docs/ .readthedocs.yaml;
then
exit 183;
fi
python:
install:
- requirements: docs/requirements.txt
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import edu.wpi.first.toolchain.*

plugins {
id "com.diffplug.spotless" version "6.24.0"
id "edu.wpi.first.NativeUtils" version "2024.6.1" apply false
id "edu.wpi.first.NativeUtils" version "2024.7.2" apply false
id "edu.wpi.first.wpilib.repositories.WPILibRepositoriesPlugin" version "2020.2"
id "edu.wpi.first.GradleRIO" version "2024.3.2"
id 'edu.wpi.first.WpilibTools' version '1.3.0'
Expand All @@ -28,7 +28,7 @@ ext.allOutputsFolder = file("$project.buildDir/outputs")
apply from: "versioningHelper.gradle"

ext {
wpilibVersion = "2024.3.2-139-gfbfef85"
wpilibVersion = "2025.0.0-alpha-1"
wpimathVersion = wpilibVersion
openCVversion = "4.8.0-2"
joglVersion = "2.4.0"
Expand Down
11 changes: 11 additions & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
build/*
.DS_Store
.vscode/*
.idea/*
source/_build
source/_build
photon-docs/build
source/docs/_build

venv/*
.venv/*
16 changes: 16 additions & 0 deletions docs/.styleguide
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

modifiableFileExclude {
\.jpg$
\.jpeg$
\.png$
\.gif$
\.so$
\.pdf$
\.mp4$
\.dll$
\.webp$
\.ico$
\.rknn$
\.svg$
gradlew
}
Loading

0 comments on commit 7fbb93d

Please sign in to comment.