You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by dk...@apache.org on 2018/06/06 17:16:13 UTC

[sling-whiteboard] 02/02: Fixing the javadoc badge to use the correct artifact id and fixing the url of the features pages

This is an automated email from the ASF dual-hosted git repository.

dklco pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-whiteboard.git

commit 2e8135ae3824b45be30e259fe8eef0c20353b5e1
Author: Dan Klco <dk...@apache.org>
AuthorDate: Wed Jun 6 13:15:57 2018 -0400

    Fixing the javadoc badge to use the correct artifact id and fixing the url of the features pages
---
 gh-badge-script/add-badges.sh                | 4 ++--
 gh-badge-script/generate-aggregator-table.sh | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/gh-badge-script/add-badges.sh b/gh-badge-script/add-badges.sh
index 716b7af..6c786d3 100755
--- a/gh-badge-script/add-badges.sh
+++ b/gh-badge-script/add-badges.sh
@@ -53,7 +53,7 @@ function update_badges () {
             fi
             FEATURE=$(echo $FEATURE | xargs)
             if [ ! -z "$FEATURE" ]; then
-                LINE=" [![${FEATURE}](https://sling.apache.org/badges/feature-$FEATURE.svg)](https://github.com/apache/sling-aggregator/docs/modules.md#$FEATURE)"
+                LINE=" [![${FEATURE}](https://sling.apache.org/badges/feature-$FEATURE.svg)](https://github.com/apache/sling-aggregator/docs/features/$FEATURE.md)"
                 prepend
             fi
         fi
@@ -66,7 +66,7 @@ function update_badges () {
         JAVADOC_BADGE_RESPONSE=$(curl -s -o /dev/null -w "%{http_code}" https://www.javadoc.io/badge/org.apache.sling/$ARTIFACT_ID.svg)
         if [ $JAVADOC_BADGE_RESPONSE = "200" ]; then
             echo "Adding Javadoc badge for $ARTIFACT_ID"
-            LINE=" [![JavaDocs](https://www.javadoc.io/badge/org.apache.sling/$ARTIFACT_ID.svg)](https://www.javadoc.io/doc/org.apache.sling/org.apache.sling.api)"
+            LINE=" [![JavaDocs](https://www.javadoc.io/badge/org.apache.sling/$ARTIFACT_ID.svg)](https://www.javadoc.io/doc/org.apache.sling/$ARTIFACT_ID)"
             prepend
         else
             echo "No published javadocs found for $ARTIFACT_ID"
diff --git a/gh-badge-script/generate-aggregator-table.sh b/gh-badge-script/generate-aggregator-table.sh
index f051ca2..676f001 100755
--- a/gh-badge-script/generate-aggregator-table.sh
+++ b/gh-badge-script/generate-aggregator-table.sh
@@ -79,7 +79,7 @@ function add_repo () {
             JAVADOC_BADGE_RESPONSE=$(curl -s -o /dev/null -w "%{http_code}" https://www.javadoc.io/badge/org.apache.sling/$ARTIFACT_ID.svg)
             if [ $JAVADOC_BADGE_RESPONSE != "404" ]; then
                 echo "Adding Javadoc badge for $ARTIFACT_ID"
-                LINE=" [![JavaDocs](https://www.javadoc.io/badge/org.apache.sling/$ARTIFACT_ID.svg)](https://www.javadoc.io/doc/org.apache.sling/org.apache.sling.api)"
+                LINE=" [![JavaDocs](https://www.javadoc.io/badge/org.apache.sling/$ARTIFACT_ID.svg)](https://www.javadoc.io/doc/org.apache.sling/$ARTIFACT_ID)"
                 write_data
             else
                 echo "No published javadocs found for $ARTIFACT_ID"

-- 
To stop receiving notification emails like this one, please contact
dklco@apache.org.