commit | a9a1adfc7744f877bd5ab1d196209df22a0ea415 | [log] [tgz] |
---|---|---|
author | Konrad Windszus <kwin@apache.org> | Sun Oct 22 17:52:24 2017 +0200 |
committer | Konrad Windszus <kwin@apache.org> | Sun Oct 22 17:52:24 2017 +0200 |
tree | fb8953bf5e87ccab2891925cbf0cfe1eba983d56 | |
parent | c9ad30dfdd43bccb5101648e8e4820786b06e83b [diff] |
SLING-7161 list all new Git repositories leveraging Github API, still WIP as often you get issues with rate limiting (https://developer.github.com/v3/#rate-limiting)
This repository contains the content of the http://sling.apache.org/ website, which moved in September 2017 from the Apache CMS to this JBake-generated site.
Clone this repository, run the below Maven command, open http://localhost:8820/ and enjoy.
mvn clean package -Prun-site
This allows you to experiment with your changes before eventually publishing them.
Clone this repository and run the below commands or equivalent:
# Build the site and review your changes mvn clean package # deploy the site mvn clean package -Ppublish-site -Dmsg="<describe your changes>"
The ASF's gitpubsub mechanism then synchronizes that content to http://sling.apache.org , usually within a few seconds.
Adding expandVariables=true
to a page's front matter enables simple variables replacement, see the pageVariables
map in templates code for which variables are supported or to add more variables. A pattern like ${sling_tagline}
in page content is replaced by the sling_tagline
variable if it exists, otherwise a MISSING_PAGE_VARIABLE marker is output.
Please use a sling.
prefix for new site-related variables in jbake.properties
, to differentiate from JBake built-in variables.
Here's a rough list of things that need to be done after the 2017 migration to gitpubsub.
We'll use jira tickets for more specific things, this is more an overview.
jbake-maven-plugin
, see under /bin
, docs at http://jbake.org/docs/2.5.1To find broken links use
wget --spider -r -nd -nv -l 5 http://localhost:8820/ 2>&1 | grep -B1 'broken link'