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

kwin pushed a commit to branch feature/common-site-descriptor
in repository https://gitbox.apache.org/repos/asf/sling-parent.git

commit e0f0abe2a919a6aad4e13d682f850b0eae35d3df
Author: Konrad Windszus <[email protected]>
AuthorDate: Mon Aug 9 18:41:52 2021 +0200

    SLING-10715 configure Maven site header with logos, GH ribbon,
    breadcrumb and edit button
---
 sling-parent/pom.xml           |  9 ++++++-
 sling-parent/src/site/site.xml | 60 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 68 insertions(+), 1 deletion(-)

diff --git a/sling-parent/pom.xml b/sling-parent/pom.xml
index 2788834..723d751 100644
--- a/sling-parent/pom.xml
+++ b/sling-parent/pom.xml
@@ -49,7 +49,6 @@
     <properties>
         <site.jira.version.id>12313945</site.jira.version.id>
         <site.javadoc.exclude />
-        
<organization.logo>https://sling.apache.org/site/media.data/logo.png</organization.logo>
         <!--
             Java API and class file compliance. This property supports
             one of these values:
@@ -63,6 +62,8 @@
         <surefire.version>3.0.0-M4</surefire.version>
         <minimalMavenBuildVersion>3.3.9</minimalMavenBuildVersion>
         <minimalJavaBuildVersion>1.8</minimalJavaBuildVersion>
+        <!-- the github id used for the ribbon for Maven sites: 
https://maven.apache.org/skins/maven-fluido-skin/#GitHub_ribbons -->
+        <github.project.id>apache/sling-dummyproject</github.project.id>
         
<javadoc.excludePackageNames>*.impl:*.internal:${site.javadoc.exclude}</javadoc.excludePackageNames>
     </properties>
 
@@ -296,6 +297,12 @@
                     </configuration>
                 </plugin>
                 <plugin>
+                    <artifactId>maven-site-plugin</artifactId>
+                    <configuration>
+                        
<relativizeDecorationLinks>false</relativizeDecorationLinks>
+                    </configuration>
+                </plugin>
+                <plugin>
                     <groupId>org.apache.sling</groupId>
                     <artifactId>maven-jspc-plugin</artifactId>
                     <version>2.0.8</version>
diff --git a/sling-parent/src/site/site.xml b/sling-parent/src/site/site.xml
new file mode 100644
index 0000000..bf172d9
--- /dev/null
+++ b/sling-parent/src/site/site.xml
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+<project xmlns="http://maven.apache.org/DECORATION/1.8.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+    xsi:schemaLocation="http://maven.apache.org/DECORATION/1.8.0 
http://maven.apache.org/xsd/decoration-1.8.0.xsd";
+    name="Apache Sling Maven Plugin">
+    <skin>
+        <groupId>org.apache.maven.skins</groupId>
+        <artifactId>maven-fluido-skin</artifactId>
+        <version>1.9</version>
+    </skin>
+    <version position="right"/>
+    <publishDate position="right"/>
+    <bannerLeft>
+        <name>Apache Sling</name>
+        <src>https://sling.apache.org/res/logos/sling.svg</src>
+        <href>https://sling.apache.org/</href>
+        <height>63</height>
+        <width>123</width>
+    </bannerLeft>
+    <bannerRight>
+        <name>Apache</name>
+        <src>https://sling.apache.org/res/logos/apache.png</src>
+        <href>https://apache.org/</href>
+    </bannerRight>
+    <edit>${project.scm.url}</edit>
+    <body>
+        <breadcrumbs>
+            <item name="Apache Sling" href="https://sling.apache.org/"/>
+            <item name="Maven Plugins" 
href="https://sling.apache.org/components/"/>
+        </breadcrumbs>
+    </body>
+    <custom>
+        <fluidoSkin>
+            <sourceLineNumbersEnabled>true</sourceLineNumbersEnabled>
+            <gitHub>
+              <projectId>${github.project.id}</projectId>
+              <ribbonOrientation>right</ribbonOrientation>
+              <ribbonColor>gray</ribbonColor>
+            </gitHub>
+        </fluidoSkin>
+    </custom>
+</project>

Reply via email to