areguera / centos / centos.org

Forked from centos/centos.org 4 years ago
Clone
Blob Blame History Raw
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:latest \
		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:latest \
		bundle exec jekyll build --config /site/_config.yml -s /site -d /public

.PHONY: clean
clean:
	$(RM) -r public
	$(RM) -r public-ansible