Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Website
poul.org
Commits
728063eb
Commit
728063eb
authored
Feb 29, 2020
by
alek
Browse files
purgecss via jekyll-purgecss
#19
parent
b11219ce
Pipeline
#323
failed with stage
in 1 minute and 36 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
728063eb
...
...
@@ -12,13 +12,13 @@ variables:
# Build is in `before_script` because it's the same for both deployments
before_script
:
-
apk add npm
-
npm i
nstall
-
npm
c
i
-
bundle install
-
./scripts/ci_fix_baseurl.sh
-
jekyll build -d public
-
./scripts/purgecss.sh public
-
./scripts/minifycssjs.sh public
-
./scripts/add_mailinglist_symlink.sh public
-
bundle exec jekyll build
-
mv _site public
-
ln -sf faq_mailinglist/index.html "public/faq_mailinglist.html"
deploy-prod
:
stage
:
deploy
...
...
_config.yml
View file @
728063eb
...
...
@@ -11,6 +11,7 @@ highlighter: rouge
plugins
:
-
jekyll-paginate
-
jekyll-sitemap
-
jekyll-minifier
paginate
:
5
navigation
:
...
...
scripts/add_mailinglist_symlink.sh
deleted
100755 → 0
View file @
b11219ce
#!/bin/bash
sitedir
=
"
$1
"
ln
-sf
faq_mailinglist/index.html
"
$sitedir
/faq_mailinglist.html"
scripts/purgecss.sh
deleted
100755 → 0
View file @
b11219ce
#!/bin/bash
sitedir
=
"
$1
"
echo
"Purging unused CSS..."
./node_modules/.bin/purgecss
\
--css
"
$sitedir
"
/assets/css/
'*'
.css
\
--content
"
$sitedir
"
/index.html
"
$sitedir
"
/
'**/*.html'
"
$sitedir
"
/assets/js/
'*.js'
\
--out
"
$sitedir
"
/assets/css/
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment