From 42f5f550919b28a0ff296a8d234f31e46f7164e8 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 20 Dec 2024 18:00:42 +0000 Subject: [PATCH 01/72] chore(deps): update dependency sinatra to v4 [security] --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index 5c6e89c0..282c4693 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -133,7 +133,7 @@ GEM eventmachine (~> 1.0, >= 1.0.4) rack (>= 1, < 3) thor (1.3.2) - tilt (2.4.0) + tilt (2.5.0) tty-pager (0.14.0) strings (~> 0.2.0) tty-screen (~> 0.8) From a92e5144e50fe7d44c3216704357519a0a69b41f Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Wed, 25 Dec 2024 16:53:37 +0100 Subject: [PATCH 02/72] Update Ruby documentation (3.4.1) --- lib/docs/filters/rdoc/container.rb | 7 +++++-- lib/docs/scrapers/rdoc/ruby.rb | 6 +++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/lib/docs/filters/rdoc/container.rb b/lib/docs/filters/rdoc/container.rb index aea2b0f5..4732b02a 100644 --- a/lib/docs/filters/rdoc/container.rb +++ b/lib/docs/filters/rdoc/container.rb @@ -13,8 +13,11 @@ module Docs meta = Nokogiri::XML::Node.new 'dl', doc.document meta['class'] = 'meta' - if parent = at_css('#parent-class-section') - meta << %(
Parent:
#{parent.at_css('.link').inner_html.strip}
) + parent = at_css('#parent-class-section') + if parent && link = parent.at_css('.link') + meta << %(
Parent:
#{link.inner_html.strip}
) + elsif parent && link = parent.at_css('a') + meta << %(
Parent:
#{link.to_html}
) end if includes = at_css('#includes-section') diff --git a/lib/docs/scrapers/rdoc/ruby.rb b/lib/docs/scrapers/rdoc/ruby.rb index eef26f41..630cb81e 100644 --- a/lib/docs/scrapers/rdoc/ruby.rb +++ b/lib/docs/scrapers/rdoc/ruby.rb @@ -63,12 +63,16 @@ module Docs /\AXMP/] options[:attribution] = <<-HTML - Ruby Core © 1993–2022 Yukihiro Matsumoto
+ Ruby Core © 1993–2024 Yukihiro Matsumoto
Licensed under the Ruby License.
Ruby Standard Library © contributors
Licensed under their own licenses. HTML + version '3.4' do + self.release = '3.4.1' + end + version '3.3' do self.release = '3.3.0' end From ef75950e576b5be6247c78b41c6b93b25ed59d68 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 25 Dec 2024 19:21:39 +0000 Subject: [PATCH 03/72] chore(deps): update dependency nokogiri to v1.18.0 --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index df868a37..fbe12c49 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -61,7 +61,7 @@ GEM mustermann (3.0.3) ruby2_keywords (~> 0.0.1) newrelic_rpm (8.16.0) - nokogiri (1.17.2) + nokogiri (1.18.0) mini_portile2 (~> 2.8.2) racc (~> 1.4) options (2.3.2) From 97ca46f0a8d7020449640f14606f42bfbf5a9cf3 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 26 Dec 2024 12:03:04 +0000 Subject: [PATCH 04/72] chore(deps): update ruby/setup-ruby action to v1.206.0 --- .github/workflows/build.yml | 2 +- .github/workflows/schedule-doc-report.yml | 2 +- .github/workflows/test.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1d1ebf34..f15a6ea0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,7 +13,7 @@ jobs: steps: - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 - name: Set up Ruby - uses: ruby/setup-ruby@540484a3c0f308b08619664ec40bf6c371d172c3 # v1.205.0 + uses: ruby/setup-ruby@bfefad842bb982ff05b233bcbc1571d97a87e69f # v1.206.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run tests diff --git a/.github/workflows/schedule-doc-report.yml b/.github/workflows/schedule-doc-report.yml index 2fd07e3d..358df7dc 100644 --- a/.github/workflows/schedule-doc-report.yml +++ b/.github/workflows/schedule-doc-report.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 - name: Set up Ruby - uses: ruby/setup-ruby@540484a3c0f308b08619664ec40bf6c371d172c3 # v1.205.0 + uses: ruby/setup-ruby@bfefad842bb982ff05b233bcbc1571d97a87e69f # v1.206.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Generate report diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9caecfd7..cb6f3e85 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Set up Ruby - uses: ruby/setup-ruby@540484a3c0f308b08619664ec40bf6c371d172c3 # v1.205.0 + uses: ruby/setup-ruby@bfefad842bb982ff05b233bcbc1571d97a87e69f # v1.206.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run tests From 453769efc5ebb44de17fc271cc46df498912ca50 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 29 Dec 2024 22:40:44 +0000 Subject: [PATCH 05/72] chore(deps): update dependency nokogiri to v1.18.1 --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index fbe12c49..d959191b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -61,7 +61,7 @@ GEM mustermann (3.0.3) ruby2_keywords (~> 0.0.1) newrelic_rpm (8.16.0) - nokogiri (1.18.0) + nokogiri (1.18.1) mini_portile2 (~> 2.8.2) racc (~> 1.4) options (2.3.2) From 34a025014328d40c572bb1c2cb614abba18aa1c3 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 30 Dec 2024 23:21:04 +0000 Subject: [PATCH 06/72] chore(deps): update ruby/setup-ruby action to v1.207.0 --- .github/workflows/build.yml | 2 +- .github/workflows/schedule-doc-report.yml | 2 +- .github/workflows/test.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f15a6ea0..4186e823 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,7 +13,7 @@ jobs: steps: - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 - name: Set up Ruby - uses: ruby/setup-ruby@bfefad842bb982ff05b233bcbc1571d97a87e69f # v1.206.0 + uses: ruby/setup-ruby@4a9ddd6f338a97768b8006bf671dfbad383215f4 # v1.207.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run tests diff --git a/.github/workflows/schedule-doc-report.yml b/.github/workflows/schedule-doc-report.yml index 358df7dc..f648bf1d 100644 --- a/.github/workflows/schedule-doc-report.yml +++ b/.github/workflows/schedule-doc-report.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 - name: Set up Ruby - uses: ruby/setup-ruby@bfefad842bb982ff05b233bcbc1571d97a87e69f # v1.206.0 + uses: ruby/setup-ruby@4a9ddd6f338a97768b8006bf671dfbad383215f4 # v1.207.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Generate report diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cb6f3e85..358a8b01 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Set up Ruby - uses: ruby/setup-ruby@bfefad842bb982ff05b233bcbc1571d97a87e69f # v1.206.0 + uses: ruby/setup-ruby@4a9ddd6f338a97768b8006bf671dfbad383215f4 # v1.207.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run tests From 38f4be018f357d09f9f5de081f9fa20db7c4cedb Mon Sep 17 00:00:00 2001 From: Stefan Breunig <307954+breunigs@users.noreply.github.com> Date: Sun, 5 Jan 2025 14:11:46 +0100 Subject: [PATCH 07/72] Update Elixir documentation (1.18) --- lib/docs/filters/elixir/clean_html.rb | 4 +++- lib/docs/scrapers/elixir.rb | 12 ++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/lib/docs/filters/elixir/clean_html.rb b/lib/docs/filters/elixir/clean_html.rb index 6783afb2..2d656ff6 100644 --- a/lib/docs/filters/elixir/clean_html.rb +++ b/lib/docs/filters/elixir/clean_html.rb @@ -34,7 +34,9 @@ module Docs node.name = 'h3' node['id'] = id - source_href = node.at_css('a.icon-action[title="View Source"]').attr('href') + a = node.at_css('a.icon-action[title="View Source"]') + a ||= node.at_css('a.icon-action[aria-label="View Source"]') + source_href = a.attr('href') node.content = node.at_css('.signature').inner_text node << %(Source) diff --git a/lib/docs/scrapers/elixir.rb b/lib/docs/scrapers/elixir.rb index 47f361e6..14b3c164 100644 --- a/lib/docs/scrapers/elixir.rb +++ b/lib/docs/scrapers/elixir.rb @@ -30,6 +30,18 @@ module Docs "https://hexdocs.pm/mix/#{self.class.release}/Mix.html" ] end + version '1.18' do + self.release = '1.18.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}/" + ] + end + version '1.17' do self.release = '1.17.2' self.base_urls = [ From a2a3cb0a88055f9d0d2540901b402a0bdb9713fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20B=C3=B6rjesson?= Date: Fri, 10 Jan 2025 13:27:07 +0100 Subject: [PATCH 08/72] Update crystal docs to 1.15.0 --- lib/docs/scrapers/crystal.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/docs/scrapers/crystal.rb b/lib/docs/scrapers/crystal.rb index c06d2fa7..ee92d0d8 100644 --- a/lib/docs/scrapers/crystal.rb +++ b/lib/docs/scrapers/crystal.rb @@ -2,7 +2,7 @@ module Docs class Crystal < UrlScraper include MultipleBaseUrls self.type = 'crystal' - self.release = '1.14.0' + self.release = '1.15.0' self.base_urls = [ "https://crystal-lang.org/api/#{release}/", "https://crystal-lang.org/reference/#{release[0..2]}/", From 8f57d64457ada032d6f75bf887bbaea3c653a6f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20B=C3=B6rjesson?= Date: Fri, 10 Jan 2025 13:27:29 +0100 Subject: [PATCH 09/72] Bump copyright year --- lib/docs/scrapers/crystal.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/docs/scrapers/crystal.rb b/lib/docs/scrapers/crystal.rb index ee92d0d8..92faf468 100644 --- a/lib/docs/scrapers/crystal.rb +++ b/lib/docs/scrapers/crystal.rb @@ -34,7 +34,7 @@ module Docs HTML else <<-HTML - © 2012–2024 Manas Technology Solutions.
+ © 2012–2025 Manas Technology Solutions.
Licensed under the Apache License, Version 2.0. HTML end From 937326d437d3fbafcdb8b9f4432a2fa24e7feb0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20B=C3=B6rjesson?= Date: Sat, 11 Jan 2025 10:08:42 +0100 Subject: [PATCH 10/72] Exclude non-existing Crystal/PointerPairingHeap from scraping --- lib/docs/scrapers/crystal.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/docs/scrapers/crystal.rb b/lib/docs/scrapers/crystal.rb index 92faf468..caa178f2 100644 --- a/lib/docs/scrapers/crystal.rb +++ b/lib/docs/scrapers/crystal.rb @@ -21,6 +21,7 @@ module Docs options[:skip_patterns] = [ %r{\ACrystal/System/}, + %r{\ACrystal/PointerPairingHeap/}, %r{\AIO/Evented.html\z}, %r{\ARegex/PCRE2.html\z} ] From a4067b6506faf52584fcedff85acca263a99821a Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 11 Jan 2025 11:41:15 +0000 Subject: [PATCH 11/72] chore(deps): update dependency ruby to v3.4.1 --- .ruby-version | 2 +- .tool-versions | 2 +- Dockerfile | 2 +- Dockerfile-alpine | 2 +- Gemfile | 2 +- Gemfile.lock | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.ruby-version b/.ruby-version index 9c25013d..47b322c9 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -3.3.6 +3.4.1 diff --git a/.tool-versions b/.tool-versions index 5aa8e0c3..041df9aa 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1 +1 @@ -ruby 3.3.6 +ruby 3.4.1 diff --git a/Dockerfile b/Dockerfile index 7ec33c21..d52cd1de 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ruby:3.3.6 +FROM ruby:3.4.1 ENV LANG=C.UTF-8 ENV ENABLE_SERVICE_WORKER=true diff --git a/Dockerfile-alpine b/Dockerfile-alpine index 1d258221..67b3d968 100644 --- a/Dockerfile-alpine +++ b/Dockerfile-alpine @@ -1,4 +1,4 @@ -FROM ruby:3.3.6-alpine +FROM ruby:3.4.1-alpine ENV LANG=C.UTF-8 ENV ENABLE_SERVICE_WORKER=true diff --git a/Gemfile b/Gemfile index 9079b2c9..59403526 100644 --- a/Gemfile +++ b/Gemfile @@ -1,5 +1,5 @@ source 'https://rubygems.org' -ruby '3.3.6' +ruby '3.4.1' gem 'activesupport', require: false gem 'html-pipeline' diff --git a/Gemfile.lock b/Gemfile.lock index 0707225d..1ca44c06 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -187,7 +187,7 @@ DEPENDENCIES yajl-ruby RUBY VERSION - ruby 3.3.6p108 + ruby 3.4.1p0 BUNDLED WITH 2.4.6 From ce09955658ff5557dac0c7cd2b778fd97a6b2af6 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Sat, 11 Jan 2025 12:43:45 +0100 Subject: [PATCH 12/72] Update manifest_test for Ruby 3.4.1 --- test/lib/docs/core/manifest_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/lib/docs/core/manifest_test.rb b/test/lib/docs/core/manifest_test.rb index 60d5ba90..1a06cf28 100644 --- a/test/lib/docs/core/manifest_test.rb +++ b/test/lib/docs/core/manifest_test.rb @@ -64,7 +64,7 @@ class ManifestTest < Minitest::Spec it "includes the doc's meta representation" do json = manifest.as_json assert_equal 1, json.length - assert_equal "{\"name\"=>\"Test\", \"db_size\"=>776533, :attribution=>\"foo\", :alias=>nil}", json[0].to_s + assert_equal "{\"name\" => \"Test\", \"db_size\" => 776533, attribution: \"foo\", alias: nil}", json[0].to_s end end From 746f67c19066976db2ac41ef4ef89e259c7c8e42 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Sat, 11 Jan 2025 12:45:01 +0100 Subject: [PATCH 13/72] `bundle update progress_bar` for Ruby 3.4.1 --- Gemfile.lock | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index 1ca44c06..b3a40343 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -36,7 +36,8 @@ GEM exifr (1.4.0) ffi (1.15.5) fspath (3.1.2) - highline (2.0.3) + highline (3.1.2) + reline html-pipeline (2.14.3) activesupport (>= 2) nokogiri (>= 1.4) @@ -53,6 +54,7 @@ GEM image_optim (~> 0.19) image_size (3.3.0) in_threads (1.6.0) + io-console (0.8.0) logger (1.6.2) method_source (1.0.0) mini_portile2 (2.8.8) @@ -88,6 +90,8 @@ GEM rb-inotify (0.10.1) ffi (~> 1.0) redcarpet (3.6.0) + reline (0.6.0) + io-console (~> 0.5) rexml (3.3.9) rouge (1.11.1) rr (3.1.1) From 62d30c70f91b3bda334c993ca145434cbb8b2f76 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Sat, 11 Jan 2025 13:03:09 +0100 Subject: [PATCH 14/72] Update Bazel documentation (8.0.0) --- lib/docs/filters/bazel/clean_html.rb | 2 ++ lib/docs/scrapers/bazel.rb | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/lib/docs/filters/bazel/clean_html.rb b/lib/docs/filters/bazel/clean_html.rb index d772908e..ca827b36 100644 --- a/lib/docs/filters/bazel/clean_html.rb +++ b/lib/docs/filters/bazel/clean_html.rb @@ -7,8 +7,10 @@ module Docs css('devsite-feature-tooltip').remove css('devsite-thumb-rating').remove css('devsite-toc').remove + css('devsite-feedback').remove css('a.button-with-icon').remove css('button.devsite-heading-link').remove + css('.devsite-article-body > span:first-child[style="float: right; line-height: 36px"]').remove doc end diff --git a/lib/docs/scrapers/bazel.rb b/lib/docs/scrapers/bazel.rb index 3f2f9447..fe37137a 100644 --- a/lib/docs/scrapers/bazel.rb +++ b/lib/docs/scrapers/bazel.rb @@ -12,6 +12,11 @@ module Docs Licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. HTML + version '8.0' do + self.release = '8.0.0' + self.base_url = 'https://bazel.build/versions/8.0.0/reference/be/' + end + version '7.0' do self.release = '7.0.0' self.base_url = 'https://bazel.build/versions/7.0.0/reference/be/' From 570b3f3ce0b66aaa6f8c854fe52dd92100018723 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Sat, 11 Jan 2025 13:18:32 +0100 Subject: [PATCH 15/72] Update FastAPI documentation (0.115.6) --- lib/docs/scrapers/fastapi.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/docs/scrapers/fastapi.rb b/lib/docs/scrapers/fastapi.rb index ed857934..d5b3f4e5 100644 --- a/lib/docs/scrapers/fastapi.rb +++ b/lib/docs/scrapers/fastapi.rb @@ -2,7 +2,7 @@ module Docs class Fastapi < UrlScraper self.name = 'FastAPI' self.type = 'fastapi' - self.release = '0.111.1' + self.release = '0.115.6' self.base_url = 'https://fastapi.tiangolo.com/' self.root_path = '/' self.links = { From 3e95aa2cd782e699bde61d8a6d610df18b9b0e1f Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Sat, 11 Jan 2025 13:24:15 +0100 Subject: [PATCH 16/72] Update Ruby on Rails documentation (8.0.1) --- lib/docs/scrapers/rdoc/rails.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/docs/scrapers/rdoc/rails.rb b/lib/docs/scrapers/rdoc/rails.rb index 414bd4a5..03aad4a3 100644 --- a/lib/docs/scrapers/rdoc/rails.rb +++ b/lib/docs/scrapers/rdoc/rails.rb @@ -75,6 +75,10 @@ module Docs end end + version '8.0' do + self.release = '8.0.1' + end + version '7.2' do self.release = '7.2.1' end From 264b5cc2640411a18ba1747fc71ee09b632d7a58 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Sat, 11 Jan 2025 13:28:10 +0100 Subject: [PATCH 17/72] Update Ruby / Minitest documentation (5.25.4) --- docs/file-scrapers.md | 11 +++++++++++ lib/docs/scrapers/rdoc/minitest.rb | 7 +------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/docs/file-scrapers.md b/docs/file-scrapers.md index 2f8fd8f3..9ab9739e 100644 --- a/docs/file-scrapers.md +++ b/docs/file-scrapers.md @@ -254,6 +254,17 @@ done ### Nokogiri ### Ruby / Minitest + +```sh +git clone https://github.com/seattlerb/minitest +cd minitest/ +bundle install +bundle add rdoc hoe +bundle exec rak docs +cd .. +cp -r minitest/docs $DEVDOCS/docs/minitest +``` + ### Ruby on Rails * Download a release at https://github.com/rails/rails/releases or clone https://github.com/rails/rails.git (checkout to the branch of the rails' version that is going to be scraped) * Open `railties/lib/rails/api/task.rb` and comment out any code related to sdoc (`configure_sdoc`) diff --git a/lib/docs/scrapers/rdoc/minitest.rb b/lib/docs/scrapers/rdoc/minitest.rb index 2ff12cf4..a5023435 100644 --- a/lib/docs/scrapers/rdoc/minitest.rb +++ b/lib/docs/scrapers/rdoc/minitest.rb @@ -1,14 +1,9 @@ module Docs class Minitest < Rdoc - # Instructions: - # 1. Run "gem update rdoc hoe" - # 2. Download the source code at https://github.com/seattlerb/minitest - # 3. Run "rake docs" (in the Minitest directory) - # 4. Copy the "docs" directory to "docs/minitest" self.name = 'Ruby / Minitest' self.slug = 'minitest' - self.release = '5.20.0' + self.release = '5.25.4' self.links = { code: 'https://github.com/minitest/minitest' } From c70878abe04bbe8d031a8b8c42def2f2d7712c38 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Sat, 11 Jan 2025 15:51:47 +0100 Subject: [PATCH 18/72] Update scikit-learn documentation (1.6.1) --- lib/docs/filters/scikit_learn/clean_html.rb | 1 + lib/docs/scrapers/scikit_learn.rb | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/docs/filters/scikit_learn/clean_html.rb b/lib/docs/filters/scikit_learn/clean_html.rb index 530df12d..afcd2c2a 100644 --- a/lib/docs/filters/scikit_learn/clean_html.rb +++ b/lib/docs/filters/scikit_learn/clean_html.rb @@ -2,6 +2,7 @@ module Docs class ScikitLearn class CleanHtmlFilter < Filter def call + @doc = at_css('main article', 'main') if root_page? css('.row').each do |node| html = '
' diff --git a/lib/docs/scrapers/scikit_learn.rb b/lib/docs/scrapers/scikit_learn.rb index 45268c4b..564b5a30 100644 --- a/lib/docs/scrapers/scikit_learn.rb +++ b/lib/docs/scrapers/scikit_learn.rb @@ -3,8 +3,9 @@ module Docs self.name = 'scikit-learn' self.slug = 'scikit_learn' self.type = 'sphinx' - self.release = '1.1.3' - self.base_url = "https://scikit-learn.org/1.1/" + self.release = '1.6.1' + v = self.release[/\d+\.\d+/] + self.base_url = "https://scikit-learn.org/#{v}/" self.root_path = 'index.html' self.force_gzip = true self.links = { @@ -14,7 +15,6 @@ module Docs html_filters.push 'scikit_learn/entries', 'scikit_learn/clean_html', 'sphinx/clean_html', 'title' - options[:container] = ->(filter) { filter.root_page? ? 'body > .container' : '#sk-page-content-wrapper > .body' } options[:skip] = %w(modules/generated/sklearn.experimental.enable_iterative_imputer.html modules/generated/sklearn.experimental.enable_hist_gradient_boosting.html) options[:only_patterns] = [/\Amodules/, /\Adatasets/, /\Atutorial/, /\Aauto_examples/] @@ -24,7 +24,7 @@ module Docs options[:max_image_size] = 256_000 options[:attribution] = <<-HTML - © 2007–2022 The scikit-learn developers
+ © 2007–2025 The scikit-learn developers
Licensed under the 3-clause BSD License. HTML From 1dacda29a8ad1c6851c03a88522aa56ec07bac84 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Sat, 11 Jan 2025 16:06:10 +0100 Subject: [PATCH 19/72] Update scikit-image documentation (0.25.0) --- lib/docs/filters/scikit_image/entries.rb | 3 ++- lib/docs/scrapers/scikit_image.rb | 8 +++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/lib/docs/filters/scikit_image/entries.rb b/lib/docs/filters/scikit_image/entries.rb index 108eb2ce..f3ec975b 100644 --- a/lib/docs/filters/scikit_image/entries.rb +++ b/lib/docs/filters/scikit_image/entries.rb @@ -3,7 +3,8 @@ module Docs class EntriesFilter < Docs::EntriesFilter def get_name name = at_css('h1').content.strip - name.remove! "\u{00b6}" + name.delete_suffix! "¶" + name.delete_suffix! "#" if slug.start_with?('api') name.remove! 'Module: ' diff --git a/lib/docs/scrapers/scikit_image.rb b/lib/docs/scrapers/scikit_image.rb index 368e03f7..66014c0f 100644 --- a/lib/docs/scrapers/scikit_image.rb +++ b/lib/docs/scrapers/scikit_image.rb @@ -3,8 +3,10 @@ module Docs self.name = 'scikit-image' self.slug = 'scikit_image' self.type = 'sphinx' - self.release = '0.18.1' - self.base_url = 'https://scikit-image.org/docs/0.18.x/' + self.release = '0.25.0' + v = self.release[/\d+\.\d+/] + self.base_url = "https://scikit-image.org/docs/#{v}.x/" + self.initial_paths = %w(/ /api/ /user_guide/) self.links = { home: 'https://scikit-image.org/', code: 'https://github.com/scikit-image/scikit-image' @@ -12,7 +14,7 @@ module Docs html_filters.push 'scikit_image/entries', 'sphinx/clean_html' - options[:container] = '.span9' + options[:container] = 'main article' options[:skip] = %w(api_changes.html) options[:only_patterns] = [/\Aapi/, /\Auser_guide/] From 251f92e291f0aa68f4aecd764bc0b41c3f5e6c77 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 15 Jan 2025 21:18:10 +0000 Subject: [PATCH 20/72] chore(deps): update ruby/setup-ruby action to v1.208.0 --- .github/workflows/build.yml | 2 +- .github/workflows/schedule-doc-report.yml | 2 +- .github/workflows/test.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4186e823..e0c56856 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,7 +13,7 @@ jobs: steps: - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 - name: Set up Ruby - uses: ruby/setup-ruby@4a9ddd6f338a97768b8006bf671dfbad383215f4 # v1.207.0 + uses: ruby/setup-ruby@868b3f088412f139260f27f5b148179b9dd6b008 # v1.208.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run tests diff --git a/.github/workflows/schedule-doc-report.yml b/.github/workflows/schedule-doc-report.yml index f648bf1d..0eef028e 100644 --- a/.github/workflows/schedule-doc-report.yml +++ b/.github/workflows/schedule-doc-report.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 - name: Set up Ruby - uses: ruby/setup-ruby@4a9ddd6f338a97768b8006bf671dfbad383215f4 # v1.207.0 + uses: ruby/setup-ruby@868b3f088412f139260f27f5b148179b9dd6b008 # v1.208.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Generate report diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 358a8b01..bbbab2a9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Set up Ruby - uses: ruby/setup-ruby@4a9ddd6f338a97768b8006bf671dfbad383215f4 # v1.207.0 + uses: ruby/setup-ruby@868b3f088412f139260f27f5b148179b9dd6b008 # v1.208.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run tests From 5fef97636a2c4c6289960044350b7800f2eef0ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20B=C3=B6rjesson?= Date: Fri, 17 Jan 2025 09:16:05 +0100 Subject: [PATCH 21/72] Use fully qualified name --- lib/docs/filters/crystal/entries.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/docs/filters/crystal/entries.rb b/lib/docs/filters/crystal/entries.rb index 3727bdf2..151efbdc 100644 --- a/lib/docs/filters/crystal/entries.rb +++ b/lib/docs/filters/crystal/entries.rb @@ -16,8 +16,12 @@ module Docs name else return at_css('h1').content.strip unless at_css('.type-name') - name = at_css('.type-name').children.last.content.strip + name = at_css('.type-name').children.reject { |n| n.matches?('.kind') } + name.map! { |n| n.text.strip } + name.reject! &:empty? + name = name.join name.remove! %r{\(.*\)} + name.strip! name end end From 081b3ea7dd9971ff509011a18c092531300525b3 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 17 Jan 2025 13:42:11 +0000 Subject: [PATCH 22/72] chore(deps): update ruby/setup-ruby action to v1.209.0 --- .github/workflows/build.yml | 2 +- .github/workflows/schedule-doc-report.yml | 2 +- .github/workflows/test.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e0c56856..bd921fcd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,7 +13,7 @@ jobs: steps: - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 - name: Set up Ruby - uses: ruby/setup-ruby@868b3f088412f139260f27f5b148179b9dd6b008 # v1.208.0 + uses: ruby/setup-ruby@7a6302104fbeea3c6aaa43b1b91e08f7d6623279 # v1.209.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run tests diff --git a/.github/workflows/schedule-doc-report.yml b/.github/workflows/schedule-doc-report.yml index 0eef028e..74bf07e5 100644 --- a/.github/workflows/schedule-doc-report.yml +++ b/.github/workflows/schedule-doc-report.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 - name: Set up Ruby - uses: ruby/setup-ruby@868b3f088412f139260f27f5b148179b9dd6b008 # v1.208.0 + uses: ruby/setup-ruby@7a6302104fbeea3c6aaa43b1b91e08f7d6623279 # v1.209.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Generate report diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bbbab2a9..a27e4f75 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Set up Ruby - uses: ruby/setup-ruby@868b3f088412f139260f27f5b148179b9dd6b008 # v1.208.0 + uses: ruby/setup-ruby@7a6302104fbeea3c6aaa43b1b91e08f7d6623279 # v1.209.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run tests From a26af28a093126fd8db43db397371dfb053dc930 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 17 Jan 2025 20:24:06 +0000 Subject: [PATCH 23/72] chore(deps): update ruby/setup-ruby action to v1.210.0 --- .github/workflows/build.yml | 2 +- .github/workflows/schedule-doc-report.yml | 2 +- .github/workflows/test.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bd921fcd..cc0117f3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,7 +13,7 @@ jobs: steps: - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 - name: Set up Ruby - uses: ruby/setup-ruby@7a6302104fbeea3c6aaa43b1b91e08f7d6623279 # v1.209.0 + uses: ruby/setup-ruby@1d542747a7bad621e02253945b8491142044d3b7 # v1.210.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run tests diff --git a/.github/workflows/schedule-doc-report.yml b/.github/workflows/schedule-doc-report.yml index 74bf07e5..e03ef326 100644 --- a/.github/workflows/schedule-doc-report.yml +++ b/.github/workflows/schedule-doc-report.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 - name: Set up Ruby - uses: ruby/setup-ruby@7a6302104fbeea3c6aaa43b1b91e08f7d6623279 # v1.209.0 + uses: ruby/setup-ruby@1d542747a7bad621e02253945b8491142044d3b7 # v1.210.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Generate report diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a27e4f75..d9460ec2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Set up Ruby - uses: ruby/setup-ruby@7a6302104fbeea3c6aaa43b1b91e08f7d6623279 # v1.209.0 + uses: ruby/setup-ruby@1d542747a7bad621e02253945b8491142044d3b7 # v1.210.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run tests From 5883978fdaf19f77520b2223af2648f181edf282 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 18 Jan 2025 13:15:45 +0000 Subject: [PATCH 24/72] chore(deps): update ruby/setup-ruby action to v1.211.0 --- .github/workflows/build.yml | 2 +- .github/workflows/schedule-doc-report.yml | 2 +- .github/workflows/test.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cc0117f3..7c65b2ea 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,7 +13,7 @@ jobs: steps: - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 - name: Set up Ruby - uses: ruby/setup-ruby@1d542747a7bad621e02253945b8491142044d3b7 # v1.210.0 + uses: ruby/setup-ruby@87b48937c9ec5a4ccd60bd3c5177d64108125904 # v1.211.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run tests diff --git a/.github/workflows/schedule-doc-report.yml b/.github/workflows/schedule-doc-report.yml index e03ef326..e82eb8c5 100644 --- a/.github/workflows/schedule-doc-report.yml +++ b/.github/workflows/schedule-doc-report.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 - name: Set up Ruby - uses: ruby/setup-ruby@1d542747a7bad621e02253945b8491142044d3b7 # v1.210.0 + uses: ruby/setup-ruby@87b48937c9ec5a4ccd60bd3c5177d64108125904 # v1.211.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Generate report diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d9460ec2..d306b17e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Set up Ruby - uses: ruby/setup-ruby@1d542747a7bad621e02253945b8491142044d3b7 # v1.210.0 + uses: ruby/setup-ruby@87b48937c9ec5a4ccd60bd3c5177d64108125904 # v1.211.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run tests From 61a4299c64055e4dc8fc8b8862499f8074230033 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 19 Jan 2025 00:50:34 +0000 Subject: [PATCH 25/72] chore(deps): update ruby/setup-ruby action to v1.213.0 --- .github/workflows/build.yml | 2 +- .github/workflows/schedule-doc-report.yml | 2 +- .github/workflows/test.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7c65b2ea..19b746f1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,7 +13,7 @@ jobs: steps: - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 - name: Set up Ruby - uses: ruby/setup-ruby@87b48937c9ec5a4ccd60bd3c5177d64108125904 # v1.211.0 + uses: ruby/setup-ruby@28c4deda893d5a96a6b2d958c5b47fc18d65c9d3 # v1.213.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run tests diff --git a/.github/workflows/schedule-doc-report.yml b/.github/workflows/schedule-doc-report.yml index e82eb8c5..dec53a8a 100644 --- a/.github/workflows/schedule-doc-report.yml +++ b/.github/workflows/schedule-doc-report.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 - name: Set up Ruby - uses: ruby/setup-ruby@87b48937c9ec5a4ccd60bd3c5177d64108125904 # v1.211.0 + uses: ruby/setup-ruby@28c4deda893d5a96a6b2d958c5b47fc18d65c9d3 # v1.213.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Generate report diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d306b17e..2e64d09d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Set up Ruby - uses: ruby/setup-ruby@87b48937c9ec5a4ccd60bd3c5177d64108125904 # v1.211.0 + uses: ruby/setup-ruby@28c4deda893d5a96a6b2d958c5b47fc18d65c9d3 # v1.213.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run tests From ee68e5aa68f3d4d353670c43eec72a613e23b96e Mon Sep 17 00:00:00 2001 From: Benjamin Cook Date: Sun, 19 Jan 2025 20:32:58 +1000 Subject: [PATCH 26/72] Fix a typo in the name of the docker image in the readme --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 97df20a1..fa83c7e0 100644 --- a/README.md +++ b/README.md @@ -25,12 +25,12 @@ Unless you wish to contribute to the project, we recommend using the hosted vers The easiest way to run DevDocs locally is using Docker: ```sh -docker run --name devdocs -d -p 9292:9292 ghcr.io/freecodcamp/devdocs:latest +docker run --name devdocs -d -p 9292:9292 ghcr.io/freecodecamp/devdocs:latest ``` This will start DevDocs at [localhost:9292](http://localhost:9292). We provide both regular and Alpine-based images: -- `ghcr.io/freecodcamp/devdocs:latest` - Standard image -- `ghcr.io/freecodcamp/devdocs:latest-alpine` - Alpine-based (smaller size) +- `ghcr.io/freecodecamp/devdocs:latest` - Standard image +- `ghcr.io/freecodecamp/devdocs:latest-alpine` - Alpine-based (smaller size) Images are automatically built and updated monthly with the latest documentation. From b6cb76486c6792ed4d675adbc1d03b505179852b Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 19 Jan 2025 21:14:11 +0000 Subject: [PATCH 27/72] chore(deps): update dependency nokogiri to v1.18.2 --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index b3a40343..59b75258 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -63,7 +63,7 @@ GEM mustermann (3.0.3) ruby2_keywords (~> 0.0.1) newrelic_rpm (8.16.0) - nokogiri (1.18.1) + nokogiri (1.18.2) mini_portile2 (~> 2.8.2) racc (~> 1.4) options (2.3.2) From 401aca0f3abad08debc0cf0a0ba43a14b2d4c70e Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 20 Jan 2025 13:59:48 +0000 Subject: [PATCH 28/72] chore(deps): update dependency terser to v1.2.5 --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index 59b75258..dceb7f0a 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -130,7 +130,7 @@ GEM strings-ansi (0.2.0) terminal-table (3.0.2) unicode-display_width (>= 1.1.1, < 3) - terser (1.2.4) + terser (1.2.5) execjs (>= 0.3.0, < 3) thin (1.8.2) daemons (~> 1.0, >= 1.0.9) From afeaa76e793b50f9c3a2c4f9ac90cb92dbc75809 Mon Sep 17 00:00:00 2001 From: Oliver Eyton-Williams Date: Tue, 21 Jan 2025 11:17:46 +0100 Subject: [PATCH 29/72] Revert "chore(deps): update ruby/setup-ruby action to v1.208.0" This reverts commit 251f92e291f0aa68f4aecd764bc0b41c3f5e6c77. Test to see if this fixes the deployments --- .github/workflows/build.yml | 2 +- .github/workflows/schedule-doc-report.yml | 2 +- .github/workflows/test.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 19b746f1..4186e823 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,7 +13,7 @@ jobs: steps: - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 - name: Set up Ruby - uses: ruby/setup-ruby@28c4deda893d5a96a6b2d958c5b47fc18d65c9d3 # v1.213.0 + uses: ruby/setup-ruby@4a9ddd6f338a97768b8006bf671dfbad383215f4 # v1.207.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run tests diff --git a/.github/workflows/schedule-doc-report.yml b/.github/workflows/schedule-doc-report.yml index dec53a8a..f648bf1d 100644 --- a/.github/workflows/schedule-doc-report.yml +++ b/.github/workflows/schedule-doc-report.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 - name: Set up Ruby - uses: ruby/setup-ruby@28c4deda893d5a96a6b2d958c5b47fc18d65c9d3 # v1.213.0 + uses: ruby/setup-ruby@4a9ddd6f338a97768b8006bf671dfbad383215f4 # v1.207.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Generate report diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2e64d09d..358a8b01 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Set up Ruby - uses: ruby/setup-ruby@28c4deda893d5a96a6b2d958c5b47fc18d65c9d3 # v1.213.0 + uses: ruby/setup-ruby@4a9ddd6f338a97768b8006bf671dfbad383215f4 # v1.207.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run tests From a9d3e21d5424dcf5ae5609c971884a02c8dd1463 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 21 Jan 2025 10:20:32 +0000 Subject: [PATCH 30/72] chore(deps): update ruby/setup-ruby action to v1.213.0 --- .github/workflows/build.yml | 2 +- .github/workflows/schedule-doc-report.yml | 2 +- .github/workflows/test.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4186e823..19b746f1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,7 +13,7 @@ jobs: steps: - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 - name: Set up Ruby - uses: ruby/setup-ruby@4a9ddd6f338a97768b8006bf671dfbad383215f4 # v1.207.0 + uses: ruby/setup-ruby@28c4deda893d5a96a6b2d958c5b47fc18d65c9d3 # v1.213.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run tests diff --git a/.github/workflows/schedule-doc-report.yml b/.github/workflows/schedule-doc-report.yml index f648bf1d..dec53a8a 100644 --- a/.github/workflows/schedule-doc-report.yml +++ b/.github/workflows/schedule-doc-report.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 - name: Set up Ruby - uses: ruby/setup-ruby@4a9ddd6f338a97768b8006bf671dfbad383215f4 # v1.207.0 + uses: ruby/setup-ruby@28c4deda893d5a96a6b2d958c5b47fc18d65c9d3 # v1.213.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Generate report diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 358a8b01..2e64d09d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Set up Ruby - uses: ruby/setup-ruby@4a9ddd6f338a97768b8006bf671dfbad383215f4 # v1.207.0 + uses: ruby/setup-ruby@28c4deda893d5a96a6b2d958c5b47fc18d65c9d3 # v1.213.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run tests From 855cc081c65cebb251da61f54daae535de912f53 Mon Sep 17 00:00:00 2001 From: Oliver Eyton-Williams Date: Tue, 21 Jan 2025 12:17:23 +0100 Subject: [PATCH 31/72] fix: prevent compression with Accept-Encoding It seems that (apparently randomly) the index.json files are getting compressed and causing URI.open to fail. Possibly, it's a little unclear. Nonetheless, sending the "Accept-Encoding" of "identity" seems to do the trick. --- lib/tasks/docs.thor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/docs.thor b/lib/tasks/docs.thor index 5b85a8b0..6e953e4f 100644 --- a/lib/tasks/docs.thor +++ b/lib/tasks/docs.thor @@ -239,7 +239,7 @@ class DocsCLI < Thor ['index.json', 'meta.json'].each do |filename| json = "https://documents.devdocs.io/#{doc.path}/#{filename}?#{time}" begin - URI.open(json) do |file| + URI.open(json, "Accept-Encoding" => "identity") do |file| mutex.synchronize do path = File.join(dir, filename) File.write(path, file.read) From 798a8af90237b1180719438005dbed20ebeb9769 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 21 Jan 2025 14:07:52 +0000 Subject: [PATCH 32/72] chore(deps): update dependency sinatra to v4 [security] --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index dceb7f0a..a0ab80a9 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -137,7 +137,7 @@ GEM eventmachine (~> 1.0, >= 1.0.4) rack (>= 1, < 3) thor (1.3.2) - tilt (2.5.0) + tilt (2.6.0) tty-pager (0.14.0) strings (~> 0.2.0) tty-screen (~> 0.8) From 48bc1807e02427bf4e4c688248d7d070ffa50161 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 27 Jan 2025 18:33:13 +0000 Subject: [PATCH 33/72] chore(deps): update ruby/setup-ruby action to v1.214.0 --- .github/workflows/build.yml | 2 +- .github/workflows/schedule-doc-report.yml | 2 +- .github/workflows/test.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 19b746f1..0abefe4f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,7 +13,7 @@ jobs: steps: - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 - name: Set up Ruby - uses: ruby/setup-ruby@28c4deda893d5a96a6b2d958c5b47fc18d65c9d3 # v1.213.0 + uses: ruby/setup-ruby@1287d2b408066abada82d5ad1c63652e758428d9 # v1.214.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run tests diff --git a/.github/workflows/schedule-doc-report.yml b/.github/workflows/schedule-doc-report.yml index dec53a8a..e689dc63 100644 --- a/.github/workflows/schedule-doc-report.yml +++ b/.github/workflows/schedule-doc-report.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 - name: Set up Ruby - uses: ruby/setup-ruby@28c4deda893d5a96a6b2d958c5b47fc18d65c9d3 # v1.213.0 + uses: ruby/setup-ruby@1287d2b408066abada82d5ad1c63652e758428d9 # v1.214.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Generate report diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2e64d09d..35ca2244 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Set up Ruby - uses: ruby/setup-ruby@28c4deda893d5a96a6b2d958c5b47fc18d65c9d3 # v1.213.0 + uses: ruby/setup-ruby@1287d2b408066abada82d5ad1c63652e758428d9 # v1.214.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run tests From 9f62aa30cf82781848c281030ab57f8b67002e99 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 30 Jan 2025 13:46:47 +0000 Subject: [PATCH 34/72] chore(deps): update ruby/setup-ruby action to v1.215.0 --- .github/workflows/build.yml | 2 +- .github/workflows/schedule-doc-report.yml | 2 +- .github/workflows/test.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0abefe4f..b9a9d02c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,7 +13,7 @@ jobs: steps: - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 - name: Set up Ruby - uses: ruby/setup-ruby@1287d2b408066abada82d5ad1c63652e758428d9 # v1.214.0 + uses: ruby/setup-ruby@2654679fe7f7c29875c669398a8ec0791b8a64a1 # v1.215.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run tests diff --git a/.github/workflows/schedule-doc-report.yml b/.github/workflows/schedule-doc-report.yml index e689dc63..241d0563 100644 --- a/.github/workflows/schedule-doc-report.yml +++ b/.github/workflows/schedule-doc-report.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 - name: Set up Ruby - uses: ruby/setup-ruby@1287d2b408066abada82d5ad1c63652e758428d9 # v1.214.0 + uses: ruby/setup-ruby@2654679fe7f7c29875c669398a8ec0791b8a64a1 # v1.215.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Generate report diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 35ca2244..68eeecff 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Set up Ruby - uses: ruby/setup-ruby@1287d2b408066abada82d5ad1c63652e758428d9 # v1.214.0 + uses: ruby/setup-ruby@2654679fe7f7c29875c669398a8ec0791b8a64a1 # v1.215.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run tests From cb3bb1d76e32c677716ba157b054f5c98e57cd75 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Thu, 30 Jan 2025 19:12:37 +0100 Subject: [PATCH 35/72] Update JavaScript documentation --- lib/docs/filters/core/normalize_urls.rb | 2 +- lib/docs/scrapers/mdn/javascript.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/docs/filters/core/normalize_urls.rb b/lib/docs/filters/core/normalize_urls.rb index cd1888a8..9834b32d 100644 --- a/lib/docs/filters/core/normalize_urls.rb +++ b/lib/docs/filters/core/normalize_urls.rb @@ -42,7 +42,7 @@ module Docs def fix_url(url) if context[:redirections] url = URL.parse(url) - path = url.path.downcase + path = url.path ? url.path.downcase : nil if context[:redirections].key?(path) url.path = context[:redirections][path] diff --git a/lib/docs/scrapers/mdn/javascript.rb b/lib/docs/scrapers/mdn/javascript.rb index e6aabdb1..5c9f4d0c 100644 --- a/lib/docs/scrapers/mdn/javascript.rb +++ b/lib/docs/scrapers/mdn/javascript.rb @@ -3,7 +3,7 @@ module Docs prepend FixInternalUrlsBehavior prepend FixRedirectionsBehavior - # release = '2024-11-18' + # release = '2025-01-30' self.name = 'JavaScript' self.base_url = 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference' self.links = { From a2b9b2a77ef5f8fc7370c85ce97bac28f0a0fd88 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Thu, 30 Jan 2025 19:27:02 +0100 Subject: [PATCH 36/72] Update MDN documentations --- assets/stylesheets/pages/_mdn.scss | 3 +++ 1 file changed, 3 insertions(+) diff --git a/assets/stylesheets/pages/_mdn.scss b/assets/stylesheets/pages/_mdn.scss index 51f2b6c5..9155df45 100644 --- a/assets/stylesheets/pages/_mdn.scss +++ b/assets/stylesheets/pages/_mdn.scss @@ -28,6 +28,9 @@ p > code, li > code { @extend %label; } + details { @extend %box; } + summary > div { display: inline; } + > .note, .notecard, // MDN 2021 .notice, From 0214b5d528f7cadf6ae63e37750bfc677894bed8 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Thu, 30 Jan 2025 19:46:01 +0100 Subject: [PATCH 37/72] Update Web APIs documentation --- lib/docs/scrapers/mdn/dom.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/docs/scrapers/mdn/dom.rb b/lib/docs/scrapers/mdn/dom.rb index 3023e20c..322d65d0 100644 --- a/lib/docs/scrapers/mdn/dom.rb +++ b/lib/docs/scrapers/mdn/dom.rb @@ -1,6 +1,6 @@ module Docs class Dom < Mdn - # release = '2023-08-20' + # release = '2025-01-30' self.name = 'Web APIs' self.slug = 'dom' self.base_url = 'https://developer.mozilla.org/en-US/docs/Web/API' From 86de8ae92d52e1f3e32e20fb472893f1bf07bff3 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 4 Feb 2025 21:03:10 +0000 Subject: [PATCH 38/72] chore(deps): update ruby/setup-ruby action to v1.216.0 --- .github/workflows/build.yml | 2 +- .github/workflows/schedule-doc-report.yml | 2 +- .github/workflows/test.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b9a9d02c..dc9c02c0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,7 +13,7 @@ jobs: steps: - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 - name: Set up Ruby - uses: ruby/setup-ruby@2654679fe7f7c29875c669398a8ec0791b8a64a1 # v1.215.0 + uses: ruby/setup-ruby@8388f20e6a9c43cd241131b678469a9f89579f37 # v1.216.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run tests diff --git a/.github/workflows/schedule-doc-report.yml b/.github/workflows/schedule-doc-report.yml index 241d0563..f8607f70 100644 --- a/.github/workflows/schedule-doc-report.yml +++ b/.github/workflows/schedule-doc-report.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 - name: Set up Ruby - uses: ruby/setup-ruby@2654679fe7f7c29875c669398a8ec0791b8a64a1 # v1.215.0 + uses: ruby/setup-ruby@8388f20e6a9c43cd241131b678469a9f89579f37 # v1.216.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Generate report diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 68eeecff..ef0572a4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Set up Ruby - uses: ruby/setup-ruby@2654679fe7f7c29875c669398a8ec0791b8a64a1 # v1.215.0 + uses: ruby/setup-ruby@8388f20e6a9c43cd241131b678469a9f89579f37 # v1.216.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run tests From ada7e02ecd62695b368acc63222a231e7dae0539 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 5 Feb 2025 12:43:56 +0000 Subject: [PATCH 39/72] chore(deps): update ruby/setup-ruby action to v1.217.0 --- .github/workflows/build.yml | 2 +- .github/workflows/schedule-doc-report.yml | 2 +- .github/workflows/test.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index dc9c02c0..2283abfe 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,7 +13,7 @@ jobs: steps: - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 - name: Set up Ruby - uses: ruby/setup-ruby@8388f20e6a9c43cd241131b678469a9f89579f37 # v1.216.0 + uses: ruby/setup-ruby@8711a86ab6f9aa72890da4123b2ef7283b6b22b6 # v1.217.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run tests diff --git a/.github/workflows/schedule-doc-report.yml b/.github/workflows/schedule-doc-report.yml index f8607f70..3bdcb24c 100644 --- a/.github/workflows/schedule-doc-report.yml +++ b/.github/workflows/schedule-doc-report.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 - name: Set up Ruby - uses: ruby/setup-ruby@8388f20e6a9c43cd241131b678469a9f89579f37 # v1.216.0 + uses: ruby/setup-ruby@8711a86ab6f9aa72890da4123b2ef7283b6b22b6 # v1.217.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Generate report diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ef0572a4..b1f634fe 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Set up Ruby - uses: ruby/setup-ruby@8388f20e6a9c43cd241131b678469a9f89579f37 # v1.216.0 + uses: ruby/setup-ruby@8711a86ab6f9aa72890da4123b2ef7283b6b22b6 # v1.217.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run tests From d686f930dd9b35e308088a6ca4e1ff10e5943bc5 Mon Sep 17 00:00:00 2001 From: JC Date: Wed, 5 Feb 2025 09:52:46 -0500 Subject: [PATCH 40/72] It's 2025 No one made an issue for it yet, and it is February. I have noticed thus, problem is solved (Almost a) duplicate of commit https://github.com/freeCodeCamp/devdocs/commit/07d88233f893b229f107c761ca5599a6c775dd68 --- COPYRIGHT | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/COPYRIGHT b/COPYRIGHT index 9c520b87..374054bd 100644 --- a/COPYRIGHT +++ b/COPYRIGHT @@ -1,4 +1,4 @@ -Copyright 2013-2024 Thibaut Courouble and other contributors +Copyright 2013-2025 Thibaut Courouble and other contributors This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this From 3ada96770eb0239fd8525b2e7ef193cc4441b6c3 Mon Sep 17 00:00:00 2001 From: Link_jon Date: Wed, 5 Feb 2025 12:46:15 -0500 Subject: [PATCH 41/72] NOW It's 2025 --- README.md | 2 +- assets/javascripts/lib/license.js | 2 +- assets/javascripts/templates/pages/about_tmpl.js | 2 +- assets/stylesheets/application.css.scss | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index fa83c7e0..d4b66959 100644 --- a/README.md +++ b/README.md @@ -195,7 +195,7 @@ Made something cool? Feel free to open a PR to add a new row to this table! You ## Copyright / License -Copyright 2013–2024 Thibaut Courouble and [other contributors](https://github.com/freeCodeCamp/devdocs/graphs/contributors) +Copyright 2013–2025 Thibaut Courouble and [other contributors](https://github.com/freeCodeCamp/devdocs/graphs/contributors) This software is licensed under the terms of the Mozilla Public License v2.0. See the [COPYRIGHT](./COPYRIGHT) and [LICENSE](./LICENSE) files. diff --git a/assets/javascripts/lib/license.js b/assets/javascripts/lib/license.js index 5c0d5fa4..15b42c98 100644 --- a/assets/javascripts/lib/license.js +++ b/assets/javascripts/lib/license.js @@ -1,5 +1,5 @@ /* - * Copyright 2013-2024 Thibaut Courouble and other contributors + * Copyright 2013-2025 Thibaut Courouble and other contributors * * This source code is licensed under the terms of the Mozilla * Public License, v. 2.0, a copy of which may be obtained at: diff --git a/assets/javascripts/templates/pages/about_tmpl.js b/assets/javascripts/templates/pages/about_tmpl.js index 683bb546..e3142da5 100644 --- a/assets/javascripts/templates/pages/about_tmpl.js +++ b/assets/javascripts/templates/pages/about_tmpl.js @@ -32,7 +32,7 @@ app.templates.aboutPage = function () {

- Copyright 2013–2024 Thibaut Courouble and other contributors
+ Copyright 2013–2025 Thibaut Courouble and other contributors
This software is licensed under the terms of the Mozilla Public License v2.0.
You may obtain a copy of the source code at github.com/freeCodeCamp/devdocs.
For more information, see the COPYRIGHT diff --git a/assets/stylesheets/application.css.scss b/assets/stylesheets/application.css.scss index 3823cdc3..ca75b69e 100644 --- a/assets/stylesheets/application.css.scss +++ b/assets/stylesheets/application.css.scss @@ -3,7 +3,7 @@ //= depend_on sprites/docs.json /*! - * Copyright 2013-2024 Thibaut Courouble and other contributors + * Copyright 2013-2025 Thibaut Courouble and other contributors * * This source code is licensed under the terms of the Mozilla * Public License, v. 2.0, a copy of which may be obtained at: From fbd05dc462994595260ad7864152de5f70f191ea Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 6 Feb 2025 01:29:01 +0000 Subject: [PATCH 42/72] chore(deps): update ruby/setup-ruby action to v1.218.0 --- .github/workflows/build.yml | 2 +- .github/workflows/schedule-doc-report.yml | 2 +- .github/workflows/test.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2283abfe..59b59734 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,7 +13,7 @@ jobs: steps: - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 - name: Set up Ruby - uses: ruby/setup-ruby@8711a86ab6f9aa72890da4123b2ef7283b6b22b6 # v1.217.0 + uses: ruby/setup-ruby@d781c1b4ed31764801bfae177617bb0446f5ef8d # v1.218.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run tests diff --git a/.github/workflows/schedule-doc-report.yml b/.github/workflows/schedule-doc-report.yml index 3bdcb24c..c43048ad 100644 --- a/.github/workflows/schedule-doc-report.yml +++ b/.github/workflows/schedule-doc-report.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 - name: Set up Ruby - uses: ruby/setup-ruby@8711a86ab6f9aa72890da4123b2ef7283b6b22b6 # v1.217.0 + uses: ruby/setup-ruby@d781c1b4ed31764801bfae177617bb0446f5ef8d # v1.218.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Generate report diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b1f634fe..15e9b7d3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Set up Ruby - uses: ruby/setup-ruby@8711a86ab6f9aa72890da4123b2ef7283b6b22b6 # v1.217.0 + uses: ruby/setup-ruby@d781c1b4ed31764801bfae177617bb0446f5ef8d # v1.218.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run tests From 6bd2a0d1ea99d6fa3bf3b3d15710e6f61a2e0d1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20B=C3=B6rjesson?= Date: Sat, 8 Feb 2025 08:12:48 +0100 Subject: [PATCH 43/72] Update crystal docs to 1.15.1 --- lib/docs/scrapers/crystal.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/docs/scrapers/crystal.rb b/lib/docs/scrapers/crystal.rb index caa178f2..0ca20ab4 100644 --- a/lib/docs/scrapers/crystal.rb +++ b/lib/docs/scrapers/crystal.rb @@ -2,7 +2,7 @@ module Docs class Crystal < UrlScraper include MultipleBaseUrls self.type = 'crystal' - self.release = '1.15.0' + self.release = '1.15.1' self.base_urls = [ "https://crystal-lang.org/api/#{release}/", "https://crystal-lang.org/reference/#{release[0..2]}/", From a6724138297f6924bfe4a1068ca5721c47b2c138 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Wed, 12 Feb 2025 08:34:45 +0100 Subject: [PATCH 44/72] Update Go documentation (1.24.0) --- lib/docs/scrapers/go.rb | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/lib/docs/scrapers/go.rb b/lib/docs/scrapers/go.rb index 767db080..2b795a8c 100644 --- a/lib/docs/scrapers/go.rb +++ b/lib/docs/scrapers/go.rb @@ -1,7 +1,7 @@ module Docs class Go < UrlScraper self.type = 'go' - self.release = '1.23.0' + self.release = '1.24.0' self.base_url = 'https://golang.org/pkg/' self.links = { home: 'https://golang.org/', @@ -10,10 +10,19 @@ module Docs # Run godoc locally, since https://golang.org/pkg/ redirects to https://pkg.go.dev/std with rate limiting / scraping protection. - # podman run --net host --rm -it docker.io/golang:1.23.0 + # podman run --net host --rm -it docker.io/golang:1.24.0 #podman# go install golang.org/x/tools/cmd/godoc@latest #podman# rm -r /usr/local/go/test/ #podman# godoc -http 0.0.0.0:6060 -v + + # or using alpine + # podman run --net host --rm -it alpine:latest + #podman# apk add curl + #podman# curl -LO https://go.dev/dl/go1.24.0.linux-amd64.tar.gz + #podman# tar xf go1.24.0.linux-amd64.tar.gz + #podman# go/bin/go install golang.org/x/tools/cmd/godoc@latest + #podman# /root/go/bin/godoc -http 0.0.0.0:6060 -v + self.base_url = 'http://localhost:6060/pkg/' html_filters.push 'clean_local_urls' From 1e61c7877e4fc8fbd1e775b34dceab050e6c49cd Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Wed, 12 Feb 2025 08:49:50 +0100 Subject: [PATCH 45/72] Update Rust documentation (1.84.1) --- lib/docs/scrapers/rust.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/docs/scrapers/rust.rb b/lib/docs/scrapers/rust.rb index 23419f58..fbbb1415 100644 --- a/lib/docs/scrapers/rust.rb +++ b/lib/docs/scrapers/rust.rb @@ -3,7 +3,7 @@ module Docs class Rust < UrlScraper self.type = 'rust' - self.release = '1.83.0' + self.release = '1.84.1' self.base_url = 'https://doc.rust-lang.org/' self.root_path = 'book/index.html' self.initial_paths = %w( From 726df58bcc4ed2f4aa867015dd4ade2f4fce72e1 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Wed, 12 Feb 2025 08:51:30 +0100 Subject: [PATCH 46/72] Update jQuery UI documentation (1.14.1) --- lib/docs/scrapers/jquery/jquery_ui.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/docs/scrapers/jquery/jquery_ui.rb b/lib/docs/scrapers/jquery/jquery_ui.rb index d4f66fef..eca46fe1 100644 --- a/lib/docs/scrapers/jquery/jquery_ui.rb +++ b/lib/docs/scrapers/jquery/jquery_ui.rb @@ -2,7 +2,7 @@ module Docs class JqueryUi < Jquery self.name = 'jQuery UI' self.slug = 'jqueryui' - self.release = '1.13.0' + self.release = '1.14.1' self.base_url = 'https://api.jqueryui.com' self.root_path = '/category/all' From 27ec5a0889a346f921823ac3bfac4f0e4826e611 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Wed, 12 Feb 2025 08:53:52 +0100 Subject: [PATCH 47/72] Update Git documentation (2.48.1) --- lib/docs/scrapers/git.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/docs/scrapers/git.rb b/lib/docs/scrapers/git.rb index d8a289c1..a3a0fff8 100644 --- a/lib/docs/scrapers/git.rb +++ b/lib/docs/scrapers/git.rb @@ -1,7 +1,7 @@ module Docs class Git < UrlScraper self.type = 'git' - self.release = '2.47.1' + self.release = '2.48.1' self.base_url = 'https://git-scm.com/docs' self.initial_paths = %w(/git.html) self.links = { From e993bafc4719ebdefd6d9302445dbdf62be6c04c Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Wed, 12 Feb 2025 08:59:31 +0100 Subject: [PATCH 48/72] Update VueUse documentation (12.5.0) --- lib/docs/filters/vueuse/entries.rb | 16 ++++++++++++++++ lib/docs/scrapers/vueuse.rb | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/lib/docs/filters/vueuse/entries.rb b/lib/docs/filters/vueuse/entries.rb index a3d0af56..2bd0e05d 100644 --- a/lib/docs/filters/vueuse/entries.rb +++ b/lib/docs/filters/vueuse/entries.rb @@ -248,6 +248,10 @@ module Docs "text": "usePreferredReducedMotion", "link": "/core/usePreferredReducedMotion/" }, + { + "text": "usePreferredReducedTransparency", + "link": "/core/usePreferredReducedTransparency/" + }, { "text": "useScreenOrientation", "link": "/core/useScreenOrientation/" @@ -264,6 +268,10 @@ module Docs "text": "useShare", "link": "/core/useShare/" }, + { + "text": "useSSRWidth", + "link": "/core/useSSRWidth/" + }, { "text": "useStyleTag", "link": "/core/useStyleTag/" @@ -313,6 +321,10 @@ module Docs "text": "onClickOutside", "link": "/core/onClickOutside/" }, + { + "text": "onElementRemoval", + "link": "/core/onElementRemoval/" + }, { "text": "onKeyStroke", "link": "/core/onKeyStroke/" @@ -788,6 +800,10 @@ module Docs { "text": "Time", "items": [ + { + "text": "useCountdown", + "link": "/core/useCountdown/" + }, { "text": "useDateFormat", "link": "/shared/useDateFormat/" diff --git a/lib/docs/scrapers/vueuse.rb b/lib/docs/scrapers/vueuse.rb index 3933b60c..d9e6748c 100644 --- a/lib/docs/scrapers/vueuse.rb +++ b/lib/docs/scrapers/vueuse.rb @@ -22,7 +22,7 @@ module Docs Licensed under the MIT License. HTML - self.release = '12.0.0' + self.release = '12.5.0' self.base_url = 'https://vueuse.org/' self.initial_paths = %w(functions.html) html_filters.push 'vueuse/entries', 'vite/clean_html', 'vueuse/clean_html' From 00649b9ebdc00aec3184e87184297a643e0afe6b Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Wed, 12 Feb 2025 09:07:00 +0100 Subject: [PATCH 49/72] Update Haskell documentation (9.12.1) --- lib/docs/scrapers/haskell.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/docs/scrapers/haskell.rb b/lib/docs/scrapers/haskell.rb index 9cfe7f66..8d822ece 100755 --- a/lib/docs/scrapers/haskell.rb +++ b/lib/docs/scrapers/haskell.rb @@ -59,7 +59,7 @@ module Docs end version '9' do - self.release = '9.4.2' + self.release = '9.12.1' self.base_url = "https://downloads.haskell.org/~ghc/#{release}/docs/" options[:container] = ->(filter) {filter.subpath.start_with?('users_guide') ? '.document' : '#content'} end From a2d9d7ad4384017c2db6cc98b738c1078630721d Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Wed, 12 Feb 2025 09:08:43 +0100 Subject: [PATCH 50/72] Update Flask documentation (3.1.1) --- lib/docs/scrapers/flask.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/docs/scrapers/flask.rb b/lib/docs/scrapers/flask.rb index 08655e7a..11229a25 100755 --- a/lib/docs/scrapers/flask.rb +++ b/lib/docs/scrapers/flask.rb @@ -18,6 +18,11 @@ module Docs Licensed under the BSD 3-clause License. HTML + version do + self.release = '3.1.1' + self.base_url = "https://flask.palletsprojects.com/en/stable/" + end + version '3.0' do self.release = '3.0.x' self.base_url = "https://flask.palletsprojects.com/en/#{self.release}/" From 5a129d47786c62863e22f442a67ac271d83d895e Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Wed, 12 Feb 2025 09:08:45 +0100 Subject: [PATCH 51/72] Update Werkzeug documentation (3.1.1) --- lib/docs/scrapers/werkzeug.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/docs/scrapers/werkzeug.rb b/lib/docs/scrapers/werkzeug.rb index 70379744..d331ecd6 100755 --- a/lib/docs/scrapers/werkzeug.rb +++ b/lib/docs/scrapers/werkzeug.rb @@ -17,6 +17,11 @@ module Docs Licensed under the BSD 3-clause License. HTML + version do + self.release = '3.1.1' + self.base_url = "https://werkzeug.palletsprojects.com/en/latest/" + end + version '3.0' do self.release = '3.0.x' self.base_url = "https://werkzeug.palletsprojects.com/en/#{self.release}/" From 2499e17ea4c7bf04c04427454fe950e22e05a3fe Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Wed, 12 Feb 2025 09:20:16 +0100 Subject: [PATCH 52/72] Update Express documentation (4.21.2) --- lib/docs/filters/express/clean_html.rb | 2 +- lib/docs/scrapers/express.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/docs/filters/express/clean_html.rb b/lib/docs/filters/express/clean_html.rb index 0d9c5127..01a63909 100644 --- a/lib/docs/filters/express/clean_html.rb +++ b/lib/docs/filters/express/clean_html.rb @@ -3,7 +3,7 @@ module Docs class CleanHtmlFilter < Filter def call i = 1 - n = at_css("#navmenu a[href='#{result[:path].split('/').last}']").parent + n = at_css("#navmenu .submenu-content a[href='#{result[:path].split('/').last}']").parent i += 1 while n && n = n.previous_element at_css('h1')['data-level'] = i diff --git a/lib/docs/scrapers/express.rb b/lib/docs/scrapers/express.rb index 2f0a93ce..724b771f 100644 --- a/lib/docs/scrapers/express.rb +++ b/lib/docs/scrapers/express.rb @@ -2,7 +2,7 @@ module Docs class Express < UrlScraper self.name = 'Express' self.type = 'express' - self.release = '4.18.1' + self.release = '4.21.2' self.base_url = 'https://expressjs.com/en/' self.root_path = '4x/api.html' self.initial_paths = %w( From 479bd750895d8b23eb32f43b032c378fa4229c9a Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 12 Feb 2025 10:40:42 +0000 Subject: [PATCH 53/72] chore(deps): update dependency rack to v2.2.11 --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index a0ab80a9..e46c2625 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -78,7 +78,7 @@ GEM byebug (~> 11.0) pry (>= 0.13, < 0.15) racc (1.8.1) - rack (2.2.10) + rack (2.2.11) rack-protection (3.2.0) base64 (>= 0.1.0) rack (~> 2.2, >= 2.2.4) From 8e718e71e98ca51db28f6eb33e3885eecb8a1736 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 12 Feb 2025 16:06:58 +0000 Subject: [PATCH 54/72] chore(deps): update ruby/setup-ruby action to v1.219.0 --- .github/workflows/build.yml | 2 +- .github/workflows/schedule-doc-report.yml | 2 +- .github/workflows/test.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 59b59734..c41a6b28 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,7 +13,7 @@ jobs: steps: - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 - name: Set up Ruby - uses: ruby/setup-ruby@d781c1b4ed31764801bfae177617bb0446f5ef8d # v1.218.0 + uses: ruby/setup-ruby@f2f42b7848feff522ffa488a5236ba0a73bccbdd # v1.219.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run tests diff --git a/.github/workflows/schedule-doc-report.yml b/.github/workflows/schedule-doc-report.yml index c43048ad..45b671bb 100644 --- a/.github/workflows/schedule-doc-report.yml +++ b/.github/workflows/schedule-doc-report.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 - name: Set up Ruby - uses: ruby/setup-ruby@d781c1b4ed31764801bfae177617bb0446f5ef8d # v1.218.0 + uses: ruby/setup-ruby@f2f42b7848feff522ffa488a5236ba0a73bccbdd # v1.219.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Generate report diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 15e9b7d3..5a30c1b2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Set up Ruby - uses: ruby/setup-ruby@d781c1b4ed31764801bfae177617bb0446f5ef8d # v1.218.0 + uses: ruby/setup-ruby@f2f42b7848feff522ffa488a5236ba0a73bccbdd # v1.219.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run tests From d12f240bca1aa691de6fa184f14441fbdbcde952 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 15 Feb 2025 13:48:46 +0000 Subject: [PATCH 55/72] chore(deps): update ruby/setup-ruby action to v1.220.0 --- .github/workflows/build.yml | 2 +- .github/workflows/schedule-doc-report.yml | 2 +- .github/workflows/test.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c41a6b28..01f19ab6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,7 +13,7 @@ jobs: steps: - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 - name: Set up Ruby - uses: ruby/setup-ruby@f2f42b7848feff522ffa488a5236ba0a73bccbdd # v1.219.0 + uses: ruby/setup-ruby@28d088d34a0b0b7ba0823b7952c77004560a3a6f # v1.220.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run tests diff --git a/.github/workflows/schedule-doc-report.yml b/.github/workflows/schedule-doc-report.yml index 45b671bb..ea6255a8 100644 --- a/.github/workflows/schedule-doc-report.yml +++ b/.github/workflows/schedule-doc-report.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 - name: Set up Ruby - uses: ruby/setup-ruby@f2f42b7848feff522ffa488a5236ba0a73bccbdd # v1.219.0 + uses: ruby/setup-ruby@28d088d34a0b0b7ba0823b7952c77004560a3a6f # v1.220.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Generate report diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5a30c1b2..9d93bd90 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Set up Ruby - uses: ruby/setup-ruby@f2f42b7848feff522ffa488a5236ba0a73bccbdd # v1.219.0 + uses: ruby/setup-ruby@28d088d34a0b0b7ba0823b7952c77004560a3a6f # v1.220.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run tests From 07b131faa4beb0d5ef13ad1c0795197df82f9524 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 15 Feb 2025 17:52:34 +0000 Subject: [PATCH 56/72] chore(deps): update dependency ruby to v3.4.2 --- .ruby-version | 2 +- .tool-versions | 2 +- Dockerfile | 2 +- Dockerfile-alpine | 2 +- Gemfile | 2 +- Gemfile.lock | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.ruby-version b/.ruby-version index 47b322c9..4d9d11cf 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -3.4.1 +3.4.2 diff --git a/.tool-versions b/.tool-versions index 041df9aa..ae5ecdb2 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1 +1 @@ -ruby 3.4.1 +ruby 3.4.2 diff --git a/Dockerfile b/Dockerfile index d52cd1de..92c59642 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ruby:3.4.1 +FROM ruby:3.4.2 ENV LANG=C.UTF-8 ENV ENABLE_SERVICE_WORKER=true diff --git a/Dockerfile-alpine b/Dockerfile-alpine index 67b3d968..ce605eaa 100644 --- a/Dockerfile-alpine +++ b/Dockerfile-alpine @@ -1,4 +1,4 @@ -FROM ruby:3.4.1-alpine +FROM ruby:3.4.2-alpine ENV LANG=C.UTF-8 ENV ENABLE_SERVICE_WORKER=true diff --git a/Gemfile b/Gemfile index 59403526..be8dcb0b 100644 --- a/Gemfile +++ b/Gemfile @@ -1,5 +1,5 @@ source 'https://rubygems.org' -ruby '3.4.1' +ruby '3.4.2' gem 'activesupport', require: false gem 'html-pipeline' diff --git a/Gemfile.lock b/Gemfile.lock index e46c2625..6608eb1c 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -191,7 +191,7 @@ DEPENDENCIES yajl-ruby RUBY VERSION - ruby 3.4.1p0 + ruby 3.4.2p28 BUNDLED WITH 2.4.6 From 549c19ac83910c2f0d3315f7b953b54e30d97d7a Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Sun, 16 Feb 2025 11:48:29 +0100 Subject: [PATCH 57/72] Typo --- lib/docs/filters/scala/entries_v2.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/docs/filters/scala/entries_v2.rb b/lib/docs/filters/scala/entries_v2.rb index ca3b6d12..6f044644 100644 --- a/lib/docs/filters/scala/entries_v2.rb +++ b/lib/docs/filters/scala/entries_v2.rb @@ -71,7 +71,7 @@ module Docs # name from the HTML because companion object classes may be broken out into # their own entries (by the source documentation). When that happens, # we want to group these classes (like `scala.reflect.api.Annotations.Annotation`) - # under the package name, and not the fully-qualfied name which would + # under the package name, and not the fully-qualified name which would # include the companion object. def package_name name = package_drop_last(slug_parts) From 4ad6715ec13819b4c0ba9a0bae3f0831b6620651 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Sun, 16 Feb 2025 12:02:59 +0100 Subject: [PATCH 58/72] Add OpenLayers documentation (10.4.0) --- assets/javascripts/news.json | 4 ++++ assets/stylesheets/application.css.scss | 1 + assets/stylesheets/pages/_openlayers.scss | 10 +++++++++ lib/docs/filters/openlayers/clean_html.rb | 18 ++++++++++++++++ lib/docs/filters/openlayers/entries.rb | 22 ++++++++++++++++++++ lib/docs/scrapers/openlayers.rb | 24 ++++++++++++++++++++++ public/icons/docs/openlayers/16.png | Bin 0 -> 419 bytes public/icons/docs/openlayers/16@2x.png | Bin 0 -> 840 bytes public/icons/docs/openlayers/SOURCE | 2 ++ 9 files changed, 81 insertions(+) create mode 100644 assets/stylesheets/pages/_openlayers.scss create mode 100644 lib/docs/filters/openlayers/clean_html.rb create mode 100644 lib/docs/filters/openlayers/entries.rb create mode 100644 lib/docs/scrapers/openlayers.rb create mode 100644 public/icons/docs/openlayers/16.png create mode 100644 public/icons/docs/openlayers/16@2x.png create mode 100644 public/icons/docs/openlayers/SOURCE diff --git a/assets/javascripts/news.json b/assets/javascripts/news.json index 052f4918..2c393d97 100644 --- a/assets/javascripts/news.json +++ b/assets/javascripts/news.json @@ -1,4 +1,8 @@ [ + [ + "2025-02-16", + "New documentation: OpenLayers" + ], [ "2024-11-23", "New documentation: DuckDB" diff --git a/assets/stylesheets/application.css.scss b/assets/stylesheets/application.css.scss index ca75b69e..b45e7b60 100644 --- a/assets/stylesheets/application.css.scss +++ b/assets/stylesheets/application.css.scss @@ -97,6 +97,7 @@ 'pages/nushell', 'pages/octave', 'pages/openjdk', + 'pages/openlayers', 'pages/perl', 'pages/phalcon', 'pages/phaser', diff --git a/assets/stylesheets/pages/_openlayers.scss b/assets/stylesheets/pages/_openlayers.scss new file mode 100644 index 00000000..50628b2f --- /dev/null +++ b/assets/stylesheets/pages/_openlayers.scss @@ -0,0 +1,10 @@ +._openlayers { + @extend %simple; + .nameContainer { + @extend %block-label; + > * { display: inline-block; margin: 0; } + > .tag-source { float: right; } + } + .card { @extend %box; margin-bottom: 1rem; padding: 1rem; } + .signature, .type-signature { @extend %code; } +} diff --git a/lib/docs/filters/openlayers/clean_html.rb b/lib/docs/filters/openlayers/clean_html.rb new file mode 100644 index 00000000..713306c2 --- /dev/null +++ b/lib/docs/filters/openlayers/clean_html.rb @@ -0,0 +1,18 @@ +module Docs + class Openlayers + class CleanHtmlFilter < Filter + def call + @doc = at_css('section') + + at_css('h2').name = 'h1' if at_css('h2') + + css('pre.prettyprint').each do |node| + node['data-language'] = node['class'].include?('html') ? 'html' : 'js' + node.content = node.content + end + + doc + end + end + end +end diff --git a/lib/docs/filters/openlayers/entries.rb b/lib/docs/filters/openlayers/entries.rb new file mode 100644 index 00000000..05e18850 --- /dev/null +++ b/lib/docs/filters/openlayers/entries.rb @@ -0,0 +1,22 @@ +module Docs + class Openlayers + class EntriesFilter < Docs::EntriesFilter + def get_name + at_css('h2').text.split('~').last.strip + end + + def get_type + slug[/ol_([^_]+)_/, 1] or 'ol' + end + + def additional_entries + css('h4.name').each_with_object [] do |node, entries| + node['id'] = node.previous_element['id'] + name = node.children.find {|n| n.text? }.text.strip + name.prepend "#{self.name}." + entries << [name, node['id']] + end + end + end + end +end diff --git a/lib/docs/scrapers/openlayers.rb b/lib/docs/scrapers/openlayers.rb new file mode 100644 index 00000000..1c957fbd --- /dev/null +++ b/lib/docs/scrapers/openlayers.rb @@ -0,0 +1,24 @@ +module Docs + class Openlayers < UrlScraper + self.name = 'OpenLayers' + self.type = 'openlayers' + self.slug = 'openlayers' + self.release = '10.4.0' + self.base_url = "https://openlayers.org/en/latest/apidoc/" + self.links = { + home: 'https://openlayers.org/', + code: 'https://github.com/openlayers/openlayers' + } + + html_filters.push 'openlayers/entries', 'openlayers/clean_html' + + options[:attribution] = <<-HTML + © 2005-present, OpenLayers Contributors All rights reserved. + Licensed under the BSD 2-Clause License. + HTML + + def get_latest_version(opts) + get_npm_version('ol', opts) + end + end +end diff --git a/public/icons/docs/openlayers/16.png b/public/icons/docs/openlayers/16.png new file mode 100644 index 0000000000000000000000000000000000000000..fe90ebfbfba1e25db4758974593ef3a56ec3e23d GIT binary patch literal 419 zcmV;U0bKrxP)#LK4GqW>nw|vg(KOVaT z$UM7jr*!6bBPA&^D?hXd3N&>wz6sR!evwt*do&zr+HCC=hG1x3WJgw=%0KzAQS({0 zylK$kKjy5?6lF19e)QbA#^hkg1TNa1ODz9@67To>uKfxm@5aN)Cg8jQ#1P9Ok%*ql z<={9DK0V;T0fYdMZq$8vfNk5zX0src34#!kWx1wl8Y-0vT-QbO30Sxu!m%6R{u$Ky z8`^TFN-P^F8jTiHsZ=kY&!gMz;^hk{wSD`!)9HXZ+VE|G1xXY|Syk1RVHmJ13j>*^ z30>Dg9c{+`%#tLXrqgLRlgWV0^EbbpP{$@!I2_gziG)e!d1Y#k_7~uSYt|n_2zvkk N002ovPDHLkV1j2*!3Y2V literal 0 HcmV?d00001 diff --git a/public/icons/docs/openlayers/16@2x.png b/public/icons/docs/openlayers/16@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..c39658a1350fa71e4099bc460939f5dfd90f0d36 GIT binary patch literal 840 zcmV-O1GoH%P)ugv4;17rQJkS64!ggSnq}ZcW zfa7E}oVw+wq0j6rEtrqw!tF2bAb=1uG(L}4BXI0|9mvi; zy#SYod%0+D z+7Y?7BIx=Wq$P5Mbd5uv-2z*q065Xs1W*62$|dJ{Mmjy08X+MEvUK2oGeU<`nyaG& z#HEk_w)5cOuOBIv^H3LaaxUEON|T(2IXSggn$vv&<`mKD^upN>E1`7Bi7QNjvQztgRLVW!b8N_)l{sN3p6w&)pb~)<|N0GDX0-2ea!oVKQ!`l|K*&9=Amoqy%iwzA8D0+zVE{JF}nnPBr^}G18 zs;UZyhK5i|FpQWpy0tuy%zO&rCIW!~?c{RmqE3*aQmJ%>g@q$@Kul|ED~7{i6p6$T z&x|LQpZkosyoQ`eB*HqRodpF218TKe4~Z}ujZLMcrK{qC$K%0ZFo;qH7Z7ttxtKi< zET9y+LwC8Db{Y(ZM%WG+85u>z#l=DC%{x0gF&d4cl*K Date: Sun, 16 Feb 2025 12:07:49 +0100 Subject: [PATCH 59/72] Update Vite documentation (6.1.0) --- lib/docs/scrapers/vite.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/docs/scrapers/vite.rb b/lib/docs/scrapers/vite.rb index 937d0916..4ca7b9d3 100644 --- a/lib/docs/scrapers/vite.rb +++ b/lib/docs/scrapers/vite.rb @@ -22,7 +22,7 @@ module Docs html_filters.push 'vite/entries', 'vite/clean_html' version do - self.release = '6.0.1' + self.release = '6.1.0' self.base_url = 'https://vite.dev/' end From 19613ef1cd86dffc623dcde52f14cb5354a6e267 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Sun, 16 Feb 2025 12:36:09 +0100 Subject: [PATCH 60/72] openlayers: remove inherited entries --- lib/docs/filters/openlayers/entries.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/docs/filters/openlayers/entries.rb b/lib/docs/filters/openlayers/entries.rb index 05e18850..a325bdcd 100644 --- a/lib/docs/filters/openlayers/entries.rb +++ b/lib/docs/filters/openlayers/entries.rb @@ -12,6 +12,7 @@ module Docs def additional_entries css('h4.name').each_with_object [] do |node, entries| node['id'] = node.previous_element['id'] + next if node.at_css('.inherited') name = node.children.find {|n| n.text? }.text.strip name.prepend "#{self.name}." entries << [name, node['id']] From 85039c6377593d87c722a47dae26189685b85a59 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 16 Feb 2025 22:55:35 +0000 Subject: [PATCH 61/72] chore(deps): update ruby/setup-ruby action to v1.221.0 --- .github/workflows/build.yml | 2 +- .github/workflows/schedule-doc-report.yml | 2 +- .github/workflows/test.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 01f19ab6..51acef96 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,7 +13,7 @@ jobs: steps: - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 - name: Set up Ruby - uses: ruby/setup-ruby@28d088d34a0b0b7ba0823b7952c77004560a3a6f # v1.220.0 + uses: ruby/setup-ruby@32110d4e311bd8996b2a82bf2a43b714ccc91777 # v1.221.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run tests diff --git a/.github/workflows/schedule-doc-report.yml b/.github/workflows/schedule-doc-report.yml index ea6255a8..137cec66 100644 --- a/.github/workflows/schedule-doc-report.yml +++ b/.github/workflows/schedule-doc-report.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 - name: Set up Ruby - uses: ruby/setup-ruby@28d088d34a0b0b7ba0823b7952c77004560a3a6f # v1.220.0 + uses: ruby/setup-ruby@32110d4e311bd8996b2a82bf2a43b714ccc91777 # v1.221.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Generate report diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9d93bd90..70c3d4d2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Set up Ruby - uses: ruby/setup-ruby@28d088d34a0b0b7ba0823b7952c77004560a3a6f # v1.220.0 + uses: ruby/setup-ruby@32110d4e311bd8996b2a82bf2a43b714ccc91777 # v1.221.0 with: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run tests From 2b63eba0da4400d7ac95cc954a0330e246d828bd Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 18 Feb 2025 22:50:34 +0000 Subject: [PATCH 62/72] chore(deps): update dependency nokogiri to v1.18.3 --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index 6608eb1c..9ccdd742 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -63,7 +63,7 @@ GEM mustermann (3.0.3) ruby2_keywords (~> 0.0.1) newrelic_rpm (8.16.0) - nokogiri (1.18.2) + nokogiri (1.18.3) mini_portile2 (~> 2.8.2) racc (~> 1.4) options (2.3.2) From ddb8ff3acdf0dee141b78321a9d17062ddae80a0 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 19 Feb 2025 16:50:49 +0000 Subject: [PATCH 63/72] chore(deps): update akhileshns/heroku-deploy action to v3.14.15 --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 51acef96..10f4c0d1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,7 +19,7 @@ jobs: - name: Run tests run: bundle exec rake - name: Deploy to Heroku - uses: akhileshns/heroku-deploy@581dd286c962b6972d427fcf8980f60755c15520 # v3.13.15 + uses: akhileshns/heroku-deploy@e3eb99d45a8e2ec5dca08735e089607befa4bf28 # v3.14.15 with: heroku_api_key: ${{secrets.HEROKU_API_KEY}} heroku_app_name: "devdocs" From d426b47166e13266623a8d8c5079028a5d6dc562 Mon Sep 17 00:00:00 2001 From: Calum Smith Date: Thu, 20 Feb 2025 23:49:57 -0500 Subject: [PATCH 64/72] =?UTF-8?q?fix:=20open=20external=20links=20in=20def?= =?UTF-8?q?ault=20browser=20from=20macOS=20PWA=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit …by using `window.open(url, "_blank", "noopener")` directly instead of a now-rarely-needed workaround. Fixes freeCodeCamp/devdocs#2438 --- assets/javascripts/lib/util.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/javascripts/lib/util.js b/assets/javascripts/lib/util.js index 3aa301bc..c8668d4f 100644 --- a/assets/javascripts/lib/util.js +++ b/assets/javascripts/lib/util.js @@ -457,13 +457,13 @@ $.noop = function () {}; $.popup = function (value) { try { + window.open(value.href || value, "_blank", "noopener"); + } catch (error) { const win = window.open(); if (win.opener) { win.opener = null; } win.location = value.href || value; - } catch (error) { - window.open(value.href || value, "_blank"); } }; From 5807a6f8b853abb604d3d07e2f35fe50ebf87327 Mon Sep 17 00:00:00 2001 From: ClasherKasten Date: Fri, 21 Feb 2025 17:03:03 +0100 Subject: [PATCH 65/72] Update Tensorflow and Tensorflow C++ (2.16) --- lib/docs/filters/tensorflow/clean_html.rb | 3 +++ lib/docs/scrapers/tensorflow/tensorflow.rb | 5 +++++ lib/docs/scrapers/tensorflow/tensorflow_cpp.rb | 5 +++++ 3 files changed, 13 insertions(+) diff --git a/lib/docs/filters/tensorflow/clean_html.rb b/lib/docs/filters/tensorflow/clean_html.rb index 6d594d70..cc153320 100644 --- a/lib/docs/filters/tensorflow/clean_html.rb +++ b/lib/docs/filters/tensorflow/clean_html.rb @@ -46,6 +46,9 @@ module Docs node.replace("

#{node.to_html}

") end + css('span[slot="popout-heading"]').remove + css('span[slot="popout-contents"]').remove + doc end end diff --git a/lib/docs/scrapers/tensorflow/tensorflow.rb b/lib/docs/scrapers/tensorflow/tensorflow.rb index fbd68abc..029fd99c 100644 --- a/lib/docs/scrapers/tensorflow/tensorflow.rb +++ b/lib/docs/scrapers/tensorflow/tensorflow.rb @@ -19,6 +19,11 @@ module Docs Code samples licensed under the Apache 2.0 License. HTML + version '2.16' do + self.release = "2.16.1" + self.base_url = "https://www.tensorflow.org/api_docs/python/tf" + end + version '2.9' do self.release = "2.9.1" self.base_url = "https://www.tensorflow.org/versions/r#{version}/api_docs/python/tf" diff --git a/lib/docs/scrapers/tensorflow/tensorflow_cpp.rb b/lib/docs/scrapers/tensorflow/tensorflow_cpp.rb index e7dfbe9e..b434199c 100644 --- a/lib/docs/scrapers/tensorflow/tensorflow_cpp.rb +++ b/lib/docs/scrapers/tensorflow/tensorflow_cpp.rb @@ -3,6 +3,11 @@ module Docs self.name = 'TensorFlow C++' self.slug = 'tensorflow_cpp' + version '2.16' do + self.release = "2.16.1" + self.base_url = "https://www.tensorflow.org/api_docs/cc" + end + version '2.9' do self.release = "2.9.1" self.base_url = "https://www.tensorflow.org/versions/r#{version}/api_docs/cc" From 31ca6d46856350339fc8991c6eda08d9a872c357 Mon Sep 17 00:00:00 2001 From: ClasherKasten Date: Fri, 21 Feb 2025 20:30:53 +0100 Subject: [PATCH 66/72] Fix multiple version checks of scrapers. - Docker - Meteor - Nix - PHPUnit - Redis - Sass - Trio --- lib/docs/scrapers/docker.rb | 2 +- lib/docs/scrapers/meteor.rb | 3 +-- lib/docs/scrapers/nix.rb | 4 +--- lib/docs/scrapers/phpunit.rb | 4 ++-- lib/docs/scrapers/redis.rb | 3 +-- lib/docs/scrapers/sass.rb | 4 ++-- lib/docs/scrapers/trio.rb | 2 +- 7 files changed, 9 insertions(+), 13 deletions(-) diff --git a/lib/docs/scrapers/docker.rb b/lib/docs/scrapers/docker.rb index 070796ae..bfc420a3 100644 --- a/lib/docs/scrapers/docker.rb +++ b/lib/docs/scrapers/docker.rb @@ -96,7 +96,7 @@ module Docs def get_latest_version(opts) doc = fetch_doc('https://docs.docker.com/engine/release-notes/', opts) - latest_version = doc.at_css('.DocSearch-content > h2 > a').content.strip + latest_version = doc.at_css('h2.scroll-mt-20 > a').content.strip latest_version.rpartition(' ')[-1] end end diff --git a/lib/docs/scrapers/meteor.rb b/lib/docs/scrapers/meteor.rb index a758d154..04cb929e 100644 --- a/lib/docs/scrapers/meteor.rb +++ b/lib/docs/scrapers/meteor.rb @@ -47,8 +47,7 @@ module Docs end def get_latest_version(opts) - doc = fetch_doc('https://docs.meteor.com/#/full/', opts) - doc.at_css('select.version-select > option').content + get_npm_version('meteor', opts) end end end diff --git a/lib/docs/scrapers/nix.rb b/lib/docs/scrapers/nix.rb index 5be27ffa..b2ee5c87 100644 --- a/lib/docs/scrapers/nix.rb +++ b/lib/docs/scrapers/nix.rb @@ -23,9 +23,7 @@ module Docs def get_latest_version(opts) doc = fetch_doc('https://nixos.org/manual/nix/stable/', opts) - json = JSON.parse(doc.at_css('body')['data-nix-channels']) - channel = json.find { |c| c['channel'] == 'stable' } - channel['version'] + doc.at_css('a.active')['href'].scan(/([0-9.]+)/)[0][0] end end end diff --git a/lib/docs/scrapers/phpunit.rb b/lib/docs/scrapers/phpunit.rb index 7bd1c603..dcd1c5f1 100644 --- a/lib/docs/scrapers/phpunit.rb +++ b/lib/docs/scrapers/phpunit.rb @@ -77,8 +77,8 @@ module Docs def get_latest_version(opts) doc = fetch_doc('https://phpunit.readthedocs.io/', opts) - label = doc.at_css('.rst-current-version').content.strip - label.scan(/v: ([0-9.]+)/)[0][0] + label = doc.at_css('meta[name="readthedocs-version-slug"]')["content"] + label end end diff --git a/lib/docs/scrapers/redis.rb b/lib/docs/scrapers/redis.rb index d4c62b42..9c8e03b1 100644 --- a/lib/docs/scrapers/redis.rb +++ b/lib/docs/scrapers/redis.rb @@ -22,8 +22,7 @@ module Docs def get_latest_version(opts) body = fetch('http://download.redis.io/redis-stable/00-RELEASENOTES', opts) - body = body.lines[1..-1].join - body.scan(/Redis ([0-9.]+)/)[0][0] + body.scan(/Redis Community Edition ([0-9.]+)/)[0][0] end private diff --git a/lib/docs/scrapers/sass.rb b/lib/docs/scrapers/sass.rb index d7b5954a..aaa7a5ad 100644 --- a/lib/docs/scrapers/sass.rb +++ b/lib/docs/scrapers/sass.rb @@ -20,13 +20,13 @@ module Docs © 2006–2024 the Sass team, and numerous contributors
Licensed under the MIT License. HTML - - private def get_latest_version(opts) get_npm_version('sass', opts) end + private + def parse(response) response.body.gsub! ' ', ' ' end diff --git a/lib/docs/scrapers/trio.rb b/lib/docs/scrapers/trio.rb index 141a408e..e502fe72 100644 --- a/lib/docs/scrapers/trio.rb +++ b/lib/docs/scrapers/trio.rb @@ -25,7 +25,7 @@ module Docs def get_latest_version(opts) doc = fetch_doc('https://trio.readthedocs.io/en/stable/', opts) - doc.at_css('.rst-other-versions a[href^="/en/v"]').content[1..-1] + doc.at_css('div.trio-version').content[0..-1] end end end From e2336a1ce33bca75bc06c980a57f9b75dd880c0f Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Sun, 23 Feb 2025 08:47:25 +0100 Subject: [PATCH 67/72] Update PHPUnit documentation (12.0) --- lib/docs/filters/phpunit/clean_html.rb | 2 +- lib/docs/scrapers/phpunit.rb | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/lib/docs/filters/phpunit/clean_html.rb b/lib/docs/filters/phpunit/clean_html.rb index 5e36704c..dacb1587 100644 --- a/lib/docs/filters/phpunit/clean_html.rb +++ b/lib/docs/filters/phpunit/clean_html.rb @@ -2,7 +2,7 @@ module Docs class Phpunit class CleanHtmlFilter < Filter def call - @doc = at_css('.section') if not root_page? + @doc = at_css('section') if not root_page? css('pre').each do |node| node['class'] = 'highlight' diff --git a/lib/docs/scrapers/phpunit.rb b/lib/docs/scrapers/phpunit.rb index dcd1c5f1..12efbbfc 100644 --- a/lib/docs/scrapers/phpunit.rb +++ b/lib/docs/scrapers/phpunit.rb @@ -17,12 +17,21 @@ module Docs options[:title] = false options[:attribution] = <<-HTML - © 2005–2020 Sebastian Bergmann
+ © 2005–2025 Sebastian Bergmann
Licensed under the Creative Commons Attribution 3.0 Unported License. HTML FILTERS = %w(phpunit/clean_html phpunit/entries title) + version do + self.release = '12.0' + self.base_url = "https://docs.phpunit.de/en/#{release}/" + + html_filters.push FILTERS + + options[:container] = '.document' + end + version '9' do self.release = '9.5' self.base_url = "https://phpunit.readthedocs.io/en/#{release}/" From 3eda8d283542139e90c9d14ceeab5b9f156d17fd Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Sun, 23 Feb 2025 08:50:42 +0100 Subject: [PATCH 68/72] Update Sass documentation (1.85.0) --- lib/docs/scrapers/sass.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/docs/scrapers/sass.rb b/lib/docs/scrapers/sass.rb index aaa7a5ad..d0c0a935 100644 --- a/lib/docs/scrapers/sass.rb +++ b/lib/docs/scrapers/sass.rb @@ -1,7 +1,7 @@ module Docs class Sass < UrlScraper self.type = 'yard' - self.release = '1.82.9' + self.release = '1.85.0' self.base_url = 'https://sass-lang.com/documentation' self.root_path = 'index.html' self.links = { @@ -17,7 +17,7 @@ module Docs options[:trailing_slash] = false options[:attribution] = <<-HTML - © 2006–2024 the Sass team, and numerous contributors
+ © 2006–2025 the Sass team, and numerous contributors
Licensed under the MIT License. HTML From d851473407caaa0a5bc754c0ed33572056933ae4 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Sun, 23 Feb 2025 08:51:43 +0100 Subject: [PATCH 69/72] Update Trio documentation (0.29.0) --- lib/docs/scrapers/trio.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/docs/scrapers/trio.rb b/lib/docs/scrapers/trio.rb index e502fe72..701f9c23 100644 --- a/lib/docs/scrapers/trio.rb +++ b/lib/docs/scrapers/trio.rb @@ -1,7 +1,7 @@ module Docs class Trio < UrlScraper self.type = 'simple' - self.release = '0.22.2' + self.release = '0.29.0' self.base_url = "https://trio.readthedocs.io/en/v#{self.release}/" self.root_path = 'index.html' self.links = { From 82a03cb7404270bcc9d90cf4fb010dc87d82336a Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Sun, 23 Feb 2025 09:10:18 +0100 Subject: [PATCH 70/72] Update TensorFlow documentation (2.18.0) --- lib/docs/scrapers/tensorflow/tensorflow.rb | 4 ++-- lib/docs/scrapers/tensorflow/tensorflow_cpp.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/docs/scrapers/tensorflow/tensorflow.rb b/lib/docs/scrapers/tensorflow/tensorflow.rb index 029fd99c..9d3cdb58 100644 --- a/lib/docs/scrapers/tensorflow/tensorflow.rb +++ b/lib/docs/scrapers/tensorflow/tensorflow.rb @@ -19,8 +19,8 @@ module Docs Code samples licensed under the Apache 2.0 License. HTML - version '2.16' do - self.release = "2.16.1" + version do + self.release = "2.18.0" self.base_url = "https://www.tensorflow.org/api_docs/python/tf" end diff --git a/lib/docs/scrapers/tensorflow/tensorflow_cpp.rb b/lib/docs/scrapers/tensorflow/tensorflow_cpp.rb index b434199c..6fe3c86a 100644 --- a/lib/docs/scrapers/tensorflow/tensorflow_cpp.rb +++ b/lib/docs/scrapers/tensorflow/tensorflow_cpp.rb @@ -3,8 +3,8 @@ module Docs self.name = 'TensorFlow C++' self.slug = 'tensorflow_cpp' - version '2.16' do - self.release = "2.16.1" + version do + self.release = "2.18.0" self.base_url = "https://www.tensorflow.org/api_docs/cc" end From ba294a12de116d024588ec982ce2bfe35202de07 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Sun, 23 Feb 2025 09:31:35 +0100 Subject: [PATCH 71/72] Use navigator.clipboard.writeText --- assets/javascripts/lib/util.js | 18 ------------------ assets/javascripts/views/content/entry_page.js | 7 +++---- 2 files changed, 3 insertions(+), 22 deletions(-) diff --git a/assets/javascripts/lib/util.js b/assets/javascripts/lib/util.js index c8668d4f..5226262d 100644 --- a/assets/javascripts/lib/util.js +++ b/assets/javascripts/lib/util.js @@ -526,21 +526,3 @@ $.highlight = function (el, options) { el.classList.add(options.className); setTimeout(() => el.classList.remove(options.className), options.delay); }; - -$.copyToClipboard = function (string) { - let result; - const textarea = document.createElement("textarea"); - textarea.style.position = "fixed"; - textarea.style.opacity = 0; - textarea.value = string; - document.body.appendChild(textarea); - try { - textarea.select(); - result = !!document.execCommand("copy"); - } catch (error) { - result = false; - } finally { - document.body.removeChild(textarea); - } - return result; -}; diff --git a/assets/javascripts/views/content/entry_page.js b/assets/javascripts/views/content/entry_page.js index 95920878..280017ae 100644 --- a/assets/javascripts/views/content/entry_page.js +++ b/assets/javascripts/views/content/entry_page.js @@ -217,10 +217,9 @@ app.views.EntryPage = class EntryPage extends app.View { this.load(); } else if (target.classList.contains("_pre-clip")) { $.stopEvent(event); - target.classList.add( - $.copyToClipboard(target.parentNode.textContent) - ? "_pre-clip-success" - : "_pre-clip-error", + navigator.clipboard.writeText(target.parentNode.textContent).then( + () => target.classList.add("_pre-clip-success"), + () => target.classList.add("_pre-clip-error"), ); setTimeout(() => (target.className = "_pre-clip"), 2000); } From 8f29e60669fc42a3cf123e7a39ca184c50646683 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Sun, 23 Feb 2025 09:35:21 +0100 Subject: [PATCH 72/72] Use Object.entries --- .../javascripts/views/content/entry_page.js | 25 +++++++------------ 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/assets/javascripts/views/content/entry_page.js b/assets/javascripts/views/content/entry_page.js index 280017ae..961d90e1 100644 --- a/assets/javascripts/views/content/entry_page.js +++ b/assets/javascripts/views/content/entry_page.js @@ -96,16 +96,9 @@ app.views.EntryPage = class EntryPage extends app.View { return content; } - const links = (() => { - const result = []; - for (var link in this.entry.doc.links) { - var url = this.entry.doc.links[link]; - result.push( - `${EntryPage.LINKS[link]}`, - ); - } - return result; - })(); + const links = Object.entries(this.entry.doc.links).map(([link, url]) => { + return `${EntryPage.LINKS[link]}`; + }); return `${content}`; } @@ -203,8 +196,8 @@ app.views.EntryPage = class EntryPage extends app.View { } restore() { - let path; - if (this.cacheMap[(path = this.entry.filePath())]) { + const path = this.entry.filePath(); + if (this.cacheMap[[path]]) { this.render(this.cacheMap[path], true); return true; } @@ -226,8 +219,8 @@ app.views.EntryPage = class EntryPage extends app.View { } onAltC() { - let link; - if (!(link = this.find("._attribution:last-child ._attribution-link"))) { + const link = this.find("._attribution:last-child ._attribution-link"); + if (!link) { return; } console.log(link.href + location.hash); @@ -235,8 +228,8 @@ app.views.EntryPage = class EntryPage extends app.View { } onAltO() { - let link; - if (!(link = this.find("._attribution:last-child ._attribution-link"))) { + const link = this.find("._attribution:last-child ._attribution-link"); + if (!link) { return; } this.delay(() => $.popup(link.href + location.hash));