You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by cz...@apache.org on 2017/10/04 07:50:13 UTC
sling-site git commit: Add variables for min java version,
min maven version and release version
Repository: sling-site
Updated Branches:
refs/heads/master 3d0d29b11 -> 675d732ab
Add variables for min java version, min maven version and release version
Project: http://git-wip-us.apache.org/repos/asf/sling-site/repo
Commit: http://git-wip-us.apache.org/repos/asf/sling-site/commit/675d732a
Tree: http://git-wip-us.apache.org/repos/asf/sling-site/tree/675d732a
Diff: http://git-wip-us.apache.org/repos/asf/sling-site/diff/675d732a
Branch: refs/heads/master
Commit: 675d732ab9abbd3c22c21521aa229de3f550dfad
Parents: 3d0d29b
Author: Carsten Ziegeler <cz...@adobe.com>
Authored: Wed Oct 4 09:50:05 2017 +0200
Committer: Carsten Ziegeler <cz...@adobe.com>
Committed: Wed Oct 4 09:50:05 2017 +0200
----------------------------------------------------------------------
src/main/jbake/content/documentation/getting-started.md | 6 +++---
src/main/jbake/templates/page.tpl | 5 ++++-
2 files changed, 7 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/sling-site/blob/675d732a/src/main/jbake/content/documentation/getting-started.md
----------------------------------------------------------------------
diff --git a/src/main/jbake/content/documentation/getting-started.md b/src/main/jbake/content/documentation/getting-started.md
index 4d3a099..f00d2b1 100644
--- a/src/main/jbake/content/documentation/getting-started.md
+++ b/src/main/jbake/content/documentation/getting-started.md
@@ -2,6 +2,7 @@ title=Getting Started
type=page
status=published
tags=tutorials
+expandVariables=true
~~~~~~
# Run the Sling Application
@@ -29,11 +30,10 @@ This will start the latest Apache Sling distribution and mount the Sling directo
The other option is to download the latest released Apache Sling standalone application from our
[Downloads](/downloads.cgi) section. Once you have downloaded the application make sure that you have
- Java 8 or later installed and run Sling with (replace the N with the latest version number before
- executing the command):
+ Java ${sling_minJavaVersion} or later installed and run Sling with:
- java -jar org.apache.sling.launchpad-N.jar
+ java -jar org.apache.sling.launchpad-${sling_releaseVersion}.jar
Starting the Sling application creates the Sling directory name *sling* in the same directory
from where you started the above command.
http://git-wip-us.apache.org/repos/asf/sling-site/blob/675d732a/src/main/jbake/templates/page.tpl
----------------------------------------------------------------------
diff --git a/src/main/jbake/templates/page.tpl b/src/main/jbake/templates/page.tpl
index 7a1a791..93a3f07 100644
--- a/src/main/jbake/templates/page.tpl
+++ b/src/main/jbake/templates/page.tpl
@@ -1,6 +1,9 @@
def expandVariables(str, config) {
def pageVariables = [
- sling_tagline : config.blog_subtitle
+ sling_tagline : config.blog_subtitle,
+ sling_minJavaVersion : "8",
+ sling_minMavenVersion : "3.5.0",
+ sling_releaseVersion : "9"
]
// Use a closure to avoid exception on missing variable