Update self.links in several scrapers
Unified · Split
| @@ -5,6 +5,10 @@ module Docs · 4 unmodified lines | |||
| 5 | self.type = 'angularjs' | 5 | self.type = 'angularjs' |
| 6 | self.root_path = 'api.html' | 6 | self.root_path = 'api.html' |
| 7 | self.initial_paths = %w(guide.html guide/controller.html) | 7 | self.initial_paths = %w(guide.html guide/controller.html) |
| 8 | self.links = { | ||
| 9 | home: 'https://angularjs.org/', | ||
| 10 | code: 'https://github.com/angular/angular.js' | ||
| 11 | } | ||
| 8 | 12 | ||
| 9 | html_filters.push 'angularjs/clean_html', 'angularjs/entries', 'title' | 13 | html_filters.push 'angularjs/clean_html', 'angularjs/entries', 'title' |
| 10 | text_filters.push 'angularjs/clean_urls' | 14 | text_filters.push 'angularjs/clean_urls' |
| @@ -2,6 +2,10 @@ module Docs · 1 unmodified line | |||
| 2 | class Clojure < UrlScraper | 2 | class Clojure < UrlScraper |
| 3 | self.type = 'clojure' | 3 | self.type = 'clojure' |
| 4 | self.root_path = 'api-index.html' | 4 | self.root_path = 'api-index.html' |
| 5 | self.links = { | ||
| 6 | home: 'https://clojure.org', | ||
| 7 | code: 'https://github.com/clojure/clojure' | ||
| 8 | } | ||
| 5 | 9 | ||
| 6 | html_filters.push 'clojure/entries', 'clojure/clean_html' | 10 | html_filters.push 'clojure/entries', 'clojure/clean_html' |
| 7 | 11 | ||
| @@ -3,7 +3,8 @@ module Docs · 2 unmodified lines | |||
| 3 | self.type = 'gnuplot' | 3 | self.type = 'gnuplot' |
| 4 | self.release = '5.2.8' | 4 | self.release = '5.2.8' |
| 5 | self.links = { | 5 | self.links = { |
| 6 | home: 'http://gnuplot.sourceforge.net/' | 6 | home: 'http://www.gnuplot.info/', |
| 7 | code: 'https://sourceforge.net/projects/gnuplot/' | ||
| 7 | } | 8 | } |
| 8 | 9 | ||
| 9 | self.root_path = 'nofigures.html' | 10 | self.root_path = 'nofigures.html' |
| @@ -4,6 +4,7 @@ module Docs · 3 unmodified lines | |||
| 4 | self.release = '1.1.4' | 4 | self.release = '1.1.4' |
| 5 | self.base_url = 'https://graphite.readthedocs.io/en/latest/' | 5 | self.base_url = 'https://graphite.readthedocs.io/en/latest/' |
| 6 | self.links = { | 6 | self.links = { |
| 7 | home: 'https://graphiteapp.org/', | ||
| 7 | code: 'https://github.com/graphite-project/graphite-web' | 8 | code: 'https://github.com/graphite-project/graphite-web' |
| 8 | } | 9 | } |
| 9 | 10 | ||
| @@ -2,6 +2,9 @@ module Docs · 1 unmodified line | |||
| 2 | class Lua < UrlScraper | 2 | class Lua < UrlScraper |
| 3 | self.type = 'lua' | 3 | self.type = 'lua' |
| 4 | self.root_path = 'manual.html' | 4 | self.root_path = 'manual.html' |
| 5 | self.links = { | ||
| 6 | home: 'https://www.lua.org/' | ||
| 7 | } | ||
| 5 | 8 | ||
| 6 | html_filters.push 'lua/clean_html', 'lua/entries' | 9 | html_filters.push 'lua/clean_html', 'lua/entries' |
| 7 | 10 | ||
| @@ -4,6 +4,10 @@ module Docs · 3 unmodified lines | |||
| 4 | self.type = 'modernizr' | 4 | self.type = 'modernizr' |
| 5 | self.release = '3.11.3' | 5 | self.release = '3.11.3' |
| 6 | self.base_url = 'https://modernizr.com/docs/' | 6 | self.base_url = 'https://modernizr.com/docs/' |
| 7 | self.links = { | ||
| 8 | home: 'https://modernizr.com/', | ||
| 9 | code: 'https://github.com/Modernizr/Modernizr' | ||
| 10 | } | ||
| 7 | 11 | ||
| 8 | html_filters.push 'modernizr/entries', 'modernizr/clean_html', 'title' | 12 | html_filters.push 'modernizr/entries', 'modernizr/clean_html', 'title' |
| 9 | 13 | ||
| @@ -5,6 +5,10 @@ module Docs · 4 unmodified lines | |||
| 5 | self.name = 'OpenJDK' | 5 | self.name = 'OpenJDK' |
| 6 | self.type = 'openjdk' | 6 | self.type = 'openjdk' |
| 7 | self.root_path = 'overview-summary.html' | 7 | self.root_path = 'overview-summary.html' |
| 8 | self.links = { | ||
| 9 | home: 'https://openjdk.java.net/', | ||
| 10 | code: 'https://github.com/openjdk/jdk' | ||
| 11 | } | ||
| 8 | 12 | ||
| 9 | html_filters.insert_after 'internal_urls', 'openjdk/clean_urls' | 13 | html_filters.insert_after 'internal_urls', 'openjdk/clean_urls' |
| 10 | html_filters.push 'openjdk/entries', 'openjdk/clean_html' | 14 | html_filters.push 'openjdk/entries', 'openjdk/clean_html' |
| @@ -6,6 +6,10 @@ module Docs · 5 unmodified lines | |||
| 6 | self.release = '8.6.6' | 6 | self.release = '8.6.6' |
| 7 | self.base_url = 'https://www.tcl.tk/man/tcl/' | 7 | self.base_url = 'https://www.tcl.tk/man/tcl/' |
| 8 | self.root_path = 'contents.htm' | 8 | self.root_path = 'contents.htm' |
| 9 | self.links = { | ||
| 10 | home: 'https://www.tcl.tk/', | ||
| 11 | code: 'https://sourceforge.net/projects/tcl/files/Tcl/' | ||
| 12 | } | ||
| 9 | 13 | ||
| 10 | html_filters.push 'tcl_tk/entries', 'tcl_tk/clean_html', 'title' | 14 | html_filters.push 'tcl_tk/entries', 'tcl_tk/clean_html', 'title' |
| 11 | 15 | ||