History

Merge pull request #1426 from scherepn/scraper-links

Update self.links in several scrapers

Simon Legner committed 5 years ago

Commit decf0fc2 parents 39313ea 437061d8 files · +26 −1Browse files

Unified · Split

8 files
  1. lib/docs/scrapers/angularjs.rb +4 −0
  2. lib/docs/scrapers/clojure.rb +4 −0
  3. lib/docs/scrapers/gnuplot.rb +2 −1
  4. lib/docs/scrapers/graphite.rb +1 −0
  5. lib/docs/scrapers/lua.rb +3 −0
  6. lib/docs/scrapers/modernizr.rb +4 −0
  7. lib/docs/scrapers/openjdk.rb +4 −0
  8. lib/docs/scrapers/tcl_tk.rb +4 −0
lib/docs/scrapers/angularjs.rb+4−0
@@ -5,6 +5,10 @@ module Docs · 4 unmodified lines
55 self.type = 'angularjs'
66 self.root_path = 'api.html'
77 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+ }
812
913 html_filters.push 'angularjs/clean_html', 'angularjs/entries', 'title'
1014 text_filters.push 'angularjs/clean_urls'
lib/docs/scrapers/clojure.rb+4−0
@@ -2,6 +2,10 @@ module Docs · 1 unmodified line
22 class Clojure < UrlScraper
33 self.type = 'clojure'
44 self.root_path = 'api-index.html'
5+ self.links = {
6+ home: 'https://clojure.org',
7+ code: 'https://github.com/clojure/clojure'
8+ }
59
610 html_filters.push 'clojure/entries', 'clojure/clean_html'
711
lib/docs/scrapers/gnuplot.rb+2−1
@@ -3,7 +3,8 @@ module Docs · 2 unmodified lines
33 self.type = 'gnuplot'
44 self.release = '5.2.8'
55 self.links = {
6− home: 'http://gnuplot.sourceforge.net/'
6+ home: 'http://www.gnuplot.info/',
7+ code: 'https://sourceforge.net/projects/gnuplot/'
78 }
89
910 self.root_path = 'nofigures.html'
lib/docs/scrapers/graphite.rb+1−0
@@ -4,6 +4,7 @@ module Docs · 3 unmodified lines
44 self.release = '1.1.4'
55 self.base_url = 'https://graphite.readthedocs.io/en/latest/'
66 self.links = {
7+ home: 'https://graphiteapp.org/',
78 code: 'https://github.com/graphite-project/graphite-web'
89 }
910
lib/docs/scrapers/lua.rb+3−0
@@ -2,6 +2,9 @@ module Docs · 1 unmodified line
22 class Lua < UrlScraper
33 self.type = 'lua'
44 self.root_path = 'manual.html'
5+ self.links = {
6+ home: 'https://www.lua.org/'
7+ }
58
69 html_filters.push 'lua/clean_html', 'lua/entries'
710
lib/docs/scrapers/modernizr.rb+4−0
@@ -4,6 +4,10 @@ module Docs · 3 unmodified lines
44 self.type = 'modernizr'
55 self.release = '3.11.3'
66 self.base_url = 'https://modernizr.com/docs/'
7+ self.links = {
8+ home: 'https://modernizr.com/',
9+ code: 'https://github.com/Modernizr/Modernizr'
10+ }
711
812 html_filters.push 'modernizr/entries', 'modernizr/clean_html', 'title'
913
lib/docs/scrapers/openjdk.rb+4−0
@@ -5,6 +5,10 @@ module Docs · 4 unmodified lines
55 self.name = 'OpenJDK'
66 self.type = 'openjdk'
77 self.root_path = 'overview-summary.html'
8+ self.links = {
9+ home: 'https://openjdk.java.net/',
10+ code: 'https://github.com/openjdk/jdk'
11+ }
812
913 html_filters.insert_after 'internal_urls', 'openjdk/clean_urls'
1014 html_filters.push 'openjdk/entries', 'openjdk/clean_html'
lib/docs/scrapers/tcl_tk.rb+4−0
@@ -6,6 +6,10 @@ module Docs · 5 unmodified lines
66 self.release = '8.6.6'
77 self.base_url = 'https://www.tcl.tk/man/tcl/'
88 self.root_path = 'contents.htm'
9+ self.links = {
10+ home: 'https://www.tcl.tk/',
11+ code: 'https://sourceforge.net/projects/tcl/files/Tcl/'
12+ }
913
1014 html_filters.push 'tcl_tk/entries', 'tcl_tk/clean_html', 'title'
1115