From 2dce213f6acf726a150af06919a2c09578e2441a Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Mon, 9 Oct 2023 20:25:17 +0200 Subject: [PATCH] Update Nushell documentation (0.85.0) --- lib/docs/filters/nushell/clean_html.rb | 1 + lib/docs/scrapers/nushell.rb | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/docs/filters/nushell/clean_html.rb b/lib/docs/filters/nushell/clean_html.rb index b9453c6a..d7e86695 100644 --- a/lib/docs/filters/nushell/clean_html.rb +++ b/lib/docs/filters/nushell/clean_html.rb @@ -3,6 +3,7 @@ module Docs class Nushell class CleanHtmlFilter < Filter def call + @doc = at_css('.theme-default-content > div:only-child', '.theme-default-content') css('footer').remove css('h1 a, h2 a').remove doc diff --git a/lib/docs/scrapers/nushell.rb b/lib/docs/scrapers/nushell.rb index ff078c23..c3e11e20 100644 --- a/lib/docs/scrapers/nushell.rb +++ b/lib/docs/scrapers/nushell.rb @@ -6,7 +6,7 @@ module Docs self.name = "Nushell" self.slug = "nushell" self.type = "nushell" - self.release = "0.84.0" + self.release = "0.85.0" self.links = { home: "https://www.nushell.sh/", code: "https://github.com/nushell/nushell", @@ -18,13 +18,12 @@ module Docs options[:follow_links] = true options[:title] = "Nushell" options[:attribution] = <<-HTML - Copyright © 2019 - 2023 The Nushell Project Developers + Copyright © 2019–2023 The Nushell Project Developers Licensed under the MIT License. HTML # latest version has a special URL that does not include the version identifier version do - self.release = "0.84.0" self.base_urls = [ "https://www.nushell.sh/book/", "https://www.nushell.sh/commands/"