From 3d18ded3f6a7df86662f339354cece63da0a5d9f Mon Sep 17 00:00:00 2001 From: Matt Date: Tue, 29 Oct 2024 17:11:53 -0700 Subject: [PATCH] Link to wpilib javadocs in ours (#1509) ![image](https://github.com/user-attachments/assets/d197b637-bf52-4a03-bf55-32a45fff8b06) --- photon-docs/build.gradle | 2 +- shared/javacommon.gradle | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/photon-docs/build.gradle b/photon-docs/build.gradle index 7ffabd3237..7c468c0c3e 100644 --- a/photon-docs/build.gradle +++ b/photon-docs/build.gradle @@ -217,7 +217,7 @@ task generateJavaDocs(type: Javadoc) { classpath = files(exportedProjects.collect { project(it).sourceSets.main.compileClasspath }) dependsOn project(':photon-core').writeCurrentVersion - options.links("https://docs.oracle.com/en/java/javase/17/docs/api/") + options.links "https://docs.oracle.com/en/java/javase/17/docs/api/", "https://github.wpilib.org/allwpilib/docs/release/java/" options.addStringOption("tag", "pre:a:Pre-Condition") options.addBooleanOption("Xdoclint:html,missing,reference,syntax", true) options.addBooleanOption('html5', true) diff --git a/shared/javacommon.gradle b/shared/javacommon.gradle index 4cfe76bfd2..cd659fbcf9 100644 --- a/shared/javacommon.gradle +++ b/shared/javacommon.gradle @@ -15,7 +15,10 @@ def javaBaseName = "_GROUP_org_photonvision_${baseArtifactId}_ID_${baseArtifactI def outputsFolder = file("$buildDir/outputs") javadoc { - options.encoding = 'UTF-8' + options { + encoding = 'UTF-8' + links "https://github.wpilib.org/allwpilib/docs/release/java/" + } } task sourcesJar(type: Jar, dependsOn: classes) {