Skip to content

Commit

Permalink
Add favicon to javadocs pages.
Browse files Browse the repository at this point in the history
  • Loading branch information
sjudd committed Nov 22, 2017
1 parent e89fd49 commit 9b07412
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/update_javadocs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ GIT_COMMIT_SHA="$(git rev-parse HEAD)"
./gradlew clean releaseJavadocJar javadoc
rm -rf $TEMP_DIR
cp -r glide/build/docs/javadoc $TEMP_DIR

# Add the favicon to the javadocs pages.
find $TEMP_DIR -name '*.html' -exec sed -i '' -e 's#<head>#<head><link rel="apple-touch-icon" sizes="180x180" href="/glide/apple-touch-icon.png"><link rel="icon" type="image/png" sizes="32x32" href="/glide/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="/glide/favicon-16x16.png"><link rel="manifest" href="/glide/manifest.json">#' {} \;

git checkout gh-pages
rm -rf "${JAVADOC_GH_PAGES_DIR}/${1}"
cp -r $TEMP_DIR $JAVADOC_GH_PAGES_DIR/$1
Expand Down

0 comments on commit 9b07412

Please sign in to comment.