Skip to content

Commit

Permalink
Update path to apidocs for the change in `maven-javadoc-plugin-3.10…
Browse files Browse the repository at this point in the history
….0`.

This should fix Javadoc snapshots.

Also, remove some Javadoc munging that hasn't had any effect for a while now.

Fixes #1343

RELNOTES=n/a
PiperOrigin-RevId: 681051228
  • Loading branch information
cpovirk authored and Google Java Core Libraries committed Oct 1, 2024
1 parent 7547b9b commit 6f31d76
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions util/generate-latest-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ else
fi

mvn javadoc:aggregate
perl -ni -e 'print unless /Tolerant.*Comparison/ || /SubjectBuilderCallback/ || /UsingCorrespondence/ || /AsIterable/ || /Correspondence[.][A-Z]/ || /FluentAssertion/ || /PathSubject/ || /Re2jSubjects/ || /Ordered/' target/site/apidocs/allclasses-frame.html
find target/site/apidocs -name '*.html' | xargs perl -077pi -e 's#<li class="blockList"><a name="nested.classes.inherited.from.class.com.google.common.truth.\w*Subject">.*?</li>##msg; if (m#<!-- ======== NESTED CLASS SUMMARY ======== -->(.*?)(?=<!-- =)#ms) { if ($1 !~ m#nested.classes.inherited.from|memberSummary#) { s#<!-- ======== NESTED CLASS SUMMARY ======== -->.*?(?=<!-- =)##msg; } }'
target_dir="$(pwd)/target"
cd ${target_dir}
rm -rf gh-pages
Expand All @@ -43,7 +41,7 @@ if [[ -z "${RELEASE_VERSION:-}" ]]; then
fi
api_version_dir="${target_dir}/gh-pages/${version_subdir}"
git rm -rf ${api_version_dir} || true
cp -ar ${target_dir}/site/apidocs ${api_version_dir}
cp -ar ${target_dir}/reports/apidocs ${api_version_dir}
git add -A -f ${api_version_dir}
git commit -m "${commit_message}"
git push -fq origin gh-pages > /dev/null
Expand Down

0 comments on commit 6f31d76

Please sign in to comment.