mirror of https://github.com/grpc/grpc-java.git
Improve updating hosted JavaDoc for copy/pasting commands
This commit is contained in:
parent
397d8618a1
commit
27d848901f
|
|
@ -327,16 +327,17 @@ updated since last release. Make a new commit with description similar to
|
||||||
Update Hosted Javadoc
|
Update Hosted Javadoc
|
||||||
---------------------
|
---------------------
|
||||||
|
|
||||||
Download the released Javadoc JAR for the grpc-all project from Maven Central.
|
Now we need to update gh-pages with the new Javadoc:
|
||||||
Now we need to update gh-pages with that new Javadoc:
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git checkout gh-pages
|
git checkout gh-pages
|
||||||
rm -r javadoc/
|
rm -r javadoc/
|
||||||
unzip -d javadoc path/to/grpc-all-<VERSION>-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/
|
rm -r javadoc/META-INF/
|
||||||
git add -A javadoc
|
git add -A javadoc
|
||||||
git commit -m "Javadoc for <VERSION>"
|
git commit -m "Javadoc for $MAJOR.$MINOR.$PATCH"
|
||||||
```
|
```
|
||||||
|
|
||||||
Push gh-pages to the main repository and verify the current version is [live
|
Push gh-pages to the main repository and verify the current version is [live
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue