1 Star 0 Fork 0

testnulldefined/flutter.cn

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Rakefile 879 Bytes
一键复制 编辑 原始数据 按行查看 历史
sfshaza2 提交于 2019-03-22 16:27 . Reworking docs page. (#2541)
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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
CSS
1
https://gitee.com/postbird/flutter.cn.git
[email protected]:postbird/flutter.cn.git
postbird
flutter.cn
flutter.cn
master

搜索帮助