You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by rz...@apache.org on 2022/10/20 14:46:04 UTC

[tomee-site-generator] 01/02: master -> main

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

rzo1 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomee-site-generator.git

commit 095a32b97a068d5be1d048eb84101dec3e850745
Author: Richard Zowalla <rz...@apache.org>
AuthorDate: Thu Oct 20 16:42:33 2022 +0200

    master -> main
---
 WEBSITE-2020.adoc                                         | 2 +-
 src/main/java/org/apache/tomee/website/VersionsIndex.java | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/WEBSITE-2020.adoc b/WEBSITE-2020.adoc
index eaf5b06..de03c7e 100644
--- a/WEBSITE-2020.adoc
+++ b/WEBSITE-2020.adoc
@@ -109,7 +109,7 @@ Without this, no one will be able to understand how the site is built.
 For Antora, it's easy to set up a gitlab ci pipeline that builds a site and publishies it on netlify.
 I don't know if anything similar is possible for github, but I thnk it's worth investigating.
 My idea is something like any commit results in updating a preview site.
-If you like it you can push to "master", so asf shows it.
+If you like it you can push to "main", so asf shows it.
 
 '''
 
diff --git a/src/main/java/org/apache/tomee/website/VersionsIndex.java b/src/main/java/org/apache/tomee/website/VersionsIndex.java
index 4e35fc8..2fa4583 100644
--- a/src/main/java/org/apache/tomee/website/VersionsIndex.java
+++ b/src/main/java/org/apache/tomee/website/VersionsIndex.java
@@ -39,6 +39,7 @@ public class VersionsIndex {
 
             for (final Source source : sources.getSources()) {
                 if ("master".equals(source.getName())) continue;
+                if ("main".equals(source.getName())) continue;
                 if ("latest".equals(source.getName())) continue;
 
                 index.append("*").append(source.getName());