From 27d848901f5dcaa01511e4a498d63ee85555cfaf Mon Sep 17 00:00:00 2001 From: Eric Anderson Date: Thu, 10 Mar 2016 16:28:35 -0800 Subject: [PATCH] Improve updating hosted JavaDoc for copy/pasting commands --- RELEASING.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/RELEASING.md b/RELEASING.md index 43d1f6bc37..8e0e681653 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -327,16 +327,17 @@ updated since last release. Make a new commit with description similar to Update Hosted Javadoc --------------------- -Download the released Javadoc JAR for the grpc-all project from Maven Central. -Now we need to update gh-pages with that new Javadoc: +Now we need to update gh-pages with the new Javadoc: ```bash git checkout gh-pages rm -r javadoc/ -unzip -d javadoc path/to/grpc-all--javadoc.jar +wget -O grpc-all-javadoc.jar "http://search.maven.org/remotecontent?filepath=io/grpc/grpc-all/$MAJOR.$MINOR.$PATCH/grpc-all-$MAJOR.$MINOR.$PATCH-javadoc.jar" +unzip -d javadoc grpc-all-javadoc.jar +rm grpc-all-javadoc.jar rm -r javadoc/META-INF/ git add -A javadoc -git commit -m "Javadoc for " +git commit -m "Javadoc for $MAJOR.$MINOR.$PATCH" ``` Push gh-pages to the main repository and verify the current version is [live