History

Update and version Elixir documentation (1.4.0, 1.3.3)

Thibaut Courouble committed 9 years ago

Commit f60fa841 parent 55ea7e33 files · +38 −15Browse files

Unified · Split

3 files
  1. assets/javascripts/templates/pages/about_tmpl.coffee +1 −1
  2. lib/docs/filters/elixir/clean_html.rb +2 −2
  3. lib/docs/scrapers/elixir.rb +35 −12
assets/javascripts/templates/pages/about_tmpl.coffee+1−1
@@ -221,7 +221,7 @@ credits = [ · 220 unmodified lines
221 'https://raw.githubusercontent.com/emberjs/ember.js/master/LICENSE'221 'https://raw.githubusercontent.com/emberjs/ember.js/master/LICENSE'
222 ], [222 ], [
223 'Elixir',223 'Elixir',
224 '2012-2016 Plataformatec',224 '2012-2017 Plataformatec',
225 'Apache',225 'Apache',
226 'https://raw.githubusercontent.com/elixir-lang/elixir/master/LICENSE'226 'https://raw.githubusercontent.com/elixir-lang/elixir/master/LICENSE'
227 ], [227 ], [
lib/docs/filters/elixir/clean_html.rb+2−2
@@ -37,10 +37,10 @@ module Docs · 36 unmodified lines
37 end37 end
38 38
39 css('.details-list').each do |list|39 css('.details-list').each do |list|
40 type = list['id'].remove(/s\z/)40 type = list['id'].remove(/s\z/) if list['id']
41 list.css('.detail-header').each do |node|41 list.css('.detail-header').each do |node|
42 node.name = 'h3'42 node.name = 'h3'
43 node['class'] += " #{type}"43 node['class'] += " #{type}" if type
44 end44 end
45 end45 end
46 46
lib/docs/scrapers/elixir.rb+35−12
@@ -4,16 +4,7 @@ module Docs · 3 unmodified lines
4 4
5 self.name = 'Elixir'5 self.name = 'Elixir'
6 self.type = 'elixir'6 self.type = 'elixir'
7 self.release = '1.3.4'7 self.root_path = 'api-reference.html'
8 self.base_urls = ['http://elixir-lang.org/docs/stable/', 'http://elixir-lang.org/getting-started/']
9 self.root_path = 'elixir/api-reference.html'
10 self.initial_paths = %w(
11 eex/EEx.html
12 ex_unit/ExUnit.html
13 iex/IEx.html
14 logger/Logger.html
15 mix/Mix.html
16 )
17 self.links = {8 self.links = {
18 home: 'http://elixir-lang.org/',9 home: 'http://elixir-lang.org/',
19 code: 'https://github.com/elixir-lang/elixir'10 code: 'https://github.com/elixir-lang/elixir'
@@ -28,12 +19,44 @@ module Docs · 8 unmodified lines
28 options[:root_title] = 'Elixir'19 options[:root_title] = 'Elixir'
29 20
30 options[:attribution] = <<-HTML21 options[:attribution] = <<-HTML
31 &copy; 2012&ndash;2016 Plataformatec<br>22 &copy; 2012&ndash;2017 Plataformatec<br>
32 Licensed under the Apache License, Version 2.0.23 Licensed under the Apache License, Version 2.0.
33 HTML24 HTML
34 25
35 def initial_urls26 def initial_urls
36 super.tap { |urls| urls.last << 'introduction.html' }27 [ "https://hexdocs.pm/elixir/#{self.class.release}/api-reference.html",
28 "https://hexdocs.pm/eex/#{self.class.release}/EEx.html",
29 "https://hexdocs.pm/ex_unit/#{self.class.release}/ExUnit.html",
30 "https://hexdocs.pm/iex/#{self.class.release}/IEx.html",
31 "https://hexdocs.pm/logger/#{self.class.release}/Logger.html",
32 "https://hexdocs.pm/mix/#{self.class.release}/Mix.html",
33 "http://elixir-lang.org/getting-started/introduction.html" ]
34 end
35
36 version '1.4' do
37 self.release = '1.4.0'
38 self.base_urls = [
39 "https://hexdocs.pm/elixir/#{release}/",
40 "https://hexdocs.pm/eex/#{release}/",
41 "https://hexdocs.pm/ex_unit/#{release}/",
42 "https://hexdocs.pm/iex/#{release}/",
43 "https://hexdocs.pm/logger/#{release}/",
44 "https://hexdocs.pm/mix/#{release}/",
45 'http://elixir-lang.org/getting-started/'
46 ]
47 end
48
49 version '1.3' do
50 self.release = '1.3.3'
51 self.base_urls = [
52 "https://hexdocs.pm/elixir/#{release}/",
53 "https://hexdocs.pm/eex/#{release}/",
54 "https://hexdocs.pm/ex_unit/#{release}/",
55 "https://hexdocs.pm/iex/#{release}/",
56 "https://hexdocs.pm/logger/#{release}/",
57 "https://hexdocs.pm/mix/#{release}/",
58 'http://elixir-lang.org/getting-started/'
59 ]
37 end60 end
38 end61 end
39end62end

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t