Skip to content

Commit 8192aba

Browse files
committed
Update links to Javadoc.
1 parent 8effb87 commit 8192aba

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

deploy_website.sh

+2-11
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
set -ex
44

55
REPO="[email protected]:square/retrofit.git"
6-
GROUP_ID="com.squareup.retrofit"
7-
ARTIFACT_ID="retrofit"
8-
96
DIR=temp-clone
107

118
# Delete any existing temporary website clone
@@ -20,18 +17,12 @@ cd $DIR
2017
# Checkout and track the gh-pages branch
2118
git checkout -t origin/gh-pages
2219

23-
# Delete everything
24-
rm -rf *
20+
# Delete everything that isn't versioned (1.x, 2.x)
21+
ls | grep -E -v '^\d+\.x$' | xargs rm -rf
2522

2623
# Copy website files from real repo
2724
cp -R ../website/* .
2825

29-
# Download the latest javadoc
30-
curl -L "https://search.maven.org/remote_content?g=$GROUP_ID&a=$ARTIFACT_ID&v=LATEST&c=javadoc" > javadoc.zip
31-
mkdir javadoc
32-
unzip javadoc.zip -d javadoc
33-
rm javadoc.zip
34-
3526
# Stage all files in git and create a commit
3627
git add .
3728
git add -u

website/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ <h3 id="license">License</h3>
194194
<li><a href="#license">License</a></li>
195195
</ul>
196196
<ul class="nav nav-pills nav-stacked secondary">
197-
<li><a href="javadoc/index.html">Javadoc</a></li>
197+
<li><a href="2.x/retrofit/">Javadoc</a></li>
198198
<li><a href="http://stackoverflow.com/questions/tagged/retrofit?sort=active">StackOverflow</a></li>
199199
</ul>
200200
</div>

0 commit comments

Comments
 (0)