|
|
@@ -1,8 +1,7 @@
|
|
|
module Docs
|
|
|
- class Bottle < FileScraper
|
|
|
+ class Bottle < UrlScraper
|
|
|
self.type = 'sphinx'
|
|
|
- self.dir = ""
|
|
|
- self.root_path = "index.html"
|
|
|
+ self.root_path = 'index.html'
|
|
|
self.links = {
|
|
|
home: 'https://bottle.org/',
|
|
|
code: 'https://github.com/bottlepy/bottle'
|
|
|
@@ -12,24 +11,19 @@ module Docs
|
|
|
|
|
|
options[:container] = '.body'
|
|
|
|
|
|
- options[:skip] = %w(
|
|
|
- changelog.html
|
|
|
- development.html
|
|
|
- plugindev.html
|
|
|
- _modules/bottle.html
|
|
|
- )
|
|
|
+ options[:skip] = %w(changelog.html development.html _modules/bottle.html)
|
|
|
|
|
|
options[:attribution] = <<-HTML
|
|
|
- © 2009–2016, Marcel Hellkamp<br>
|
|
|
- Licensed under the MIT License.<br>
|
|
|
+ © 2016 Marcel Hellkamp<br>
|
|
|
+ Licensed under the MIT License.
|
|
|
HTML
|
|
|
|
|
|
- version '0.12' do # http://bottlepy.org/docs/0.12/bottle-docs.zip
|
|
|
+ version '0.12' do
|
|
|
self.release = '0.12'
|
|
|
self.base_url = "http://bottlepy.org/docs/#{self.version}/"
|
|
|
end
|
|
|
|
|
|
- version '0.11' do # http://bottlepy.org/docs/0.11/bottle-docs.zip
|
|
|
+ version '0.11' do
|
|
|
self.release = '0.11'
|
|
|
self.base_url = "http://bottlepy.org/docs/#{self.version}/"
|
|
|
end
|