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.
22 lines
563 B
22 lines
563 B
module Docs
|
|
class Elasticsearch < UrlScraper
|
|
self.name = 'ElasticSearch'
|
|
self.slug = 'elasticsearch'
|
|
self.type = 'elasticsearch'
|
|
self.version = '1.6'
|
|
self.base_url = "https://www.elastic.co/guide/en/elasticsearch/reference/#{version}/"
|
|
self.root_path = 'index.html'
|
|
|
|
html_filters.push 'elasticsearch/entries', 'elasticsearch/clean_html'
|
|
|
|
options[:container] = '#guide'
|
|
|
|
options[:attribution] = <<-HTML
|
|
© 2009–2015 Elasticsearch <br>
|
|
Licensed under the Apache License, Version 2.0.
|
|
HTML
|
|
|
|
end
|
|
end
|
|
|