Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/Rules
diff options
context:
space:
mode:
authorConnor Shea <connor.james.shea@gmail.com>2016-11-08 01:31:25 +0300
committerConnor Shea <connor.james.shea@gmail.com>2016-11-08 01:52:44 +0300
commitb15ac898da07c1d84b4b7fa6a1d9e5221fe54d96 (patch)
treed831a50e278505f9da447a23ec6a96b1f1fda61a /Rules
parentfb0fc7d623ee33d529933998fa8763f12e60b627 (diff)
Version the SCSS files. Fixes #28.
Diffstat (limited to 'Rules')
-rw-r--r--Rules10
1 files changed, 3 insertions, 7 deletions
diff --git a/Rules b/Rules
index b22ec980..955b3768 100644
--- a/Rules
+++ b/Rules
@@ -48,7 +48,7 @@ compile '/**/*.scss' do
filter :sass,
syntax: :scss,
style: :compressed
- write item.identifier.without_ext + '.css'
+ write item.identifier.without_ext + '-v' + rep.item[:version].to_s + '.css'
end
compile '/index.*' do
@@ -67,10 +67,6 @@ compile '/robots.*' do
write '/robots.txt'
end
-route '/**/*.scss' do
- item.identifier.without_ext + '.css'
-end
-
route '/**/*.{html,md}' do
if item.identifier =~ '/index.*'
'/index.html'
@@ -85,9 +81,9 @@ compile '/**/*' do
end
end
+layout '/**/*', :erb
+
# Leave the favicon alone.
passthrough '/favicon.ico'
# Let's Encrypt challenge.
passthrough '/.well-known/**/*'
-
-layout '/**/*', :erb