From 6fad72c44fd8acb13bae48db5f424d30bd26bb86 Mon Sep 17 00:00:00 2001 From: CarmJos Date: Sat, 8 Jan 2022 02:20:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95Javadoc=E9=83=A8=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/javadoc.yml | 1 + .scripts/copy-javadoc.sh | 12 ++++++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/javadoc.yml b/.github/workflows/javadoc.yml index 3d78b0f..6343f77 100644 --- a/.github/workflows/javadoc.yml +++ b/.github/workflows/javadoc.yml @@ -46,6 +46,7 @@ jobs: echo "sitemap-path = ${{ steps.sitemap.outputs.sitemap-path }}" echo "url-count = ${{ steps.sitemap.outputs.url-count }}" echo "excluded-count = ${{ steps.sitemap.outputs.excluded-count }}" + ls -l docs - name: Configure Git env: diff --git a/.scripts/copy-javadoc.sh b/.scripts/copy-javadoc.sh index e64dae9..a67cda9 100644 --- a/.scripts/copy-javadoc.sh +++ b/.scripts/copy-javadoc.sh @@ -1,14 +1,18 @@ rm -rf docs mkdir -vp docs +DOC_URL="target/site/apidocs/" + for FILE in easyplugin-*; do - if test -e "$FILE/target/site/apidocs/"; then + if test -e "$FILE/$DOC_URL"; then + ls -l "$FILE/*" - DOC_NAME="${FILE:11}" - mkdir -vp "docs/$DOC_NAME/" + MODULE_FILE="docs/${FILE:11}/" - cp -vrf "$FILE/target/site/apidocs/*" "docs/$DOC_NAME/" + mkdir -vp "$MODULE_FILE" + + cp -vrf "$FILE/$DOC_URL*" "$MODULE_FILE" fi