mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
Update Django documentation (1.9.7, 1.8.13)
This commit is contained in:
parent
69d0b7fafe
commit
52618ad225
2 changed files with 7 additions and 3 deletions
|
@ -27,7 +27,7 @@ module Docs
|
|||
|
||||
css('div[class^="highlight-"]').each do |node|
|
||||
node.name = 'pre'
|
||||
node['class'] = case node['class']
|
||||
node['class'] = node['data-language'] = case node['class']
|
||||
when 'highlight-python' then 'python'
|
||||
when 'highlight-html+django' then 'markup'
|
||||
else ''
|
||||
|
@ -35,6 +35,10 @@ module Docs
|
|||
node.content = node.at_css('pre').content
|
||||
end
|
||||
|
||||
css('code > code').each do |node|
|
||||
node.before(node.children).remove
|
||||
end
|
||||
|
||||
doc
|
||||
end
|
||||
end
|
||||
|
|
|
@ -35,13 +35,13 @@ module Docs
|
|||
HTML
|
||||
|
||||
version '1.9' do
|
||||
self.release = '1.9.4'
|
||||
self.release = '1.9.7'
|
||||
self.dir = '/Users/Thibaut/DevDocs/Docs/Django19'
|
||||
self.base_url = 'https://docs.djangoproject.com/en/1.9/'
|
||||
end
|
||||
|
||||
version '1.8' do
|
||||
self.release = '1.8.11'
|
||||
self.release = '1.8.13'
|
||||
self.dir = '/Users/Thibaut/DevDocs/Docs/Django18'
|
||||
self.base_url = 'https://docs.djangoproject.com/en/1.8/'
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue