Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
Remove link checking hook for 'jekyll serve'
Browse files Browse the repository at this point in the history
  • Loading branch information
dshevtsov committed Jan 24, 2019
1 parent 12cf18b commit af231cf
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
7 changes: 6 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@ task preview: %w[install clean] do
puts 'Generating devdocs locally ... '.magenta
if File.exist?('_config.local.yml')
print 'enabled the additional configuration parameters from _config.local.yml: $ '.magenta
sh 'bundle exec jekyll serve --incremental --open-url --livereload --trace --config _config.yml,_config.local.yml'
sh 'bundle exec jekyll serve --incremental \
--open-url \
--livereload \
--trace \
--config _config.yml,_config.local.yml \
--plugins _plugins,_checks'
else
Rake::Task['preview:all'].invoke
end
Expand Down
5 changes: 1 addition & 4 deletions _plugins/html-check-hook.rb → _checks/html-check-hook.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# The hook runs html-proofer with options defined in the
# _checks/html-check-config.yml file
# _config.checks.yml file
#
# For more details about html-proofer, refer to: https://github.com/gjtorikian/html-proofer
# For more details about Jekyll hooks, refer to: https://jekyllrb.com/docs/plugins/hooks/
Expand All @@ -9,9 +9,6 @@
require_relative '../rakelib/double-slash-check.rb'

Jekyll::Hooks.register :site, :post_write do |site|
# Do nothing unless serving mode is enabled
next unless site.config['serving']

# Do nothing unless 'site.check_links' is set
next unless site.config['check_links']

Expand Down
6 changes: 5 additions & 1 deletion rakelib/preview.rake
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ namespace :preview do
desc 'Preview the entire devdocs locally'
task all: %w[install clean] do
print 'Enabled the default configuration: $ '.magenta
sh 'bundle exec jekyll serve --incremental --open-url --livereload --trace'
sh 'bundle exec jekyll serve --incremental \
--open-url \
--livereload \
--trace \
--plugins _plugins,_checks'
end
end

0 comments on commit af231cf

Please sign in to comment.