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

Update Phoenix documentation (1.3.0)

Thibaut Courouble 8 жил өмнө
parent
commit
08b824985e

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

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

+ 1 - 1
lib/docs/scrapers/phoenix.rb

@@ -1,7 +1,7 @@
 module Docs
   class Phoenix < UrlScraper
     self.type = 'elixir'
-    self.release = '1.2.3'
+    self.release = '1.3.0'
     self.base_url = 'https://hexdocs.pm/'
     self.root_path = 'phoenix/Phoenix.html'
     self.initial_paths = %w(