This project contains the Apache Unomi Website. The website is generated using Jekyll 4.4 with Liquid templates.
Can be found in _config YAML file
source: src/main/webapp
destination: target/siteCan be found in _data folder This contains some variables used to replace placeholders in the site.
You need either Docker (recommended) or a local Ruby/Jekyll installation to build the website.
Checkout the current project:
git clone https://github.com/apache/unomi-siteUsing the bretfisher/jekyll Docker image. No local Ruby or Jekyll installation required.
docker run --rm \
--volume="$PWD:/site" \
bretfisher/jekyll \
buildThe generated site will be in the folder target/site.
Serves the site at http://localhost:4000/ with live-reload on source changes:
docker run --rm \
--volume="$PWD:/site" \
-p 4000:4000 \
bretfisher/jekyll-serveRequires Ruby 2.7+ and Bundler. Install dependencies once, then build:
bundle install
bundle exec jekyll buildOr serve locally with live-reload:
bundle exec jekyll serveTo publish the local website to the production location (https://unomi.apache.org/), you have to use:
Do not use the clean maven goal to not remove the previous generated site.
mvn install scm-publish:publish-scm -Dusername=YOUR_APACHE_USERNAME -Dpassword=YOUR_APACHE_PASSWORD