mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 01:36:13 +00:00
Allow disabling plugins for faster preview
This commit is contained in:
parent
1863fad011
commit
45cdb02ab9
9 changed files with 98 additions and 4 deletions
|
@ -43,6 +43,13 @@ module Jekyll
|
|||
|
||||
class ReleasePageGenerator < Generator
|
||||
def generate(site)
|
||||
|
||||
#Do nothing if plugin is disabled
|
||||
if !ENV['ENABLED_PLUGINS'].nil? and ENV['ENABLED_PLUGINS'].index('releases').nil?
|
||||
print 'Releases disabled' + "\n"
|
||||
return
|
||||
end
|
||||
|
||||
#generate each release based on templates
|
||||
Dir.foreach('_releases') do |file|
|
||||
next if file == '.' or file == '..'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue