From 265b3924edfdaeaf845da4733db86bff4b6127b6 Mon Sep 17 00:00:00 2001 From: Harald Pehl Date: Mon, 29 Jan 2024 11:22:09 +0100 Subject: [PATCH 1/2] Add a link to the OS guide on the getting started page --- _layouts/getstarted.html | 17 +++++++++++++++++ getstarted.adoc | 4 ---- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/_layouts/getstarted.html b/_layouts/getstarted.html index 1691f602..3f390689 100644 --- a/_layouts/getstarted.html +++ b/_layouts/getstarted.html @@ -9,6 +9,23 @@

{{page.title}} {{page.docversion}}

{{ content }} + {% comment %} + {% This should be part of the content in geststarted.adoc %} + {% But since we want to use the variable for the latest WildFly version %} + {% to render the link to the OS guide, this is part of the layout %} + {% endcomment %} + {% assign latestRelease = site.data.releases[site.current_release_index] %} +
+

Next Steps

+
+
+

+ To learn more about WildFly, you can read its documentation.
+ If you want to learn how to use WildFly on OpenShift, read the Getting Started with WildFly on OpenShift Guide +

+
+
+
diff --git a/getstarted.adoc b/getstarted.adoc index 7ea4b815..8e0c71cc 100644 --- a/getstarted.adoc +++ b/getstarted.adoc @@ -86,7 +86,3 @@ public String hello(String name) { Save the file and the application will be recompiled and updated in WildFly. If you access the application at http://localhost:8080, it will now return the name in upper case. - -== Next Steps - -To learn more about WildFly, you can read its https://docs.wildfly.org[documentation,window=_blank]. \ No newline at end of file From 6120ca1503c84c69ebafc314c1d5874880251d67 Mon Sep 17 00:00:00 2001 From: Harald Pehl Date: Tue, 30 Jan 2024 10:50:44 +0100 Subject: [PATCH 2/2] Move the content back to AsciiDoc and get the latest final major version number using built-in liquid filters. --- _layouts/getstarted.html | 17 ----------------- getstarted.adoc | 5 +++++ 2 files changed, 5 insertions(+), 17 deletions(-) diff --git a/_layouts/getstarted.html b/_layouts/getstarted.html index 3f390689..1691f602 100644 --- a/_layouts/getstarted.html +++ b/_layouts/getstarted.html @@ -9,23 +9,6 @@

{{page.title}} {{page.docversion}}

{{ content }} - {% comment %} - {% This should be part of the content in geststarted.adoc %} - {% But since we want to use the variable for the latest WildFly version %} - {% to render the link to the OS guide, this is part of the layout %} - {% endcomment %} - {% assign latestRelease = site.data.releases[site.current_release_index] %} -
-

Next Steps

-
-
-

- To learn more about WildFly, you can read its documentation.
- If you want to learn how to use WildFly on OpenShift, read the Getting Started with WildFly on OpenShift Guide -

-
-
-
diff --git a/getstarted.adoc b/getstarted.adoc index 8e0c71cc..e570cb5f 100644 --- a/getstarted.adoc +++ b/getstarted.adoc @@ -86,3 +86,8 @@ public String hello(String name) { Save the file and the application will be recompiled and updated in WildFly. If you access the application at http://localhost:8080, it will now return the name in upper case. + +== Next Steps + +To learn more about WildFly, you can read its https://docs.wildfly.org[documentation,window=_blank]. + +If you want to learn how to use WildFly on OpenShift, read the https://docs.wildfly.org/{{ site.data.releases | where:"qualifier", "Final" | map: "version" | first | split: "." | first }}/Getting_Started_on_OpenShift.html[Getting Started with WildFly on OpenShift Guide,window=_blank]