|
|
|
@ -9,34 +9,39 @@ module Docs
|
|
|
|
|
options[:trailing_slash] = true
|
|
|
|
|
|
|
|
|
|
options[:only_patterns] = [/\Aengine\//, /\Acompose\//, /\Amachine\//]
|
|
|
|
|
|
|
|
|
|
options[:skip_patterns] = [/\Aengine\/api\/v/, /\Aengine\/installation/]
|
|
|
|
|
options[:skip] = %w(
|
|
|
|
|
swarm/scheduler/
|
|
|
|
|
swarm/swarm_at_scale/
|
|
|
|
|
swarm/reference/
|
|
|
|
|
engine/installation/linux/
|
|
|
|
|
engine/installation/cloud/
|
|
|
|
|
engine/installation/
|
|
|
|
|
engine/tutorials/
|
|
|
|
|
/
|
|
|
|
|
engine/userguide/
|
|
|
|
|
engine/extend/
|
|
|
|
|
engine/examples/
|
|
|
|
|
engine/reference/
|
|
|
|
|
engine/reference/api/
|
|
|
|
|
engine/security/
|
|
|
|
|
engine/security/trust/
|
|
|
|
|
engine/reference/api/docker_remote_api_v1.24/
|
|
|
|
|
engine/getstarted/linux_install_help/
|
|
|
|
|
machine/reference/
|
|
|
|
|
machine/drivers/
|
|
|
|
|
machine/examples/
|
|
|
|
|
compose/reference/
|
|
|
|
|
) # index pages
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
options[:fix_urls] = ->(url) do
|
|
|
|
|
url.sub! %r{\.md/?(?=#|\z)}, '/'
|
|
|
|
|
url.sub! '/index/', '/'
|
|
|
|
|
url
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
options[:replace_paths] = {
|
|
|
|
|
'engine/installation/ubuntulinux/' => 'engine/installation/linux/ubuntulinux/',
|
|
|
|
|
'engine/userguide/networking/dockernetworks/' => 'engine/userguide/networking/',
|
|
|
|
|
'engine/userguide/dockervolumes/' => 'engine/tutorials/dockervolumes/',
|
|
|
|
|
'engine/reference/logging/overview/' => 'engine/admin/logging/overview/',
|
|
|
|
|
'engine/userguide/dockervolumes/' => 'engine/tutorials/dockervolumes/'
|
|
|
|
|
'engine/reference/commandline/daemon/' => 'engine/reference/commandline/dockerd/',
|
|
|
|
|
'engine/reference/commandline/' => 'engine/reference/commandline/docker/',
|
|
|
|
|
'engine/reference/api/docker_remote_api/' => 'engine/api/',
|
|
|
|
|
'engine/swarm/how-swarm-mode-works/' => 'engine/swarm/how-swarm-mode-works/nodes/',
|
|
|
|
|
'engine/tutorials/dockerizing/' => 'engine/getstarted/step_one/',
|
|
|
|
|
'engine/tutorials/usingdocker/' => 'engine/getstarted/step_three/',
|
|
|
|
|
'engine/tutorials/dockerimages/' => 'engine/getstarted/step_four/',
|
|
|
|
|
'engine/tutorials/dockerrepos/' => 'engine/getstarted/step_six/'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
options[:attribution] = <<-HTML
|
|
|
|
@ -46,9 +51,18 @@ module Docs
|
|
|
|
|
Docker, Inc. and other parties may also have trademark rights in other terms used herein.
|
|
|
|
|
HTML
|
|
|
|
|
|
|
|
|
|
version '1.13' do
|
|
|
|
|
self.release = '1.13'
|
|
|
|
|
self.base_url = 'https://docs.docker.com/'
|
|
|
|
|
|
|
|
|
|
html_filters.push 'docker/entries', 'docker/clean_html'
|
|
|
|
|
|
|
|
|
|
options[:container] = '.container-fluid .row'
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
version '1.12' do
|
|
|
|
|
self.release = '1.12'
|
|
|
|
|
self.base_url = 'https://docs.docker.com/'
|
|
|
|
|
# self.base_url = 'https://docs.docker.com/'
|
|
|
|
|
|
|
|
|
|
html_filters.push 'docker/entries', 'docker/clean_html'
|
|
|
|
|
|
|
|
|
|