mirror of https://github.com/freeCodeCamp/devdocs
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1013 B
41 lines
1013 B
module Docs
|
|
|
|
class Nushell < UrlScraper
|
|
include MultipleBaseUrls
|
|
|
|
self.name = "Nushell"
|
|
self.slug = "nushell"
|
|
self.type = "nushell"
|
|
self.release = "0.84.0"
|
|
self.links = {
|
|
home: "https://www.nushell.sh/",
|
|
code: "https://github.com/nushell/nushell",
|
|
}
|
|
|
|
html_filters.push "nushell/clean_html", "nushell/entries", "nushell/fix_links"
|
|
|
|
options[:container] = '.theme-default-content'
|
|
options[:follow_links] = true
|
|
options[:title] = "Nushell"
|
|
options[:attribution] = <<-HTML
|
|
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/"
|
|
]
|
|
end
|
|
|
|
def get_latest_version(opts)
|
|
get_latest_github_release('nushell', 'nushell', opts)
|
|
end
|
|
|
|
end
|
|
|
|
end
|