From 67f1139303332c3c7e3a7d82cccc05a927cdc1ab Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Sun, 5 Feb 2023 10:06:13 +0100 Subject: [PATCH] Update Erlang documentation (25.2.2) Fixes #1900. --- lib/docs/filters/erlang/clean_html.rb | 3 ++- lib/docs/scrapers/erlang.rb | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/docs/filters/erlang/clean_html.rb b/lib/docs/filters/erlang/clean_html.rb index 5b54667d..72169d67 100644 --- a/lib/docs/filters/erlang/clean_html.rb +++ b/lib/docs/filters/erlang/clean_html.rb @@ -2,11 +2,12 @@ module Docs class Erlang class CleanHtmlFilter < Filter def call - @doc = at_css('#content .innertube', '#content') + @doc = at_css('#content .innertube:only-child', '#content') # frontpage css('center:last-child').remove # copyright + css('.footer').remove # copyright css('center', '.example').each do |node| node.before(node.children).remove diff --git a/lib/docs/scrapers/erlang.rb b/lib/docs/scrapers/erlang.rb index 0330111a..90794603 100644 --- a/lib/docs/scrapers/erlang.rb +++ b/lib/docs/scrapers/erlang.rb @@ -36,12 +36,12 @@ module Docs ] options[:attribution] = <<-HTML - © 2010–2022 Ericsson AB
+ © 2010–2023 Ericsson AB
Licensed under the Apache License, Version 2.0. HTML version '25' do - self.release = '25.1' + self.release = '25.2.2' end version '24' do