Update Django documentation (1.9.7, 1.8.13)

pull/421/merge
Thibaut Courouble 9 years ago
parent 69d0b7fafe
commit 52618ad225

@ -27,7 +27,7 @@ module Docs
css('div[class^="highlight-"]').each do |node| css('div[class^="highlight-"]').each do |node|
node.name = 'pre' node.name = 'pre'
node['class'] = case node['class'] node['class'] = node['data-language'] = case node['class']
when 'highlight-python' then 'python' when 'highlight-python' then 'python'
when 'highlight-html+django' then 'markup' when 'highlight-html+django' then 'markup'
else '' else ''
@ -35,6 +35,10 @@ module Docs
node.content = node.at_css('pre').content node.content = node.at_css('pre').content
end end
css('code > code').each do |node|
node.before(node.children).remove
end
doc doc
end end
end end

@ -35,13 +35,13 @@ module Docs
HTML HTML
version '1.9' do version '1.9' do
self.release = '1.9.4' self.release = '1.9.7'
self.dir = '/Users/Thibaut/DevDocs/Docs/Django19' self.dir = '/Users/Thibaut/DevDocs/Docs/Django19'
self.base_url = 'https://docs.djangoproject.com/en/1.9/' self.base_url = 'https://docs.djangoproject.com/en/1.9/'
end end
version '1.8' do version '1.8' do
self.release = '1.8.11' self.release = '1.8.13'
self.dir = '/Users/Thibaut/DevDocs/Docs/Django18' self.dir = '/Users/Thibaut/DevDocs/Docs/Django18'
self.base_url = 'https://docs.djangoproject.com/en/1.8/' self.base_url = 'https://docs.djangoproject.com/en/1.8/'
end end

Loading…
Cancel
Save