代码拉取完成,页面将自动刷新
require 'html-proofer'
task :build do
sh "bundle exec jekyll build"
end
task :checklinks do
options = {
:log_level => :info,
:empty_alt_ignore => true,
:url_ignore => [
# Skip fragment identifiers, as these are not real links
/#/,
# Skip httpbin links as they are not allowed from TravisCI
'http://httpbin.com',
# Skip links that have been auto-inserted for the 'Edit Source' action (i.e. that match this regexp)
/github.com\/flutter\/website/,
# Skip links to the Chrome tracing tools
'chrome://tracing',
],
:only_4xx => true,
# Replace canonical link with local links.
# Details: http://tongueroo.com/articles/getting-html-proofer-to-work-with-canonical-url-for-google-seo/
:url_swap => {
'https://flutter.dev' => ''
}
}
HTMLProofer.check_directory("./_site", options).run
end
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。