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.
39 lines
1.4 KiB
39 lines
1.4 KiB
1 year ago
|
module Docs
|
||
|
|
||
|
class Hapi < UrlScraper
|
||
|
self.name = "Hapi"
|
||
|
self.slug = "hapi"
|
||
|
self.type = "hapi"
|
||
|
self.release = "21.3.2"
|
||
|
self.base_url = "https://hapi.dev/api/?v=#{self.release}"
|
||
|
self.links = {
|
||
|
home: "https://hapi.dev/",
|
||
|
code: "https://github.com/hapijs/hapi",
|
||
|
}
|
||
|
|
||
|
html_filters.push "hapi/entries", "hapi/clean_html"
|
||
|
|
||
|
options[:container] = '.markdown-wrapper'
|
||
|
options[:title] = "Hapi"
|
||
|
options[:attribution] = <<-HTML
|
||
|
Copyright © 2011-2022, Project contributors Copyright © 2011-2020, Sideway Inc Copyright © 2011-2014, Walmart
|
||
|
Copyright © 2011, Yahoo Inc.
|
||
|
All rights reserved.
|
||
|
|
||
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||
|
|
||
|
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||
|
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||
|
The names of any contributors may not be used to endorse or promote products derived from this software without specific prior written permission.
|
||
|
HTML
|
||
|
|
||
|
def get_latest_version(opts)
|
||
|
get_npm_version("@hapi/hapi", opts)
|
||
|
end
|
||
|
|
||
|
private
|
||
|
|
||
|
end
|
||
|
|
||
|
end
|