Skip to content

Commit 5ae8ee0

Browse files
authored
[build] use local opencv docs element-list (#8633)
Fixes opencv cloudflare blocking gradle javadoc builds
1 parent d9eba4b commit 5ae8ee0

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

docs/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,9 @@ configurations {
152152
task generateJavaDocs(type: Javadoc) {
153153
classpath += project(":wpilibj").sourceSets.main.compileClasspath
154154
options.links("https://docs.oracle.com/en/java/javase/17/docs/api/")
155-
options.links("https://docs.opencv.org/4.x/javadoc/")
155+
// workaround for opencv site blocking javadoc tool. If the link is changed,
156+
// docs/opencv/element-list must be redownloaded
157+
options.linksOffline("https://docs.opencv.org/4.10.0/javadoc/", "opencv")
156158
options.addStringOption("tag", "pre:a:Pre-Condition")
157159
options.addBooleanOption("Xdoclint/package:" +
158160
// TODO: v Document these, then remove them from the list

docs/opencv/element-list

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
org.opencv.aruco
2+
org.opencv.bgsegm
3+
org.opencv.bioinspired
4+
org.opencv.calib3d
5+
org.opencv.core
6+
org.opencv.dnn
7+
org.opencv.dnn_superres
8+
org.opencv.face
9+
org.opencv.features2d
10+
org.opencv.highgui
11+
org.opencv.img_hash
12+
org.opencv.imgcodecs
13+
org.opencv.imgproc
14+
org.opencv.ml
15+
org.opencv.objdetect
16+
org.opencv.osgi
17+
org.opencv.phase_unwrapping
18+
org.opencv.photo
19+
org.opencv.plot
20+
org.opencv.structured_light
21+
org.opencv.text
22+
org.opencv.tracking
23+
org.opencv.utils
24+
org.opencv.video
25+
org.opencv.videoio
26+
org.opencv.wechat_qrcode
27+
org.opencv.xfeatures2d
28+
org.opencv.ximgproc
29+
org.opencv.xphoto

0 commit comments

Comments
 (0)