From d45d1435eb6c2dbdab32474df19fb9432cc92810 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Thu, 21 Nov 2024 19:26:35 +0100 Subject: [PATCH] Update Yarn documentation (4.5.1) --- lib/docs/scrapers/yarn.rb | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/lib/docs/scrapers/yarn.rb b/lib/docs/scrapers/yarn.rb index 9d20bc8c..6539c7d5 100644 --- a/lib/docs/scrapers/yarn.rb +++ b/lib/docs/scrapers/yarn.rb @@ -12,7 +12,7 @@ module Docs Licensed under the BSD License. HTML - version 'Berry' do + version do self.release = '4.5.1' self.base_url = 'https://yarnpkg.com/' self.links = { @@ -25,6 +25,18 @@ module Docs options[:skip_patterns] = [/\Aapi/, /\Ablog/, /\Apackage/, /\Aassets/] end + version '3' do + self.release = '3.1.1' + self.base_url = 'https://v3.yarnpkg.com/' + self.links = { + home: 'https://v3.yarnpkg.com/', + code: 'https://github.com/yarnpkg/berry' + } + self.root_path = 'getting-started' + html_filters.push 'yarn/entries_berry', 'yarn/clean_html_berry', 'title' + options[:skip] = ['features', 'cli', 'configuration', 'advanced'] + options[:skip_patterns] = [/\Aapi/, /\Apackage/] end + version 'Classic' do self.release = '1.22.17' self.base_url = 'https://classic.yarnpkg.com/en/docs/'