Skip to content

Commit 5f375bd

Browse files
committed
docs(site): Organize menu, add build badge
* Organize the site menu into Using and Developing. * Add main branch build badge. Adjust site url rewriting in pom. * Fix the site.xml root element. * Rename developing.adoc to building.adoc.
1 parent c053163 commit 5f375bd

3 files changed

Lines changed: 21 additions & 16 deletions

File tree

pom.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@
113113
<groupId>org.apache.maven.plugins</groupId>
114114
<artifactId>maven-site-plugin</artifactId>
115115
<version>${maven-site-plugin.version}</version>
116+
<configuration>
117+
<relativizeSiteLinks>false</relativizeSiteLinks>
118+
</configuration>
116119
<dependencies>
117120
<dependency>
118121
<groupId>org.asciidoctor</groupId>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
= Developing
1+
= Building
22
:toc: left
33
:toc-title: Contents
44
:toclevels: 2

src/site/site.xml

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<project xmlns="http://maven.apache.org/DECORATION/1.8.0"
3-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:schemaLocation="http://maven.apache.org/DECORATION/1.8.0
5-
https://maven.apache.org/xsd/decoration-1.8.0.xsd"
6-
name="Java Service Archetype">
2+
<site xmlns="http://maven.apache.org/SITE/2.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/SITE/2.0.0 https://maven.apache.org/xsd/site-2.0.0.xsd">
75

86
<skin>
97
<groupId>org.apache.maven.skins</groupId>
@@ -13,17 +11,21 @@
1311

1412
<body>
1513
<links>
16-
<item name="GitHub" href="https://github.com/jeffjensen/java-service-archetype"/>
14+
<item name="main" href="https://github.com/jeffjensen/java-service-archetype/actions/workflows/build-any-branch.yml?query=branch%3Amain">
15+
<image src="https://github.com/jeffjensen/java-service-archetype/actions/workflows/build-any-branch.yml/badge.svg?branch=main" />
16+
</item>
17+
<item name="GitHub" href="https://github.com/jeffjensen/java-service-archetype" />
1718
</links>
1819

19-
<menu name="Documentation">
20-
<item name="Overview" href="index.html"/>
21-
<item name="Usage" href="usage.html"/>
22-
<item name="Modules" href="modules.html"/>
23-
<item name="Developing" href="developing.html"/>
24-
<item name="Releasing" href="releasing.html"/>
25-
<item name="Requirements" href="requirements.html"/>
20+
<menu name="Using">
21+
<item name="Overview" href="index.html" />
22+
<item name="Usage" href="usage.html" />
2623
</menu>
27-
<menu ref="reports"/>
24+
<menu name="Developing">
25+
<item name="Building" href="building.html" />
26+
<item name="Releasing" href="releasing.html" />
27+
<item name="Requirements" href="requirements.html" />
28+
</menu>
29+
<menu ref="reports" />
2830
</body>
29-
</project>
31+
</site>

0 commit comments

Comments
 (0)