Skip to content

Commit

Permalink
Update links to Javadoc.
Browse files Browse the repository at this point in the history
  • Loading branch information
squarejesse committed Oct 26, 2015
1 parent a35c785 commit 000a728
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
13 changes: 2 additions & 11 deletions deploy_website.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
set -ex

REPO="[email protected]:square/picasso.git"
GROUP_ID="com.squareup.picasso"
ARTIFACT_ID="picasso"

DIR=temp-clone

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

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

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

# Download the latest javadoc
curl -L "https://search.maven.org/remote_content?g=$GROUP_ID&a=$ARTIFACT_ID&v=LATEST&c=javadoc" > javadoc.zip
mkdir javadoc
unzip javadoc.zip -d javadoc
rm javadoc.zip

# Stage all files in git and create a commit
git add .
git add -u
Expand Down
2 changes: 1 addition & 1 deletion website/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ <h3 id="license">License</h3>
<li><a href="#license">License</a></li>
</ul>
<ul class="nav nav-pills nav-stacked secondary">
<li><a href="javadoc/index.html">Javadoc</a></li>
<li><a href="2.x/picasso/">Javadoc</a></li>
<li><a href="http://stackoverflow.com/questions/tagged/picasso?sort=active">StackOverflow</a></li>
</ul>
</div>
Expand Down

0 comments on commit 000a728

Please sign in to comment.