Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the dokka command to build scripts/update_javadocs.sh #5104

Merged
merged 1 commit into from
Mar 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions scripts/update_javadocs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,9 @@ fi

git checkout master
GIT_COMMIT_SHA="$(git rev-parse HEAD)"
./gradlew clean releaseJavadocJar javadoc
./gradlew dokkaHtmlMultiModule
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">#' {} \;
cp -r build/dokka/htmlMultiModule $TEMP_DIR

git checkout gh-pages
rm -rf "${JAVADOC_GH_PAGES_DIR}/${version}"
Expand Down