Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Commit

Permalink
chore: update cloud-rad doclet (#234)
Browse files Browse the repository at this point in the history
Updates cloud rad doc generation to use new doclet. Added the new doclet jar to cloud-devrel-kokoro-resources/docfx bucket
  • Loading branch information
eaball35 committed May 19, 2021
1 parent aa02c65 commit c9990f2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .kokoro/release/publish_javadoc11.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,12 @@ VERSION=$(grep ${NAME}: versions.txt | cut -d: -f3)
./gradlew javadocCombinedV3

# copy README to tmp_docs dir and rename index.md
cp README.md tmp_docs/index.md
cp README.md tmp_docs/docfx-yml/index.md

pushd tmp_docs
# copy CHANGELOG to docfx-yml dir and rename history.md
cp CHANGELOG.md tmp_docs/docfx-yml/history.md

pushd tmp_docs/docfx-yml/

# create metadata
python3 -m docuploader create-metadata \
Expand Down
5 changes: 3 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -337,11 +337,12 @@ test.dependsOn verifyGoogleJavaFormat
task javadocCombinedV3(type: Javadoc) {
source project.sourceSets.main.allJava
classpath = files(project.sourceSets.main.compileClasspath)
destinationDir = new File(projectDir, 'tmp_docs')
destinationDir = new File(projectDir, 'tmp_docs/docfx-yml')

options.addStringOption('encoding', 'UTF-8')
options.addStringOption("doclet", "com.microsoft.doclet.DocFxDoclet")
options.docletpath = [file(System.getenv('KOKORO_GFILE_DIR') + "/docfx-doclet-1.0-SNAPSHOT-jar-with-dependencies-172556.jar")]
options.addStringOption("projectname", "api-common")
options.docletpath = [file(System.getenv('KOKORO_GFILE_DIR') + "/java-docfx-doclet-1.0.jar")]
}

clean {
Expand Down

0 comments on commit c9990f2

Please sign in to comment.