Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/docs/filters/playwright/clean_html.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ def call

css('.alert').each do |node|
node.name = 'blockquote'
node.css('svg').remove # warning icons
end

css('pre').each do |node|
Expand Down
2 changes: 1 addition & 1 deletion lib/docs/scrapers/angular.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def self.handle_redirects(version)
end

version do
self.release = '21.0.3'
self.release = '21.2.0'
self.base_url = 'https://angular.dev/'
self.root_path = 'overview'

Expand Down
2 changes: 1 addition & 1 deletion lib/docs/scrapers/bun.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class Bun < UrlScraper
home: 'https://leafletjs.com/',
code: 'https://github.com/oven-sh/bun'
}
self.release = '1.3.5'
self.release = '1.3.10'
self.base_url = "https://bun.com/docs/"
self.root_path = 'installation'

Expand Down
2 changes: 1 addition & 1 deletion lib/docs/scrapers/eslint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module Docs
class Eslint < UrlScraper
self.name = 'ESLint'
self.type = 'simple'
self.release = '9.25.0'
self.release = '10.0.2'
self.base_url = 'https://eslint.org/docs/latest/'
self.root_path = '/'
self.links = {
Expand Down
8 changes: 8 additions & 0 deletions lib/docs/scrapers/fish.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ class Fish < UrlScraper
Licensed under the GNU General Public License, version 2.
HTML

version '4.5' do
self.release = '4.5.0'
self.base_url = "https://fishshell.com/docs/#{version}/"

options[:skip].concat %w(genindex.html relnotes.html)
html_filters.push 'sphinx/clean_html', 'fish/clean_html_sphinx', 'fish/entries_sphinx'
end

version '4.4' do
self.release = '4.4.0'
self.base_url = "https://fishshell.com/docs/#{version}/"
Expand Down
2 changes: 1 addition & 1 deletion lib/docs/scrapers/jquery/jquery_core.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module Docs
class JqueryCore < Jquery
self.name = 'jQuery'
self.release = '3.7.1'
self.release = '4.0.0'
self.base_url = 'https://api.jquery.com/'
self.initial_paths = %w(/index/index)
self.links = {
Expand Down
4 changes: 2 additions & 2 deletions lib/docs/scrapers/node.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ class Node < UrlScraper
HTML

version do
self.release = '25.0.0'
self.release = '25.8.0'
self.base_url = 'https://nodejs.org/api/'
end

version '24 LTS' do
self.release = '24.10.0'
self.release = '24.14.0'
self.base_url = 'https://nodejs.org/dist/latest-v24.x/docs/api/'
end

Expand Down
8 changes: 7 additions & 1 deletion lib/docs/scrapers/numpy.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module Docs
# Requires downloading the documents to local disk first.
# Go to https://numpy.org/doc/, click "HTML+zip" to download
# (example url: https://numpy.org/doc/2.2/numpy-html.zip),
# (example url: https://numpy.org/doc/2.4/numpy-html.zip),
# then extract into "docs/numpy~#{version}/"
class Numpy < FileScraper
self.name = 'NumPy'
Expand Down Expand Up @@ -30,6 +30,12 @@ class Numpy < FileScraper
Licensed under the 3-clause BSD License.
HTML

version '2.4' do
self.release = '2.4'
self.base_url = "https://numpy.org/doc/#{self.version}/"
options[:container] = nil
end

version '2.2' do
self.release = '2.2'
self.base_url = "https://numpy.org/doc/#{self.version}/"
Expand Down
2 changes: 1 addition & 1 deletion lib/docs/scrapers/playwright.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module Docs
class Playwright < UrlScraper
self.name = 'Playwright'
self.type = 'simple'
self.release = '1.57.0'
self.release = '1.58.2'
self.base_url = 'https://playwright.dev/docs/'
self.root_path = 'intro'
self.links = {
Expand Down
2 changes: 1 addition & 1 deletion lib/docs/scrapers/python.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Python < UrlScraper
HTML

version '3.14' do
self.release = '3.14.2'
self.release = '3.14.3'
self.base_url = "https://docs.python.org/#{self.version}/"

html_filters.push 'python/entries_v3', 'sphinx/clean_html', 'python/clean_html'
Expand Down