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

Add nightly release landing page #495

Merged
merged 1 commit into from
Sep 25, 2024
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
2 changes: 1 addition & 1 deletion pages/nightly/guides.ftl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<#import "/templates/template.ftl" as tmpl>

<@tmpl.page current="guides" title="Guides">
<@tmpl.page current="nightly-guides" title="Guides / Nightly Release">

<script src="${links.getResource('js/guides.js')}" type="text/javascript"></script>

Expand Down
108 changes: 108 additions & 0 deletions pages/nightly/index.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
<#import "/templates/template.ftl" as tmpl>

<@tmpl.page current="nightly" title="Nightly Release">

<div class="container mt-5">
<h1>Nightly release</h1>

<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
encourage extension developers to continuously test their extensions with the nightly release.
</p>

<p>
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">
<tbody>
<tr>
<td>Keycloak</td>
<td>
<span class="me-4">
<a href="https://github.com/keycloak/keycloak/releases/download/nightly/keycloak-999.0.0-SNAPSHOT.zip" target="_blank">
<i class="fa fa-download" aria-hidden="true"></i>ZIP
</a>
</span>
<span class="me-4">
<a href="https://github.com/keycloak/keycloak/releases/download/nightly/keycloak-999.0.0-SNAPSHOT.tar.gz" target="_blank">
<i class="fa fa-download" aria-hidden="true"></i>TAR.GZ
</a>
</span>
</td>
</tr>
<tr>
<td>Container image</td>
<td>
<a href="https://quay.io/repository/keycloak/keycloak" target="_blank">
<i class="fa fa-link"></i>
quay.io/keycloak/keycloak:nightly
</a>
</td>
</tr>
<tr>
<td>Operator</td>
<td>
<a href="https://quay.io/repository/keycloak/keycloak-operator" target="_blank">
<i class="fa fa-link"></i>
quay.io/keycloak/keycloak-operator:nightly
</a>
</td>
</tr>
</tbody>
</table>

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

<table class="table table-bordered table-striped">
<tbody>
<tr>
<td>
<a href="${links.getLink('nightly/guides')}">Guides</a>
</td>
</tr>
<tr>
<td>
<a href="https://www.keycloak.org/docs/nightly/">Documentation</a>
</td>
</tr>
<tr>
<td>
<a href="https://www.keycloak.org/docs-api/nightly/">JavaDoc</a>
</td>
</tr>
</tbody>
</table>

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

<p>
For extension development and client adapters all Maven artifacts are included in the nightly release. Use the
version <code>999.0.0-SNAPSHOT</code> to the nightly release artifacts.
</p>

<p>
You also need to enable Sonatype Snapshots repository by adding the following to the <code>pom.xml</code> file:
</p>

<pre>
&lt;repositories&gt;
&lt;repository&gt;
&lt;id&gt;sonatype-snapshots&lt;/id&gt;
&lt;name&gt;Sonatype Snapshots&lt;/name&gt;
&lt;url&gt;https://s01.oss.sonatype.org/content/repositories/snapshots/&lt;/url&gt;
&lt;snapshots&gt;
&lt;enabled&gt;true&lt;/enabled&gt;
&lt;updatePolicy&gt;daily&lt;/updatePolicy&gt;
&lt;/snapshots&gt;
&lt;/repository&gt;
&lt;/repositories&gt;
</pre>
</div>


</@tmpl.page>
2 changes: 1 addition & 1 deletion src/main/java/org/keycloak/webbuilder/Links.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public String get(Blogs.Blog blog) {
return getLink(blog.getPath() + "/" + blog.getName());
}

private String getLink(String path) {
public String getLink(String path) {
if (!path.startsWith("/")) {
path = "/" + path;
}
Expand Down
Loading