From d42f30c86ae07b8e5490d58f932d52bdd966fbd0 Mon Sep 17 00:00:00 2001 From: Thibaut Courouble Date: Sat, 1 Oct 2016 10:09:40 -0400 Subject: [PATCH] Update Erlang documentation (19.1, 18.3) --- lib/docs/filters/erlang/entries.rb | 3 +++ lib/docs/scrapers/erlang.rb | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/docs/filters/erlang/entries.rb b/lib/docs/filters/erlang/entries.rb index 24abc2a1..9ef50bd5 100644 --- a/lib/docs/filters/erlang/entries.rb +++ b/lib/docs/filters/erlang/entries.rb @@ -4,10 +4,13 @@ module Docs def get_name name = at_css('h1').content.strip name << " (#{type.remove('Guide: ')})" if name == '1 Introduction' + name.sub! %r{\A(\d+)}, '\1.' name end def get_type + name = at_css('h1').content.strip + if subpath.start_with?('lib/') type = subpath[/lib\/(.+?)[\-\/]/, 1] type << "/#{name}" if type == 'stdlib' && entry_nodes.length >= 10 diff --git a/lib/docs/scrapers/erlang.rb b/lib/docs/scrapers/erlang.rb index b35cd03e..b7becc6a 100644 --- a/lib/docs/scrapers/erlang.rb +++ b/lib/docs/scrapers/erlang.rb @@ -41,7 +41,7 @@ module Docs HTML version '19' do - self.release = '19.0' + self.release = '19.1' self.dir = '/Users/Thibaut/DevDocs/Docs/Erlang19' end