|
|
8845f9 |
all:
|
|
|
8845f9 |
|
|
|
8845f9 |
site-l10n:
|
|
|
8845f9 |
podman run --rm \
|
|
|
8845f9 |
--name $@ \
|
|
|
8845f9 |
-v $$PWD/:/site:z \
|
|
|
8845f9 |
--env JEKYLL_SOURCE_DIR=/site \
|
|
|
8845f9 |
--env JEKYLL__site_DIR=/site/_site \
|
|
|
8845f9 |
registry.gitlab.com/centos/artwork/centos-web/templates/jekyll-site-l10n:latest \
|
|
|
8845f9 |
/usr/local/bin/page-locale.sh
|
|
|
8845f9 |
|
|
|
8845f9 |
.PHONY: site-server
|
|
|
8845f9 |
site-server: clean
|
|
|
8845f9 |
install -d _site
|
|
|
8845f9 |
podman run --rm -d \
|
|
|
8845f9 |
--name jekyll-theme-centos-$@ \
|
|
|
8845f9 |
-v $$PWD/:/site:z \
|
|
|
8845f9 |
-p 0.0.0.0:4000:4000 \
|
|
|
8845f9 |
registry.gitlab.com/centos/artwork/centos-web/jekyll-theme-centos:latest \
|
|
|
8845f9 |
bundle exec jekyll serve -H 0.0.0.0 -p 4000 --config /site/_config.yml -s /site -d /site/_site
|
|
|
8845f9 |
|
|
|
8845f9 |
.PHONY: site
|
|
|
8845f9 |
site: clean
|
|
|
8845f9 |
install -d _site
|
|
|
8845f9 |
podman run --rm -d \
|
|
|
8845f9 |
--name jekyll-theme-centos-$@ \
|
|
|
8845f9 |
-v $$PWD/:/site:z \
|
|
|
8845f9 |
registry.gitlab.com/centos/artwork/centos-web/jekyll-theme-centos:latest \
|
|
|
8845f9 |
bundle exec jekyll build --config /site/_config.yml -s /site -d /site/_site
|
|
|
8845f9 |
|
|
|
8845f9 |
site-html-prettier: site
|
|
|
8845f9 |
podman run --rm \
|
|
|
8845f9 |
--name $@ \
|
|
|
8845f9 |
-v $$PWD/_site:/_site:z \
|
|
|
8845f9 |
registry.gitlab.com/centos/artwork/centos-web/pipelines/toolbox/npm-prettier:latest \
|
|
|
8845f9 |
npx prettier --ignore-path /srv/toolbox/npm-prettier/.prettierignore -w "/_site/**/*.html"
|
|
|
8845f9 |
|
|
|
8845f9 |
site-html-validate: site-html-prettier
|
|
|
8845f9 |
podman run --rm \
|
|
|
8845f9 |
--name $@ \
|
|
|
8845f9 |
-v $$PWD/_site:/_site:z \
|
|
|
8845f9 |
registry.gitlab.com/centos/artwork/centos-web/pipelines/toolbox/npm-htmlvalidate:latest \
|
|
|
8845f9 |
npx html-validate --config=/srv/toolbox/npm-htmlvalidate/.htmlvalidate.json /_site
|
|
|
8845f9 |
|
|
|
8845f9 |
.PHONY: clean
|
|
|
8845f9 |
clean:
|
|
|
8845f9 |
$(RM) -r _site
|