History

Merge pull request #1065 from simon04/yarn

Jasper van Merle committed 7 years ago

Commit 166e4b52 parents 58202eb 740e8c42 files · +4 −1Browse files

Unified · Split

2 files
  1. lib/docs/filters/yarn/clean_html.rb +3 −0
  2. lib/docs/scrapers/yarn.rb +1 −1
lib/docs/filters/yarn/clean_html.rb+3−0
@@ -27,6 +27,9 @@ module Docs · 26 unmodified lines
27 27
28 css('a.toc', '.nav-tabs', '#select-platform', '.guide-controls + .list-group', '.guide-controls').remove28 css('a.toc', '.nav-tabs', '#select-platform', '.guide-controls + .list-group', '.guide-controls').remove
29 29
30 css('.install-select-os', '#install-instructions > .install-os-instructions:first-child').remove
31 css('.install-os-instructions[style]').remove_attribute('style')
32
30 css('.guide-content', '.tabs', '.tab-content').each do |node|33 css('.guide-content', '.tabs', '.tab-content').each do |node|
31 node.before(node.children).remove34 node.before(node.children).remove
32 end35 end
lib/docs/scrapers/yarn.rb+1−1
@@ -1,7 +1,7 @@
1module Docs1module Docs
2 class Yarn < UrlScraper2 class Yarn < UrlScraper
3 self.type = 'simple'3 self.type = 'simple'
4 self.release = '1.12.1'4 self.release = '1.17.3'
5 self.base_url = 'https://yarnpkg.com/en/docs/'5 self.base_url = 'https://yarnpkg.com/en/docs/'
6 self.links = {6 self.links = {
7 home: 'https://yarnpkg.com/',7 home: 'https://yarnpkg.com/',