File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ class Yarn < UrlScraper
12
12
Licensed under the BSD License.
13
13
HTML
14
14
15
- version 'Berry' do
15
+ version do
16
16
self . release = '4.5.1'
17
17
self . base_url = 'https://yarnpkg.com/'
18
18
self . links = {
@@ -25,6 +25,18 @@ class Yarn < UrlScraper
25
25
options [ :skip_patterns ] = [ /\A api/ , /\A blog/ , /\A package/ , /\A assets/ ]
26
26
end
27
27
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 ] = [ /\A api/ , /\A package/ ] end
39
+
28
40
version 'Classic' do
29
41
self . release = '1.22.17'
30
42
self . base_url = 'https://classic.yarnpkg.com/en/docs/'
You can’t perform that action at this time.
0 commit comments