1
0
Эх сурвалжийг харах

Merge pull request #1746 from opie4624/patch-1

Add Elixir v1.13.4
Simon Legner 3 жил өмнө
parent
commit
f8b0c100fd

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

@@ -5,7 +5,7 @@ module Docs
         css('h1 .app-vsn').remove
         css('h1 .app-vsn').remove
 
 
         if current_url.path.start_with?('/getting-started')
         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
         else
           name = at_css('h1').content.strip
           name = at_css('h1').content.strip
           name = name.split(' ').first unless name.start_with?('mix ') # ecto
           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" ]
         "https://elixir-lang.org/getting-started/introduction.html" ]
     end
     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
     version '1.12' do
       self.release = '1.12.0'
       self.release = '1.12.0'
       self.base_urls = [
       self.base_urls = [