Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Site build - gitHub ribbon, stage site #818

Merged
merged 1 commit into from
Nov 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,8 @@ For publishing the site do the following:

```
cd target/checkout
../mvnw verify site site:stage scm-publish:publish-scm
../mvnw site
../mvnw scm-publish:publish-scm
```

for multi module site - we need two executions
15 changes: 15 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,21 @@
</execution>
</executions>
</plugin>
<plugin>
<!-- multi module project - stage site -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<executions>
<execution>
<id>default-site</id>
<phase>site</phase>
<goals>
<goal>site</goal>
<goal>stage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down
26 changes: 18 additions & 8 deletions src/site/site.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,24 @@
<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">
https://maven.apache.org/xsd/decoration-1.8.0.xsd">

<body>
<breadcrumbs>
<item name="MojoHaus" href="https://www.mojohaus.org/"/>
<item name="${this.name}" href="${this.url}" />
</breadcrumbs>
<custom>
<fluidoSkin>
<gitHub>
<projectId>mojohaus/versions</projectId>
<ribbonOrientation>right</ribbonOrientation>
<ribbonColor>gray</ribbonColor>
</gitHub>
</fluidoSkin>
</custom>

<menu ref="modules"/>
</body>
<body>
<breadcrumbs>
<item name="MojoHaus" href="https://www.mojohaus.org/"/>
<item name="${this.name}" href="${this.url}"/>
</breadcrumbs>

<menu ref="modules"/>
</body>
</project>