Docs feedback: Fix three mistakes in producing static assets on gitlab pages
https://docs.gitlab.com/ee/user/project/pages/introduction.html#serving-compressed-assets
There are at least three errors in the command to create static assets for github pages:
- iregex is not supported in find
- execdir is not supported in find
- gzip does not support --keep (only -k)
The below command seems to produce the desired result:
find public -type f -regex '.*\.\(htm\|html\|txt\|text\|js\|css\)$' -exec gzip -f -k {} \;
Only tested here: https://gitlab.com/failmap/monitoryour/-/jobs/157084690