diff --git a/lib/docs/filters/babel/entries.rb b/lib/docs/filters/babel/entries.rb index f113bf8a..c423fa8d 100644 --- a/lib/docs/filters/babel/entries.rb +++ b/lib/docs/filters/babel/entries.rb @@ -3,13 +3,13 @@ module Docs class EntriesFilter < Docs::EntriesFilter ENTRIES = { - 'Usage' => ['Options', 'Config Files', '@babel/cli', '@babel/polyfill', + 'Usage' => ['Options', 'Plugins', 'Config Files', 'Compiler assumptions', '@babel/cli', '@babel/polyfill', '@babel/plugin-transform-runtime', '@babel/register'], - 'Presets' => ['@babel/preset-env', '@babel/preset-flow', '@babel/preset-react', '@babel/preset-typescript'], + 'Presets' => ['@babel/preset'], 'Tooling' => ['@babel/parser', '@babel/core', '@babel/generator', '@babel/code-frame', - '@babel/helpers', '@babel/runtime', '@babel/template', '@babel/traverse', '@babel/types'] + '@babel/helper', '@babel/runtime', '@babel/template', '@babel/traverse', '@babel/types', '@babel/standalone'] } def get_name @@ -18,7 +18,7 @@ module Docs def get_type ENTRIES.each do |key, value| - return key if value.include?(name) + return key if value.any? { |val| name.start_with?(val) } return 'Other Plugins' if subpath.include?('babel-plugin') end end diff --git a/lib/docs/scrapers/babel.rb b/lib/docs/scrapers/babel.rb index d095495c..a5eb603f 100644 --- a/lib/docs/scrapers/babel.rb +++ b/lib/docs/scrapers/babel.rb @@ -24,13 +24,17 @@ module Docs /roadmap/ ] + options[:skip_link] = ->(link) { + link['href'].include?('https://babeljs.io/docs/en/') + } + options[:attribution] = <<-HTML © 2014-present Sebastian McKenzie
Licensed under the MIT License. HTML version '7' do - self.release = '7.21.1' + self.release = '7.21.4' end version '6' do