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
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'
lib/docs/scrapers/clojure.rb+4−0
@@ -2,6 +2,10 @@ module Docs · 1 unmodified line
2 class Clojure < UrlScraper2 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
lib/docs/scrapers/gnuplot.rb+2−1
@@ -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'
lib/docs/scrapers/graphite.rb+1−0
@@ -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
lib/docs/scrapers/lua.rb+3−0
@@ -2,6 +2,9 @@ module Docs · 1 unmodified line
2 class Lua < UrlScraper2 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
lib/docs/scrapers/modernizr.rb+4−0
@@ -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
lib/docs/scrapers/openjdk.rb+4−0
@@ -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'
lib/docs/scrapers/tcl_tk.rb+4−0
@@ -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