-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master'
# Conflicts: # photon-core/src/main/java/org/photonvision/vision/camera/USBCameraSource.java
- Loading branch information
Showing
175 changed files
with
42,726 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
|
@@ -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] | ||
|
@@ -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 }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
Oops, something went wrong.