Skip to content

Commit d45d143

Browse files
committed
Update Yarn documentation (4.5.1)
1 parent 2216cb4 commit d45d143

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

lib/docs/scrapers/yarn.rb

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class Yarn < UrlScraper
1212
Licensed under the BSD License.
1313
HTML
1414

15-
version 'Berry' do
15+
version do
1616
self.release = '4.5.1'
1717
self.base_url = 'https://yarnpkg.com/'
1818
self.links = {
@@ -25,6 +25,18 @@ class Yarn < UrlScraper
2525
options[:skip_patterns] = [/\Aapi/, /\Ablog/, /\Apackage/, /\Aassets/]
2626
end
2727

28+
version '3' do
29+
self.release = '3.1.1'
30+
self.base_url = 'https://v3.yarnpkg.com/'
31+
self.links = {
32+
home: 'https://v3.yarnpkg.com/',
33+
code: 'https://github.com/yarnpkg/berry'
34+
}
35+
self.root_path = 'getting-started'
36+
html_filters.push 'yarn/entries_berry', 'yarn/clean_html_berry', 'title'
37+
options[:skip] = ['features', 'cli', 'configuration', 'advanced']
38+
options[:skip_patterns] = [/\Aapi/, /\Apackage/] end
39+
2840
version 'Classic' do
2941
self.release = '1.22.17'
3042
self.base_url = 'https://classic.yarnpkg.com/en/docs/'

0 commit comments

Comments
 (0)