[devdocsgjs/main: 708/1867] Update versions and filter
- From: Andy Holmes <andyholmes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devdocsgjs/main: 708/1867] Update versions and filter
- Date: Fri, 19 Nov 2021 23:47:25 +0000 (UTC)
commit d5bcd6fffa14bd9bf4aa10c070c9009e861045f4
Author: Jasper van Merle <jaspervmerle gmail com>
Date: Mon Aug 5 09:09:43 2019 +0200
Update versions and filter
lib/docs/filters/elixir/clean_html.rb | 5 +++++
lib/docs/scrapers/elixir.rb | 17 +++++++++++++++--
2 files changed, 20 insertions(+), 2 deletions(-)
---
diff --git a/lib/docs/filters/elixir/clean_html.rb b/lib/docs/filters/elixir/clean_html.rb
index 7ff3a86a..cf703389 100644
--- a/lib/docs/filters/elixir/clean_html.rb
+++ b/lib/docs/filters/elixir/clean_html.rb
@@ -57,6 +57,11 @@ module Docs
node.parent.after(node)
end
+ css('.signature').each do |node|
+ non_text_children = node.xpath('node()[not(self::text())]')
+ non_text_children.to_a.reverse.each { |child| node.parent.add_next_sibling(child) }
+ end
+
css('pre').each do |node|
node['data-language'] = 'elixir'
node.content = node.content
diff --git a/lib/docs/scrapers/elixir.rb b/lib/docs/scrapers/elixir.rb
index 076cb81d..f3cc94b2 100644
--- a/lib/docs/scrapers/elixir.rb
+++ b/lib/docs/scrapers/elixir.rb
@@ -33,8 +33,21 @@ module Docs
"https://elixir-lang.org/getting-started/introduction.html" ]
end
+ version '1.9' do
+ self.release = '1.9.1'
+ 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.8' do
- self.release = '1.8.1'
+ self.release = '1.8.2'
self.base_urls = [
"https://hexdocs.pm/elixir/#{release}/",
"https://hexdocs.pm/eex/#{release}/",
@@ -60,7 +73,7 @@ module Docs
end
version '1.6' do
- self.release = '1.6.5'
+ self.release = '1.6.6'
self.base_urls = [
"https://hexdocs.pm/elixir/#{release}/",
"https://hexdocs.pm/eex/#{release}/",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]