Merge pull request #1545 from breunigs/add-elixir-1-12

add elixir 1.12 documentation
pull/1552/head
Bryan Hernández 4 years ago committed by GitHub
commit e486e4258a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -4,4 +4,9 @@
.type-detail { margin-bottom: 2em; }
.type-detail pre { margin-left: -1rem; }
._mobile & .type-detail pre { margin-left: 0; }
a.source {
float: right;
font-size: .9em;
}
}

@ -25,7 +25,7 @@ module Docs
end
def api
css('.hover-link', '.view-source', 'footer').remove
css('.hover-link', 'footer', ':not(.detail-header) > .view-source').remove
css('.summary').each do |node|
node.name = 'dl'
@ -51,7 +51,11 @@ module Docs
detail.css('.detail-header').each do |node|
node.name = 'h3'
node['id'] = id
source_href = node.at_css('.view-source').attr('href')
node.content = node.at_css('.signature').inner_text
node << %(<a href="#{source_href}" class="source">Source</a>)
end
detail.css('.docstring h2').each do |node|

@ -45,7 +45,8 @@ module Docs
css('.detail-header').map do |node|
id = node['id']
name = node.content.strip
# ignore text of children, i.e. source link
name = node.children.select(&:text?).map(&:content).join.strip
name.remove! %r{\(.*\)}
name.remove! 'left '

@ -33,6 +33,19 @@ module Docs
"https://elixir-lang.org/getting-started/introduction.html" ]
end
version '1.12' do
self.release = '1.12.0'
self.base_urls = [
"https://hexdocs.pm/elixir/#{release}/",
"https://hexdocs.pm/eex/#{release}/",
"https://hexdocs.pm/ex_unit/#{release}/",
"https://hexdocs.pm/iex/#{release}/",
"https://hexdocs.pm/logger/#{release}/",
"https://hexdocs.pm/mix/#{release}/",
'https://elixir-lang.org/getting-started/'
]
end
version '1.11' do
self.release = '1.11.2'
self.base_urls = [

Loading…
Cancel
Save