File tree 2 files changed +3
-12
lines changed
2 files changed +3
-12
lines changed Original file line number Diff line number Diff line change 3
3
set -ex
4
4
5
5
REPO=
" [email protected] :square/picasso.git"
6
- GROUP_ID=" com.squareup.picasso"
7
- ARTIFACT_ID=" picasso"
8
-
9
6
DIR=temp-clone
10
7
11
8
# Delete any existing temporary website clone
@@ -20,18 +17,12 @@ cd $DIR
20
17
# Checkout and track the gh-pages branch
21
18
git checkout -t origin/gh-pages
22
19
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
25
22
26
23
# Copy website files from real repo
27
24
cp -R ../website/* .
28
25
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
-
35
26
# Stage all files in git and create a commit
36
27
git add .
37
28
git add -u
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ <h3 id="license">License</h3>
155
155
< li > < a href ="#license "> License</ a > </ li >
156
156
</ ul >
157
157
< 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 >
159
159
< li > < a href ="http://stackoverflow.com/questions/tagged/picasso?sort=active "> StackOverflow</ a > </ li >
160
160
</ ul >
161
161
</ div >
You can’t perform that action at this time.
0 commit comments