diff --git a/assets/javascripts/news.json b/assets/javascripts/news.json index d7ae6452..07dc5645 100644 --- a/assets/javascripts/news.json +++ b/assets/javascripts/news.json @@ -1,7 +1,7 @@ [ [ "2024-02-20", - "New documentation: Next.js" + "New documentations: Next.js, click" ], [ "2024-01-24", diff --git a/lib/docs/scrapers/click.rb b/lib/docs/scrapers/click.rb index ce5167f4..71c2a423 100644 --- a/lib/docs/scrapers/click.rb +++ b/lib/docs/scrapers/click.rb @@ -20,50 +20,8 @@ module Docs We are not supported nor endorsed by Pallets. HTML - version '8.1' do - self.release = '8.1.x' - self.base_url = "https://click.palletsprojects.com/en/#{self.release}/" - end - - version '8.0' do - self.release = '8.0.x' - self.base_url = "https://click.palletsprojects.com/en/#{self.release}/" - end - - version '7' do - self.release = '7.x' - self.base_url = "https://click.palletsprojects.com/en/#{self.release}/" - end - - version '6' do - self.release = '6.x' - self.base_url = "https://click.palletsprojects.com/en/#{self.release}/" - end - - version '5' do - self.release = '5.x' - self.base_url = "https://click.palletsprojects.com/en/#{self.release}/" - end - - version '4' do - self.release = '4.x' - self.base_url = "https://click.palletsprojects.com/en/#{self.release}/" - end - - version '3' do - self.release = '3.x' - self.base_url = "https://click.palletsprojects.com/en/#{self.release}/" - end - - version '2' do - self.release = '2.x' - self.base_url = "https://click.palletsprojects.com/en/#{self.release}/" - end - - version '1' do - self.release = '1.x' - self.base_url = "https://click.palletsprojects.com/en/#{self.release}/" - end + self.release = '8.1.x' + self.base_url = "https://click.palletsprojects.com/en/#{self.release}/" def get_latest_version(opts) get_latest_github_release('pallets', 'click', opts)