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

Commit

Permalink
chore: update cloud-rad doclet (#1387)
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 authored May 19, 2021
1 parent 4e9a59a commit 687c3cf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
9 changes: 6 additions & 3 deletions .kokoro/release/publish_javadoc11.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,13 @@ VERSION=$(grep ${NAME}: versions.txt | cut -d: -f3)
# build the docs
./gradlew javadocCombinedV3

# copy README to tmp_docs dir and rename index.md
cp README.md tmp_docs/index.md
# copy README to docfx-yml dir and rename 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 @@ -425,11 +425,12 @@ clean {
task javadocCombinedV3(type: Javadoc) {
source subprojects.collect {project -> project.sourceSets.main.allJava }
classpath = files(subprojects.collect {project -> 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", "gax")
options.docletpath = [file(System.getenv('KOKORO_GFILE_DIR') + "/java-docfx-doclet-1.0.jar")]
}

clean {
Expand Down

0 comments on commit 687c3cf

Please sign in to comment.