Skip to content

Commit 27d8489

Browse files
committed
Improve updating hosted JavaDoc for copy/pasting commands
1 parent 397d861 commit 27d8489

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

RELEASING.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -327,16 +327,17 @@ updated since last release. Make a new commit with description similar to
327327
Update Hosted Javadoc
328328
---------------------
329329

330-
Download the released Javadoc JAR for the grpc-all project from Maven Central.
331-
Now we need to update gh-pages with that new Javadoc:
330+
Now we need to update gh-pages with the new Javadoc:
332331

333332
```bash
334333
git checkout gh-pages
335334
rm -r javadoc/
336-
unzip -d javadoc path/to/grpc-all-<VERSION>-javadoc.jar
335+
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"
336+
unzip -d javadoc grpc-all-javadoc.jar
337+
rm grpc-all-javadoc.jar
337338
rm -r javadoc/META-INF/
338339
git add -A javadoc
339-
git commit -m "Javadoc for <VERSION>"
340+
git commit -m "Javadoc for $MAJOR.$MINOR.$PATCH"
340341
```
341342

342343
Push gh-pages to the main repository and verify the current version is [live

0 commit comments

Comments
 (0)