Skip to content

Commit

Permalink
Update nightly release landing page (#498)
Browse files Browse the repository at this point in the history
Signed-off-by: stianst <[email protected]>
  • Loading branch information
stianst authored Sep 26, 2024
1 parent bf19502 commit d377498
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 5 deletions.
7 changes: 7 additions & 0 deletions pages/community.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,13 @@
</p>
</div>

<div class="row mt-3">
<h2>Nightly release</h2>
<p>
For early feedback and extension developers there is a <a href="${links.nightly}">nightly release of Keycloak</a>.
</p>
</div>

<div class="row mt-3">
<h2>Resources</h2>
<ul class="ms-4">
Expand Down
4 changes: 3 additions & 1 deletion pages/documentation-archive.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@

<ul>
<#list versionsMajorMinor as version>
<li><a href="archive/documentation-${version.versionShorter}.html">${version.versionShorter}</a></li>
<#if !version.latest>
<li><a href="archive/documentation-${version.versionShorter}.html">${version.versionShorter}</a></li>
</#if>
</#list>
</ul>
</div>
Expand Down
2 changes: 1 addition & 1 deletion pages/documentation.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<#include "../templates/documentation-${version.documentationTemplate}.ftl">

<h4 class="mt-4">For previous releases go <a href="documentation-archive.html">here</a>.</h4>
<p><a href="documentation-archive.html">Archived releases</a></p>
</div>

</@tmpl.page>
4 changes: 3 additions & 1 deletion pages/downloads-archive.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@

<ul>
<#list versions as version>
<li><a href="archive/downloads-${version.versionShort}.html">${version.versionShort}</a></li>
<#if !version.latest>
<li><a href="archive/downloads-${version.versionShort}.html">${version.versionShort}</a></li>
</#if>
</#list>
</ul>
</div>
Expand Down
2 changes: 1 addition & 1 deletion pages/downloads.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<p>This is a <b>release candidate</b>. The latest final release is <a href="archive/downloads-${versions[1].versionShort}.html">${versions[1].versionShort}</a>.</p>
</#if>

<h4 class="mt-4">For previous releases go <a href="downloads-archive.html">here</a>.</h4>
<p><a href="downloads-archive.html">Archived releases</a> | <a href="${links.nightly}">Nightly release</a></h4>
</div>

<script src="${root}resources/js/downloads.js" type="text/javascript"></script>
Expand Down
8 changes: 7 additions & 1 deletion pages/nightly/index.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@
<div class="container mt-5">
<h1>Nightly release</h1>

<div class="alert alert-warning" role="alert">
<h4>Do not use nightly releases in production environments.</h4>

Migration is not supported for nightly releases. Always use an empty database, or a copy of the database, when deploying a nightly release.
Nightly releases may also contain regressions or features that are not ready for usage.
</div>

<p>
We provide a nightly release of Keycloak that serves of a preview of what is coming in the next release. The aim
is to get early feedback from the community on new features, on bug fixes, or other enhancements. We also
Expand All @@ -15,7 +22,6 @@
The nightly release is built every night from main branches, and will overwrite the previous nightly release.
</p>


<h2 class="mt-4">Server</h2>

<table class="table table-bordered table-striped">
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/org/keycloak/webbuilder/Links.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ public String getHome() {
return getRoot() + (config.isPublish() ? "/" : "/index.html");
}

public String getNightly() {
return getRoot() + (config.isPublish() ? "/nightly/" : "/nightly/index.html");
}

public String getDocs() {
return getLink("documentation");
}
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/org/keycloak/webbuilder/Versions.java
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ public void setMigrationNotes(String migrationNotes) {
this.migrationNotes = migrationNotes;
}

public boolean isLatest() {
return latest;
}

public ChangeLog getChanges() {
return changes;
}
Expand Down

0 comments on commit d377498

Please sign in to comment.