diff options
author | Vasilii Iakliushin <viakliushin@gitlab.com> | 2020-11-06 18:00:19 +0300 |
---|---|---|
committer | Vasilii Iakliushin <viakliushin@gitlab.com> | 2020-11-16 23:23:39 +0300 |
commit | 2948b293efd2929944eaabfefcdd0f8c4465a06c (patch) | |
tree | 5b1bb5a27a621b281d654c0f5e812cc069d787f5 /lib/helpers/generic.rb | |
parent | 43e56b085a8176c82c39148ba8a2c003742e4b55 (diff) |
Do not render inactive navigation sidebar sections
Contributes to https://gitlab.com/gitlab-org/gitlab-docs/-/issues/879
It saves up to 50% of the compiled files size
Diffstat (limited to 'lib/helpers/generic.rb')
-rw-r--r-- | lib/helpers/generic.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/helpers/generic.rb b/lib/helpers/generic.rb index 2bc27ea8..5e5ea01b 100644 --- a/lib/helpers/generic.rb +++ b/lib/helpers/generic.rb @@ -8,5 +8,9 @@ module Nanoc::Helpers def is_production? ENV['NANOC_ENV'] == 'production' end + + def is_omnibus? + ENV['NANOC_ENV'] == 'omnibus' + end end end |