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.
43 lines
913 B
43 lines
913 B
9 years ago
|
module Docs
|
||
|
class Docker < UrlScraper
|
||
|
self.name = 'Docker'
|
||
|
self.slug = 'docker'
|
||
|
self.type = 'docker'
|
||
|
|
||
|
self.links = {
|
||
|
home: 'https://docker.com/',
|
||
|
code: 'https://github.com/docker/docker'
|
||
|
}
|
||
|
|
||
|
html_filters.push 'docker/clean_html', 'docker/entries'
|
||
|
|
||
|
options[:trailing_slash] = true
|
||
|
|
||
|
options[:only_patterns] = [
|
||
|
/\Aengine\//,
|
||
|
/\Acompose\//,
|
||
|
/\Amachine\//,
|
||
|
/\Aswarm\//
|
||
|
]
|
||
|
|
||
|
options[:skip] = [
|
||
|
"engine/installation/ubuntulinux/" # invalid document
|
||
|
]
|
||
|
|
||
|
options[:attribution] = <<-HTML
|
||
|
© 2016 Docker Inc.<br>
|
||
|
Licensed under the Apache 2 License.
|
||
|
HTML
|
||
|
|
||
|
version '1.11' do
|
||
|
self.release = '1.11'
|
||
|
self.base_url = "https://docs.docker.com/v#{self.version}/"
|
||
|
end
|
||
|
|
||
|
version '1.10' do
|
||
|
self.release = '1.10'
|
||
|
self.base_url = "https://docs.docker.com/v#{self.version}/"
|
||
|
end
|
||
|
end
|
||
|
end
|