added v3 scraper

pull/482/head
David 9 years ago
parent 85d54d2e34
commit 07904f6e1c

@ -9,15 +9,26 @@ module Docs
options[:skip_patterns] = [/features/, /support/, /pricing/, /introduction/, /community/, /search/, /news/, /changelog/, /index/]
options[:container] = 'div[id=content]'
version '2.6' do
self.release = '2.6.2930'
# For Version 2
version '2' do
self.release = '2'
self.base_url = 'https://craftcms.com/'
self.root_path = 'docs'
html_filters.push 'craft_cms/clean_html_v2', 'craft_cms/entries_v2'
end
# For Version 3
version '3' do
self.release = '3'
self.base_url = 'https://craftcms.com/3/'
self.root_path = 'docs'
options[:skip] = %w(docs/installing-and-updating)
html_filters.push 'craft_cms/clean_html_v3', 'craft_cms/entries_v3'
end
end
end

Loading…
Cancel
Save