-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate combined Javadoc documentation (#791)
* feat: generate combined Javadoc documentation * feat: add Circle CI step with documentation * feat: config corrections 1 * feat: publishing to docs branch * feat: config corrections 2 * feat: config corrections 3 * feat: config corrections 4 * feat: config corrections 5 * feat: add custom title * feat: add package info for all public packages * feat: add header documentation to the public classes * feat: add documentation to the main public methods * fix: header * feat: upload docs with GitHub actions * fix: uploading #1 * fix: uploading #2 * fix: uploading #3 * fix: uploading #4 * fix: uploading #5 * doc: update description * fix: disable publishing with Circle CI * feat: check docs size before commiting --------- Co-authored-by: Yuriy Velichko <[email protected]>
- Loading branch information
1 parent
0f88c2c
commit a115219
Showing
103 changed files
with
707 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Upload Docs Android | ||
|
||
on: | ||
push: | ||
tags: | ||
- '[0-9]+.[0-9]+.[0-9]+' | ||
- 'test-doc-*' | ||
|
||
jobs: | ||
upload-docs: | ||
|
||
runs-on: macos-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
- name: Generate docs | ||
run: | | ||
./gradlew :PrebidMobile:combinedJavadoc | ||
cp -r PrebidMobile/build/combinedJavadoc docs_new | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
ref: docs | ||
clean: false | ||
- name: Commit documentation changes | ||
run: | | ||
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
git config --local user.name "github-actions[bot]" | ||
git status | ||
TAG_NAME=${{ github.ref }} | ||
TAG_NAME=${TAG_NAME#refs/tags/} | ||
echo "Current tag: $TAG_NAME" | ||
ls -l | ||
MIN_SIZE=5120 | ||
if [ -d docs_new ] && [ "$(du -s docs_new | cut -f1)" -ge "$MIN_SIZE" ]; then | ||
rm -rf docs | ||
cp -r docs_new docs | ||
rm -rf docs_new | ||
else | ||
echo "docs_new directory either does not exist or is too small." | ||
exit 1 | ||
fi | ||
git add docs | ||
git commit -m "Generate docs - $TAG_NAME" | ||
- name: Push changes | ||
uses: ad-m/github-push-action@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
...-admobAdapters/src/main/java/org/prebid/mobile/admob/AdMobMediationInterstitialUtils.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
...bile-admobAdapters/src/main/java/org/prebid/mobile/admob/AdMobMediationRewardedUtils.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
...Mobile/PrebidMobile-admobAdapters/src/main/java/org/prebid/mobile/admob/package-info.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/** | ||
* Adapters for AdMob mediation integration of the Prebid SDK. | ||
*/ | ||
package org.prebid.mobile.admob; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.