|
@@ -1,24 +1,36 @@
|
|
|
module Docs
|
|
module Docs
|
|
|
class Bootstrap < UrlScraper
|
|
class Bootstrap < UrlScraper
|
|
|
|
|
+ self.type = 'bootstrap'
|
|
|
|
|
+ self.links = {
|
|
|
|
|
+ home: 'https://getbootstrap.com/',
|
|
|
|
|
+ code: 'https://github.com/twbs/bootstrap'
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ options[:trailing_slash] = false
|
|
|
|
|
+
|
|
|
options[:attribution] = <<-HTML
|
|
options[:attribution] = <<-HTML
|
|
|
© 2011–2016 Twitter, Inc.<br>
|
|
© 2011–2016 Twitter, Inc.<br>
|
|
|
Code licensed under the MIT License.<br>
|
|
Code licensed under the MIT License.<br>
|
|
|
Documentation licensed under the Creative Commons Attribution License v3.0.
|
|
Documentation licensed under the Creative Commons Attribution License v3.0.
|
|
|
HTML
|
|
HTML
|
|
|
|
|
|
|
|
|
|
+ version '4' do
|
|
|
|
|
+ self.release = 'alpha.3'
|
|
|
|
|
+ self.base_url = 'https://v4-alpha.getbootstrap.com/'
|
|
|
|
|
+ self.root_path = 'getting-started/introduction'
|
|
|
|
|
+
|
|
|
|
|
+ html_filters.push 'bootstrap/entries_v4', 'bootstrap/clean_html_v4'
|
|
|
|
|
+
|
|
|
|
|
+ options[:only_patterns] = [/\Agetting-started\//, /\Alayout\//, /\Acontent\//, /\Acomponents\//]
|
|
|
|
|
+ end
|
|
|
|
|
+
|
|
|
version '3' do
|
|
version '3' do
|
|
|
- self.type = 'bsv3'
|
|
|
|
|
self.release = '3.3.7'
|
|
self.release = '3.3.7'
|
|
|
self.base_url = 'https://getbootstrap.com/'
|
|
self.base_url = 'https://getbootstrap.com/'
|
|
|
self.root_path = 'getting-started'
|
|
self.root_path = 'getting-started'
|
|
|
- self.links = {
|
|
|
|
|
- home: 'https://getbootstrap.com/',
|
|
|
|
|
- code: 'https://github.com/twbs/bootstrap'
|
|
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
html_filters.push 'bootstrap/entries_v3', 'bootstrap/clean_html_v3'
|
|
html_filters.push 'bootstrap/entries_v3', 'bootstrap/clean_html_v3'
|
|
|
|
|
|
|
|
- options[:trailing_slash] = false
|
|
|
|
|
options[:only] = %w(getting-started css components javascript)
|
|
options[:only] = %w(getting-started css components javascript)
|
|
|
end
|
|
end
|
|
|
|
|
|