Skip to content

Commit bb16851

Browse files
authored
Fix links in release notes for 23 (#434)
Signed-off-by: stianst <[email protected]>
1 parent f2fca47 commit bb16851

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

cache/releases/23.0.0/gh-release-notes.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ <h4 id="_saml_wildfly_and_jboss_eap">SAML WildFly and JBoss EAP</h4>
110110
making it easier and more seamless to install.</p>
111111
</div>
112112
<div class="paragraph">
113-
<p>See the <a href="https://www.keycloak.org/docs/DEV/securing_apps/">Securing Applications and Services Guide</a> for the details.</p>
113+
<p>See the <a href="https://www.keycloak.org/docs/23.0.0/securing_apps/">Securing Applications and Services Guide</a> for the details.</p>
114114
</div>
115115
</div>
116116
</div>
@@ -135,7 +135,7 @@ <h3 id="_user_profile">User profile</h3>
135135
<div class="paragraph">
136136
<p>Declarative user profile is still a preview feature in this release, but we are working hard on promoting it to a supported feature. Feedback is welcome.
137137
If you find any issues or have any improvements in mind, you are welcome to create <a href="https://github.com/keycloak/keycloak/issues/new/choose">Github issue</a>,
138-
ideally with the label <code>area/user-profile</code>. It is also recommended to check the <a href="https://www.keycloak.org/docs/DEV/upgrading/">Upgrading Guide</a> with the migration changes for this
138+
ideally with the label <code>area/user-profile</code>. It is also recommended to check the <a href="https://www.keycloak.org/docs/23.0.0/upgrading/">Upgrading Guide</a> with the migration changes for this
139139
release for some additional informations related to the migration.</p>
140140
</div>
141141
</div>

cache/releases/23.0.0/release-notes.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ <h4 id="_saml_wildfly_and_jboss_eap">SAML WildFly and JBoss EAP</h4>
108108
making it easier and more seamless to install.</p>
109109
</div>
110110
<div class="paragraph">
111-
<p>See the <a href="https://www.keycloak.org/docs/DEV/securing_apps/">Securing Applications and Services Guide</a> for the details.</p>
111+
<p>See the <a href="https://www.keycloak.org/docs/23.0.0/securing_apps/">Securing Applications and Services Guide</a> for the details.</p>
112112
</div>
113113
</div>
114114
</div>
@@ -133,7 +133,7 @@ <h3 id="_user_profile">User profile</h3>
133133
<div class="paragraph">
134134
<p>Declarative user profile is still a preview feature in this release, but we are working hard on promoting it to a supported feature. Feedback is welcome.
135135
If you find any issues or have any improvements in mind, you are welcome to create <a href="https://github.com/keycloak/keycloak/issues/new/choose">Github issue</a>,
136-
ideally with the label <code>area/user-profile</code>. It is also recommended to check the <a href="https://www.keycloak.org/docs/DEV/upgrading/">Upgrading Guide</a> with the migration changes for this
136+
ideally with the label <code>area/user-profile</code>. It is also recommended to check the <a href="https://www.keycloak.org/docs/23.0.0/upgrading/">Upgrading Guide</a> with the migration changes for this
137137
release for some additional informations related to the migration.</p>
138138
</div>
139139
</div>

src/main/java/org/keycloak/webbuilder/builders/ReleaseNotesBuilder.java

+9-9
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
public class ReleaseNotesBuilder extends AbstractBuilder {
1313

14-
private static final String DOCUMENT_ATTRIBUTES_URL = "https://raw.githubusercontent.com/keycloak/keycloak/main/docs/documentation/topics/templates/document-attributes.adoc";
14+
private static final String DOCUMENT_ATTRIBUTES_URL = "https://raw.githubusercontent.com/keycloak/keycloak/%s/docs/documentation/topics/templates/document-attributes.adoc";
1515

1616
private static final String RELEASE_NOTES_URL = "https://raw.githubusercontent.com/keycloak/keycloak/release/%s/docs/documentation/release_notes/topics/%s.adoc";
1717

@@ -21,14 +21,6 @@ protected String getTitle() {
2121
}
2222

2323
public void build() throws IOException {
24-
Map<String, Object> attributes = new HashMap<>();
25-
26-
attributes.put("project_buildType", "latest");
27-
attributes.put("leveloffset", "2");
28-
attributes.put("fragment", "yes");
29-
30-
attributes = context.asciiDoctor().parseAttributes(new URL(DOCUMENT_ATTRIBUTES_URL), attributes);
31-
3224
File releasesCache = new File(context.getCacheDir(), "releases");
3325

3426
for (Versions.Version v : context.versions()) {
@@ -44,6 +36,14 @@ public void build() throws IOException {
4436
} else if (releaseNotesMissingFile.isFile()) {
4537
printStep("missing", v.getVersion());
4638
} else {
39+
Map<String, Object> attributes = new HashMap<>();
40+
41+
attributes.put("project_buildType", "latest");
42+
attributes.put("leveloffset", "2");
43+
attributes.put("fragment", "yes");
44+
45+
attributes = context.asciiDoctor().parseAttributes(new URL(String.format(DOCUMENT_ATTRIBUTES_URL, v.getVersion())), attributes);
46+
4747
String releaseNotesUrl = String.format(RELEASE_NOTES_URL, v.getVersionShorter(), v.getVersion().replace(".", "_"));
4848
URL url = new URL(releaseNotesUrl);
4949

0 commit comments

Comments
 (0)