Skip to content

Commit

Permalink
Update javadoc header-fix script
Browse files Browse the repository at this point in the history
  • Loading branch information
rorbech committed Jul 25, 2023
1 parent b426fc6 commit 4644b87
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
15 changes: 13 additions & 2 deletions tools/fix-h1s.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
#!/bin/bash -ex

# Assume javadoc has been run
pushd "`dirname "$0"`"/../docs/html
usage() {
cat <<EOF
Usage: $0 <javadoc-root-dir>
EOF
}

if [ "$#" -ne 1 ] ; then
usage
exit 1
fi

# Assume Dokka has been run
pushd $1

find . -name "*.html" | while read ln
do
Expand Down
2 changes: 1 addition & 1 deletion tools/publish_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ create_javadoc() {
echo "Creating JavaDoc..."
cd $REALM_JAVA_PATH
eval "./gradlew javadoc $GRADLE_BUILD_PARAMS --stacktrace"
eval "./tools/fix-h1s.sh"
eval "./tools/fix-h1s.sh realm/realm-library/build/docs/javadoc/"
cd $HERE
}

Expand Down

0 comments on commit 4644b87

Please sign in to comment.