|
1 | 1 | module Docs |
2 | | - class Nokogiri2 < Rdoc |
3 | | - # Instructions: |
4 | | - # 1. Download the latest release at https://github.com/sparklemotion/nokogiri/releases |
5 | | - # 2. Run "bundle install && bundle exec rake docs" (in the Nokogiri directory) |
6 | | - # 4. Copy the "doc" directory to "docs/nokogiri" |
7 | | - |
| 2 | + class Nokogiri2 < UrlScraper |
8 | 3 | self.name = 'Nokogiri' |
9 | 4 | self.slug = 'nokogiri' |
10 | | - self.release = '1.14.2' |
11 | | - self.base_url = "https://nokogiri.org/rdoc/" |
| 5 | + self.type = 'rdoc' |
| 6 | + self.release = '1.19.4' |
| 7 | + self.base_url = 'https://nokogiri.org/rdoc/' |
| 8 | + self.root_path = 'index.html' |
12 | 9 |
|
13 | | - html_filters.replace 'rdoc/entries', 'nokogiri2/entries' |
| 10 | + html_filters.replace 'container', 'nokogiri2/container' |
| 11 | + html_filters.push 'nokogiri2/entries', 'nokogiri2/clean_html', 'title' |
14 | 12 |
|
| 13 | + options[:title] = false |
15 | 14 | options[:root_title] = 'Nokogiri' |
16 | 15 | options[:only_patterns] = [/\ANokogiri/, /\AXSD/] |
17 | 16 |
|
18 | 17 | options[:attribution] = <<-HTML |
19 | | - © 2008–2023 by Mike Dalessio, Aaron Patterson, Yoko Harada, Akinori MUSHA, John Shahid,<br> |
| 18 | + © 2008–2026 by Mike Dalessio, Aaron Patterson, Yoko Harada, Akinori MUSHA, John Shahid,<br> |
20 | 19 | Karol Bucek, Sam Ruby, Craig Barnes, Stephen Checkoway, Lars Kanis, Sergio Arbeo,<br> |
21 | 20 | Timothy Elliott, Nobuyoshi Nakada, Charles Nutter, Patrick Mahoney |
22 | 21 | Licensed under the MIT License. |
|
0 commit comments