Skip to content

Bump org.apache.maven.plugins:maven-javadoc-plugin from 3.10.1 to 3.11.1 #782

Bump org.apache.maven.plugins:maven-javadoc-plugin from 3.10.1 to 3.11.1

Bump org.apache.maven.plugins:maven-javadoc-plugin from 3.10.1 to 3.11.1 #782

Workflow file for this run

name: docs
on:
push:
branches: [ master ]
paths: [ '**.java', '.github/workflows/docs.yml' ]
pull_request:
branches: [ master ]
release:
types: [created]
workflow_dispatch:
jobs:
docs:
runs-on: ubuntu-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v4
- name: Checkout the gh-pages branch
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: gh-pages
path: gh-pages
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: '17'
- name: Build docs with Maven
run: mvn compile javadoc:javadoc
- name: Copy to Documentation Website Location
if: ${{ github.event_name == 'release' || github.event_name == 'workflow_dispatch' }}
run: |
rm -rf gh-pages/api
cp -rf target/reports/apidocs/. gh-pages/api
- name: Tidy up the javadocs
if: ${{ github.event_name == 'release' || github.event_name == 'workflow_dispatch' }}
id: tidy
uses: cicirello/javadoc-cleanup@v1
with:
base-url-path: https://chips-n-salsa.cicirello.org/
path-to-root: gh-pages
user-defined-block: |
<meta name="referrer" content="strict-origin-when-cross-origin">
<link rel="icon" href="/images/favicon48.png" sizes="16x16 32x32 48x48" type="image/png">
<link rel="icon" href="/images/favicon96.png" sizes="96x96" type="image/png">
<link rel="icon" href="/images/favicon144.png" sizes="144x144" type="image/png">
<link rel="icon" href="/images/favicon192.png" sizes="192x192" type="image/png">
<link rel="icon" href="/images/favicon384.png" sizes="384x384" type="image/png">
- name: Log javadoc-cleanup output
if: ${{ github.event_name == 'release' || github.event_name == 'workflow_dispatch' }}
run: |
echo "modified-count = ${{ steps.tidy.outputs.modified-count }}"
- name: Commit documentation changes without pushing yet
if: ${{ github.event_name == 'release' || github.event_name == 'workflow_dispatch' }}
run: |
cd gh-pages
if [[ `git status --porcelain` ]]; then
git config --global user.name 'github-actions'
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
git add -A
git commit -m "Automated API website updates."
fi
cd ..
- name: Generate the sitemap
if: ${{ github.event_name == 'release' || github.event_name == 'workflow_dispatch' }}
id: sitemap
uses: cicirello/generate-sitemap@v1
with:
base-url-path: https://chips-n-salsa.cicirello.org/
path-to-root: gh-pages
- name: Output stats
if: ${{ github.event_name == 'release' || github.event_name == 'workflow_dispatch' }}
run: |
echo "sitemap-path = ${{ steps.sitemap.outputs.sitemap-path }}"
echo "url-count = ${{ steps.sitemap.outputs.url-count }}"
echo "excluded-count = ${{ steps.sitemap.outputs.excluded-count }}"
- name: Commit documentation website sitemap and push all commits
if: ${{ github.event_name == 'release' || github.event_name == 'workflow_dispatch' }}
run: |
cd gh-pages
if [[ `git status --porcelain` ]]; then
git config --global user.name 'github-actions'
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
git add -A
git commit -m "Automated API website sitemap update."
fi
git push
cd ..