Browse Source

Merge pull request #1746 from opie4624/patch-1

Add Elixir v1.13.4
Simon Legner 3 năm trước cách đây
mục cha
commit
f8b0c100fd
2 tập tin đã thay đổi với 14 bổ sung1 xóa
  1. 1 1
      lib/docs/filters/elixir/entries.rb
  2. 13 0
      lib/docs/scrapers/elixir.rb

+ 1 - 1
lib/docs/filters/elixir/entries.rb

@@ -5,7 +5,7 @@ module Docs
         css('h1 .app-vsn').remove
 
         if current_url.path.start_with?('/getting-started')
-          at_css('h1').content.strip.remove(/\.\z/)
+          (at_css('h1 > span') or at_css('h1')).content.strip.remove(/\.\z/)
         else
           name = at_css('h1').content.strip
           name = name.split(' ').first unless name.start_with?('mix ') # ecto

+ 13 - 0
lib/docs/scrapers/elixir.rb

@@ -33,6 +33,19 @@ module Docs
         "https://elixir-lang.org/getting-started/introduction.html" ]
     end
 
+    version '1.13' do
+      self.release = '1.13.4'
+      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.12' do
       self.release = '1.12.0'
       self.base_urls = [