Skip to content

Commit 000a728

Browse files
committed
Update links to Javadoc.
1 parent a35c785 commit 000a728

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/picasso.git"
6-
GROUP_ID="com.squareup.picasso"
7-
ARTIFACT_ID="picasso"
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
@@ -155,7 +155,7 @@ <h3 id="license">License</h3>
155155
<li><a href="#license">License</a></li>
156156
</ul>
157157
<ul class="nav nav-pills nav-stacked secondary">
158-
<li><a href="javadoc/index.html">Javadoc</a></li>
158+
<li><a href="2.x/picasso/">Javadoc</a></li>
159159
<li><a href="http://stackoverflow.com/questions/tagged/picasso?sort=active">StackOverflow</a></li>
160160
</ul>
161161
</div>

0 commit comments

Comments
 (0)