Skip to content

Commit 2b03580

Browse files
committed
(ramda) $! make docs generatable again
1 parent 11f1072 commit 2b03580

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

lib/docs/filters/ramda/entries.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ class Ramda
33
class EntriesFilter < Docs::EntriesFilter
44
def additional_entries
55
css('ul.toc li').map do |node|
6-
["R.#{node['data-name']}", node['data-name'], node['data-category'].sub('Relaction', 'Relation')]
6+
# As of 2025-06-20, `data-category` attribute is missing on https://ramdajs.com/ for Ramda versions < 0.29.0.
7+
# This results in missing type for entries – and docs cannot be generated.
8+
["R.#{node['data-name']}", node['data-name'], node['data-category']]
79
end
810
end
911
end

lib/docs/scrapers/ramda.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module Docs
22
class Ramda < UrlScraper
33
self.type = 'ramda'
4-
self.release = '0.27.0'
4+
self.release = '0.29.0'
55
self.base_url = "https://ramdajs.com/#{release}/docs/"
66
self.links = {
77
home: 'http://ramdajs.com/',
@@ -12,7 +12,7 @@ class Ramda < UrlScraper
1212

1313
options[:title] = 'Ramda'
1414
options[:attribution] = <<-HTML
15-
&copy; 2013&ndash;2020 Scott Sauyet and Michael Hurley<br>
15+
&copy; 2013&ndash;2024 Scott Sauyet and Michael Hurley<br>
1616
Licensed under the MIT License.
1717
HTML
1818

0 commit comments

Comments
 (0)