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.
30 lines
674 B
30 lines
674 B
module Docs
|
|
class Nginx < UrlScraper
|
|
self.name = 'nginx'
|
|
self.type = 'nginx'
|
|
self.release = '1.13.1'
|
|
self.base_url = 'https://nginx.org/en/docs/'
|
|
self.links = {
|
|
home: 'https://nginx.org/',
|
|
code: 'http://hg.nginx.org/nginx'
|
|
}
|
|
|
|
html_filters.push 'nginx/clean_html', 'nginx/entries'
|
|
|
|
options[:container] = '#content'
|
|
|
|
options[:skip] = %w(
|
|
contributing_changes.html
|
|
dirindex.html
|
|
varindex.html)
|
|
|
|
options[:skip_patterns] = [/\/faq\//]
|
|
|
|
options[:attribution] = <<-HTML
|
|
© 2002-2017 Igor Sysoev<br>
|
|
© 2011-2017 Nginx, Inc.<br>
|
|
Licensed under the BSD License.
|
|
HTML
|
|
end
|
|
end
|