THEME_VERSION := v2.51.1-beta.49
all:
.PHONY: site-l10n
site-l10n:
podman run --rm \
--name $@ \
-v $$PWD/src:/site:z \
-v $$PWD/public:/public:z \
--env JEKYLL_SOURCE_DIR=/site \
--env JEKYLL_PUBLIC_DIR=/public \
registry.gitlab.com/centos/artwork/centos-web/templates/jekyll-site-l10n:latest \
/usr/local/bin/page-locale.sh
.PHONY: site-server
site-server: clean site-sources
install -d public
podman run --rm -d \
--name $@ \
-v $$PWD/src:/site \
-v $$PWD/public:/public \
-p 0.0.0.0:4000:4000 \
registry.gitlab.com/centos/artwork/centos-web/jekyll-theme-centos:${THEME_VERSION} \
bundle exec jekyll serve -H 0.0.0.0 -p 4000 --config /site/_config.yml -s /site -d /public
.PHONY: site
site:
install -d public
podman run --rm \
--name $@ \
-v $$PWD/src:/site \
-v $$PWD/public:/public \
registry.gitlab.com/centos/artwork/centos-web/jekyll-theme-centos:${THEME_VERSION} \
bundle exec jekyll build --config /site/_config.yml -s /site -d /public
.PHONY: clean
clean:
$(RM) -r public
$(RM) -r public-ansible