Merge branch 'master' into deploy

* master: (34 commits)
  Update Yarn documentation (1.6.0)
  Update webpack documentation (4.6.0)
  Update Vue.js documentation (2.5.16)
  Update Vagrant documentation (2.0.4)
  Update Underscore.js documentation (1.9.0)
  Update TypeScript documentation (2.8.3)
  Update SQLite documentation (3.23.1)
  Update Rust documentation (1.25.0)
  Update Sinon.JS documentation (4.5.0)
  Update Ruby on Rails documentation (5.2.0)
  Update Redis documentation (4.0.9)
  Update React documentation (16.3.0)
  Update PostgreSQL documentation (10.3)
  Update Phoenix documentation (1.3.2)
  Update NumPy documentation (1.14.2)
  Update npm documentation (6.0.0)
  Update Node.js documentation (10.0.0)
  Update nginx / Lua Module documentation (0.10.13)
  Update nginx documentation (1.14.0)
  Update Kotlin documentation (1.2.41)
  ...
pull/821/head
Thibaut Courouble 7 years ago
commit b5db3aaa35

@ -1 +1 @@
2.5.0 2.5.1

@ -1,4 +1,4 @@
FROM ruby:2.5.0 FROM ruby:2.5.1
WORKDIR /devdocs WORKDIR /devdocs

@ -1,4 +1,4 @@
FROM ruby:2.5.0-alpine FROM ruby:2.5.1-alpine
WORKDIR /devdocs WORKDIR /devdocs

@ -1,10 +1,10 @@
source 'https://rubygems.org' source 'https://rubygems.org'
ruby '2.5.0' ruby '2.5.1'
gem 'rake' gem 'rake'
gem 'thor' gem 'thor'
gem 'pry', '~> 0.11.0' gem 'pry', '~> 0.11.0'
gem 'activesupport', '~> 5.1', require: false gem 'activesupport', '~> 5.2', require: false
gem 'yajl-ruby', require: false gem 'yajl-ruby', require: false
group :app do group :app do

@ -1,17 +1,17 @@
GEM GEM
remote: https://rubygems.org/ remote: https://rubygems.org/
specs: specs:
activesupport (5.1.5) activesupport (5.2.0)
concurrent-ruby (~> 1.0, >= 1.0.2) concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (~> 0.7) i18n (>= 0.7, < 2)
minitest (~> 5.1) minitest (~> 5.1)
tzinfo (~> 1.1) tzinfo (~> 1.1)
backports (3.11.1) backports (3.11.3)
better_errors (2.4.0) better_errors (2.4.0)
coderay (>= 1.0.0) coderay (>= 1.0.0)
erubi (>= 1.0.0) erubi (>= 1.0.0)
rack (>= 0.9.0) rack (>= 0.9.0)
browser (2.5.2) browser (2.5.3)
coderay (1.1.2) coderay (1.1.2)
coffee-script (2.4.1) coffee-script (2.4.1)
coffee-script-source coffee-script-source
@ -19,7 +19,7 @@ GEM
coffee-script-source (1.12.2) coffee-script-source (1.12.2)
concurrent-ruby (1.0.5) concurrent-ruby (1.0.5)
daemons (1.2.6) daemons (1.2.6)
erubi (1.7.0) erubi (1.7.1)
ethon (0.11.0) ethon (0.11.0)
ffi (>= 1.3.0) ffi (>= 1.3.0)
eventmachine (1.2.5) eventmachine (1.2.5)
@ -28,10 +28,10 @@ GEM
ffi (1.9.23) ffi (1.9.23)
fspath (3.1.0) fspath (3.1.0)
highline (1.7.10) highline (1.7.10)
html-pipeline (2.7.1) html-pipeline (2.7.2)
activesupport (>= 2) activesupport (>= 2)
nokogiri (>= 1.4) nokogiri (>= 1.4)
i18n (0.9.5) i18n (1.0.1)
concurrent-ruby (~> 1.0) concurrent-ruby (~> 1.0)
image_optim (0.26.1) image_optim (0.26.1)
exifr (~> 1.2, >= 1.2.2) exifr (~> 1.2, >= 1.2.2)
@ -39,7 +39,7 @@ GEM
image_size (~> 1.5) image_size (~> 1.5)
in_threads (~> 1.3) in_threads (~> 1.3)
progress (~> 3.0, >= 3.0.1) progress (~> 3.0, >= 3.0.1)
image_optim_pack (0.5.0.20180124) image_optim_pack (0.5.0.20180419)
fspath (>= 2.1, < 4) fspath (>= 2.1, < 4)
image_optim (~> 0.19) image_optim (~> 0.19)
image_size (1.5.0) image_size (1.5.0)
@ -49,7 +49,7 @@ GEM
minitest (5.11.3) minitest (5.11.3)
multi_json (1.13.1) multi_json (1.13.1)
mustermann (1.0.2) mustermann (1.0.2)
newrelic_rpm (4.8.0.341) newrelic_rpm (5.0.0.342)
nokogiri (1.8.2) nokogiri (1.8.2)
mini_portile2 (~> 2.3.0) mini_portile2 (~> 2.3.0)
options (2.3.2) options (2.3.2)
@ -60,17 +60,17 @@ GEM
pry (0.11.3) pry (0.11.3)
coderay (~> 1.1.0) coderay (~> 1.1.0)
method_source (~> 0.9.0) method_source (~> 0.9.0)
rack (2.0.4) rack (2.0.5)
rack-protection (2.0.1) rack-protection (2.0.1)
rack rack
rack-test (0.8.2) rack-test (1.0.0)
rack (>= 1.0, < 3) rack (>= 1.0, < 3)
rake (12.3.0) rake (12.3.1)
rb-fsevent (0.10.2) rb-fsevent (0.10.3)
rb-inotify (0.9.10) rb-inotify (0.9.10)
ffi (>= 0.5.0, < 2) ffi (>= 0.5.0, < 2)
rr (1.2.1) rr (1.2.1)
sass (3.5.5) sass (3.5.6)
sass-listen (~> 4.0.0) sass-listen (~> 4.0.0)
sass-listen (4.0.0) sass-listen (4.0.0)
rb-fsevent (~> 0.9, >= 0.9.4) rb-fsevent (~> 0.9, >= 0.9.4)
@ -112,18 +112,18 @@ GEM
ethon (>= 0.9.0) ethon (>= 0.9.0)
tzinfo (1.2.5) tzinfo (1.2.5)
thread_safe (~> 0.1) thread_safe (~> 0.1)
uglifier (4.1.6) uglifier (4.1.10)
execjs (>= 0.3.0, < 3) execjs (>= 0.3.0, < 3)
unicode-display_width (1.3.0) unicode-display_width (1.3.2)
unicode_utils (1.4.0) unicode_utils (1.4.0)
unix_utils (0.0.15) unix_utils (0.0.15)
yajl-ruby (1.3.1) yajl-ruby (1.4.0)
PLATFORMS PLATFORMS
ruby ruby
DEPENDENCIES DEPENDENCIES
activesupport (~> 5.1) activesupport (~> 5.2)
better_errors better_errors
browser browser
coffee-script coffee-script
@ -154,7 +154,7 @@ DEPENDENCIES
yajl-ruby yajl-ruby
RUBY VERSION RUBY VERSION
ruby 2.5.0p0 ruby 2.5.1p57
BUNDLED WITH BUNDLED WITH
1.16.1 1.16.1

@ -19,7 +19,7 @@ Unless you wish to contribute to the project, I recommend using the hosted versi
DevDocs is made of two pieces: a Ruby scraper that generates the documentation and metadata, and a JavaScript app powered by a small Sinatra app. DevDocs is made of two pieces: a Ruby scraper that generates the documentation and metadata, and a JavaScript app powered by a small Sinatra app.
DevDocs requires Ruby 2.5.0, libcurl, and a JavaScript runtime supported by [ExecJS](https://github.com/rails/execjs#readme) (included in OS X and Windows; [Node.js](https://nodejs.org/en/) on Linux). Once you have these installed, run the following commands: DevDocs requires Ruby 2.5.1, libcurl, and a JavaScript runtime supported by [ExecJS](https://github.com/rails/execjs#readme) (included in OS X and Windows; [Node.js](https://nodejs.org/en/) on Linux). Once you have these installed, run the following commands:
``` ```
git clone https://github.com/freeCodeCamp/devdocs.git && cd devdocs git clone https://github.com/freeCodeCamp/devdocs.git && cd devdocs

@ -97,7 +97,7 @@ credits = [
'https://raw.githubusercontent.com/ansible/ansible/devel/COPYING' 'https://raw.githubusercontent.com/ansible/ansible/devel/COPYING'
], [ ], [
'Apache HTTP Server<br>Apache Pig', 'Apache HTTP Server<br>Apache Pig',
'2017 The Apache Software Foundation<br>Apache and the Apache feather logo are trademarks of The Apache Software Foundation.', '2018 The Apache Software Foundation<br>Apache and the Apache feather logo are trademarks of The Apache Software Foundation.',
'Apache', 'Apache',
'https://www.apache.org/licenses/LICENSE-2.0' 'https://www.apache.org/licenses/LICENSE-2.0'
], [ ], [
@ -132,7 +132,7 @@ credits = [
'https://raw.githubusercontent.com/bottlepy/bottle/master/LICENSE' 'https://raw.githubusercontent.com/bottlepy/bottle/master/LICENSE'
], [ ], [
'Bower', 'Bower',
'2017 Bower contributors', '2018 Bower contributors',
'MIT', 'MIT',
'https://github.com/bower/bower.github.io/blob/1057905c18d899106f91372e6cca7ef54a91d60f/package.json#L20' 'https://github.com/bower/bower.github.io/blob/1057905c18d899106f91372e6cca7ef54a91d60f/package.json#L20'
], [ ], [
@ -142,9 +142,9 @@ credits = [
'http://en.cppreference.com/w/Cppreference:Copyright/CC-BY-SA' 'http://en.cppreference.com/w/Cppreference:Copyright/CC-BY-SA'
], [ ], [
'CakePHP', 'CakePHP',
'2005-2017 The Cake Software Foundation, Inc.', '2005-2018 The Cake Software Foundation, Inc.',
'MIT', 'MIT',
'https://raw.githubusercontent.com/cakephp/cakephp/master/LICENSE.txt' 'https://raw.githubusercontent.com/cakephp/cakephp/master/LICENSE'
], [ ], [
'Chai', 'Chai',
'2016 Chai.js Assertion Library', '2016 Chai.js Assertion Library',
@ -207,7 +207,7 @@ credits = [
'https://raw.githubusercontent.com/dlang/phobos/master/LICENSE_1_0.txt' 'https://raw.githubusercontent.com/dlang/phobos/master/LICENSE_1_0.txt'
], [ ], [
'D3.js', 'D3.js',
'2010-2017 Michael Bostock', '2010-2018 Michael Bostock',
'BSD', 'BSD',
'https://raw.githubusercontent.com/d3/d3/master/LICENSE' 'https://raw.githubusercontent.com/d3/d3/master/LICENSE'
], [ ], [
@ -557,7 +557,7 @@ credits = [
'https://raw.githubusercontent.com/reactjs/reactjs.org/master/LICENSE-DOCS.md' 'https://raw.githubusercontent.com/reactjs/reactjs.org/master/LICENSE-DOCS.md'
], [ ], [
'Redis', 'Redis',
'2009-2017 Salvatore Sanfilippo', '2009-2018 Salvatore Sanfilippo',
'CC BY-SA', 'CC BY-SA',
'https://creativecommons.org/licenses/by-sa/4.0/' 'https://creativecommons.org/licenses/by-sa/4.0/'
], [ ], [
@ -652,7 +652,7 @@ credits = [
'https://raw.githubusercontent.com/Microsoft/TypeScript-Handbook/master/LICENSE' 'https://raw.githubusercontent.com/Microsoft/TypeScript-Handbook/master/LICENSE'
], [ ], [
'Underscore.js', 'Underscore.js',
'2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors', '2009-2017 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors',
'MIT', 'MIT',
'https://raw.githubusercontent.com/jashkenas/underscore/master/LICENSE' 'https://raw.githubusercontent.com/jashkenas/underscore/master/LICENSE'
], [ ], [
@ -662,7 +662,7 @@ credits = [
'https://raw.githubusercontent.com/mitchellh/vagrant/master/website/LICENSE.md' 'https://raw.githubusercontent.com/mitchellh/vagrant/master/website/LICENSE.md'
], [ ], [
'Vue.js', 'Vue.js',
'2013-2017 Evan You, Vue.js contributors', '2013-2018 Evan You, Vue.js contributors',
'MIT', 'MIT',
'https://raw.githubusercontent.com/vuejs/vue/master/LICENSE' 'https://raw.githubusercontent.com/vuejs/vue/master/LICENSE'
], [ ], [

@ -7,6 +7,7 @@ module Docs
def get_type def get_type
link = at_css("nav a[href='#{result[:path].split('/').last}']") link = at_css("nav a[href='#{result[:path].split('/').last}']")
return 'Miscellaneous' unless link
link.ancestors('ul').last.previous_element.content link.ancestors('ul').last.previous_element.content
end end

@ -3,7 +3,7 @@ module Docs
self.name = 'Apache HTTP Server' self.name = 'Apache HTTP Server'
self.slug = 'apache_http_server' self.slug = 'apache_http_server'
self.type = 'apache' self.type = 'apache'
self.release = '2.4.29' self.release = '2.4.33'
self.base_url = 'https://httpd.apache.org/docs/2.4/en/' self.base_url = 'https://httpd.apache.org/docs/2.4/en/'
self.links = { self.links = {
home: 'https://httpd.apache.org/' home: 'https://httpd.apache.org/'
@ -30,7 +30,7 @@ module Docs
/\Adeveloper\// ] /\Adeveloper\// ]
options[:attribution] = <<-HTML options[:attribution] = <<-HTML
&copy; 2017 The Apache Software Foundation<br> &copy; 2018 The Apache Software Foundation<br>
Licensed under the Apache License, Version 2.0. Licensed under the Apache License, Version 2.0.
HTML HTML
end end

@ -16,7 +16,7 @@ module Docs
HTML HTML
version '4' do version '4' do
self.release = '4.0.0' self.release = '4.1.0'
self.base_url = 'https://getbootstrap.com/docs/4.0/' self.base_url = 'https://getbootstrap.com/docs/4.0/'
self.root_path = 'getting-started/introduction/' self.root_path = 'getting-started/introduction/'

@ -2,7 +2,7 @@ module Docs
class Bower < UrlScraper class Bower < UrlScraper
self.name = 'Bower' self.name = 'Bower'
self.type = 'bower' self.type = 'bower'
self.release = '1.8.2' self.release = '1.8.4'
self.base_url = 'https://bower.io/docs/' self.base_url = 'https://bower.io/docs/'
self.root_path = 'api' self.root_path = 'api'
self.links = { self.links = {
@ -16,7 +16,7 @@ module Docs
options[:skip] = %w(tools about) options[:skip] = %w(tools about)
options[:attribution] = <<-HTML options[:attribution] = <<-HTML
&copy; 2017 Bower contributors<br> &copy; 2018 Bower contributors<br>
Licensed under the MIT License. Licensed under the MIT License.
HTML HTML
end end

@ -15,14 +15,19 @@ module Docs
options[:skip_patterns] = [/\Asource-/] options[:skip_patterns] = [/\Asource-/]
options[:attribution] = <<-HTML options[:attribution] = <<-HTML
&copy; 2005&ndash;2017 The Cake Software Foundation, Inc.<br> &copy; 2005&ndash;2018 The Cake Software Foundation, Inc.<br>
Licensed under the MIT License.<br> Licensed under the MIT License.<br>
CakePHP is a registered trademark of Cake Software Foundation, Inc.<br> CakePHP is a registered trademark of Cake Software Foundation, Inc.<br>
We are not endorsed by or affiliated with CakePHP. We are not endorsed by or affiliated with CakePHP.
HTML HTML
version '3.6' do
self.release = '3.6.2'
self.base_url = 'https://api.cakephp.org/3.6/'
end
version '3.5' do version '3.5' do
self.release = '3.5.2' self.release = '3.5.15'
self.base_url = 'https://api.cakephp.org/3.5/' self.base_url = 'https://api.cakephp.org/3.5/'
end end

@ -12,10 +12,26 @@ module Docs
options[:container] = '.markdown-body' options[:container] = '.markdown-body'
options[:attribution] = <<-HTML options[:attribution] = <<-HTML
&copy; 2010&ndash;2017 Michael Bostock<br> &copy; 2010&ndash;2018 Michael Bostock<br>
Licensed under the BSD License. Licensed under the BSD License.
HTML HTML
version '5' do
self.release = '5.1.0'
self.base_url = 'https://github.com/d3/'
self.root_path = 'd3/blob/master/API.md'
html_filters.push 'd3/clean_html', 'd3/entries_v4'
options[:only_patterns] = [/\Ad3[\-\w]+\z/, /\Ad3\/blob\/master\/changes\.md\z/i]
options[:skip_patterns] = [/3\.x-api-reference/]
options[:fix_urls] = ->(url) do
url.sub! %r{/blob/master/readme.md}i, ''
url
end
end
version '4' do version '4' do
self.release = '4.12.2' self.release = '4.12.2'
self.base_url = 'https://github.com/d3/' self.base_url = 'https://github.com/d3/'

@ -1,7 +1,7 @@
module Docs module Docs
class Git < UrlScraper class Git < UrlScraper
self.type = 'git' self.type = 'git'
self.release = '2.16.2' self.release = '2.17.0'
self.base_url = 'https://git-scm.com/docs' self.base_url = 'https://git-scm.com/docs'
self.initial_paths = %w(/git.html) self.initial_paths = %w(/git.html)
self.links = { self.links = {

@ -1,7 +1,7 @@
module Docs module Docs
class Go < UrlScraper class Go < UrlScraper
self.type = 'go' self.type = 'go'
self.release = '1.10.0' self.release = '1.10.1'
self.base_url = 'https://golang.org/pkg/' self.base_url = 'https://golang.org/pkg/'
self.links = { self.links = {
home: 'https://golang.org/', home: 'https://golang.org/',
@ -15,6 +15,10 @@ module Docs
options[:skip] = %w(runtime/msan/) options[:skip] = %w(runtime/msan/)
options[:skip_patterns] = [/\/\//] options[:skip_patterns] = [/\/\//]
options[:fix_urls] = ->(url) do
url.sub 'https://golang.org/pkg//', 'https://golang.org/pkg/'
end
options[:attribution] = <<-HTML options[:attribution] = <<-HTML
&copy; Google, Inc.<br> &copy; Google, Inc.<br>
Licensed under the Creative Commons Attribution License 3.0. Licensed under the Creative Commons Attribution License 3.0.

@ -1,7 +1,7 @@
module Docs module Docs
class Jasmine < UrlScraper class Jasmine < UrlScraper
self.type = 'jasmine' self.type = 'jasmine'
self.release = '3.0.0' self.release = '3.1.0'
self.base_url = 'https://jasmine.github.io/api/3.0/' self.base_url = 'https://jasmine.github.io/api/3.0/'
self.root_path = 'index.html' self.root_path = 'index.html'
self.links = { self.links = {

@ -1,7 +1,7 @@
module Docs module Docs
class Jest < UrlScraper class Jest < UrlScraper
self.type = 'jest' self.type = 'jest'
self.release = '22.3.0' self.release = '22.4.2'
self.base_url = 'https://facebook.github.io/jest/docs/en/' self.base_url = 'https://facebook.github.io/jest/docs/en/'
self.root_path = 'getting-started.html' self.root_path = 'getting-started.html'
self.links = { self.links = {

@ -1,9 +1,13 @@
module Docs module Docs
class JqueryCore < Jquery class JqueryCore < Jquery
self.name = 'jQuery' self.name = 'jQuery'
self.release = 'up to 3.3.1' self.release = '3.3.1'
self.base_url = 'https://api.jquery.com/' self.base_url = 'https://api.jquery.com/'
self.initial_paths = %w(/index/index) self.initial_paths = %w(/index/index)
self.links = {
home: 'https://jquery.com/',
code: 'https://github.com/jquery/jquery'
}
html_filters.insert_before 'jquery/clean_html', 'jquery_core/entries' html_filters.insert_before 'jquery/clean_html', 'jquery_core/entries'

@ -1,7 +1,7 @@
module Docs module Docs
class Kotlin < UrlScraper class Kotlin < UrlScraper
self.type = 'kotlin' self.type = 'kotlin'
self.release = '1.2.21' self.release = '1.2.41'
self.base_url = 'https://kotlinlang.org/' self.base_url = 'https://kotlinlang.org/'
self.root_path = 'api/latest/jvm/stdlib/index.html' self.root_path = 'api/latest/jvm/stdlib/index.html'
self.links = { self.links = {

@ -19,7 +19,7 @@ module Docs
HTML HTML
version '4' do version '4' do
self.release = '4.17.5' self.release = '4.17.10'
self.base_url = "https://lodash.com/docs/#{release}" self.base_url = "https://lodash.com/docs/#{release}"
end end

@ -3,7 +3,7 @@ module Docs
self.name = 'Moment.js' self.name = 'Moment.js'
self.slug = 'moment' self.slug = 'moment'
self.type = 'moment' self.type = 'moment'
self.release = '2.21.0' self.release = '2.22.1'
self.base_url = 'http://momentjs.com' self.base_url = 'http://momentjs.com'
self.root_path = '/docs/' self.root_path = '/docs/'
self.initial_paths = %w(/guides/) self.initial_paths = %w(/guides/)

@ -2,7 +2,7 @@ module Docs
class Nginx < UrlScraper class Nginx < UrlScraper
self.name = 'nginx' self.name = 'nginx'
self.type = 'nginx' self.type = 'nginx'
self.release = '1.13.10' self.release = '1.14.0'
self.base_url = 'https://nginx.org/en/docs/' self.base_url = 'https://nginx.org/en/docs/'
self.links = { self.links = {
home: 'https://nginx.org/', home: 'https://nginx.org/',

@ -2,7 +2,7 @@ module Docs
class NginxLuaModule < Github class NginxLuaModule < Github
self.name = 'nginx / Lua Module' self.name = 'nginx / Lua Module'
self.slug = 'nginx_lua_module' self.slug = 'nginx_lua_module'
self.release = '0.10.11' self.release = '0.10.13'
self.base_url = "https://github.com/openresty/lua-nginx-module/tree/v#{self.release}/" self.base_url = "https://github.com/openresty/lua-nginx-module/tree/v#{self.release}/"
html_filters.push 'nginx_lua_module/clean_html', 'nginx_lua_module/entries', 'title' html_filters.push 'nginx_lua_module/clean_html', 'nginx_lua_module/entries', 'title'

@ -23,12 +23,12 @@ module Docs
HTML HTML
version do version do
self.release = '9.8.0' self.release = '10.0.0'
self.base_url = 'https://nodejs.org/dist/latest-v9.x/docs/api/' self.base_url = 'https://nodejs.org/dist/latest-v10.x/docs/api/'
end end
version '8 LTS' do version '8 LTS' do
self.release = '8.10.0' self.release = '8.11.1'
self.base_url = 'https://nodejs.org/dist/latest-v8.x/docs/api/' self.base_url = 'https://nodejs.org/dist/latest-v8.x/docs/api/'
end end

@ -2,7 +2,7 @@ module Docs
class Npm < UrlScraper class Npm < UrlScraper
self.name = 'npm' self.name = 'npm'
self.type = 'npm' self.type = 'npm'
self.release = '5.8.0' self.release = '6.0.0'
self.base_url = 'https://docs.npmjs.com/' self.base_url = 'https://docs.npmjs.com/'
self.force_gzip = true self.force_gzip = true
self.links = { self.links = {

@ -26,6 +26,11 @@ module Docs
Licensed under the NumPy License. Licensed under the NumPy License.
HTML HTML
version '1.14' do
self.release = '1.14.2'
self.base_url = "https://docs.scipy.org/doc/numpy-#{self.release}/reference/"
end
version '1.13' do version '1.13' do
self.release = '1.13.0' self.release = '1.13.0'
self.base_url = "https://docs.scipy.org/doc/numpy-#{self.release}/reference/" self.base_url = "https://docs.scipy.org/doc/numpy-#{self.release}/reference/"

@ -1,7 +1,7 @@
module Docs module Docs
class Phoenix < UrlScraper class Phoenix < UrlScraper
self.type = 'elixir' self.type = 'elixir'
self.release = '1.3.0' self.release = '1.3.2'
self.base_url = 'https://hexdocs.pm/' self.base_url = 'https://hexdocs.pm/'
self.root_path = 'phoenix/Phoenix.html' self.root_path = 'phoenix/Phoenix.html'
self.initial_paths = %w( self.initial_paths = %w(

@ -56,7 +56,7 @@ module Docs
HTML HTML
version '10' do version '10' do
self.release = '10.2' self.release = '10.3'
self.base_url = 'https://www.postgresql.org/docs/10/static/' self.base_url = 'https://www.postgresql.org/docs/10/static/'
end end

@ -56,23 +56,27 @@ module Docs
options[:attribution] = ->(filter) do options[:attribution] = ->(filter) do
if filter.slug.start_with?('guides') if filter.slug.start_with?('guides')
<<-HTML <<-HTML
&copy; 2004&ndash;2017 David Heinemeier Hansson<br> &copy; 2004&ndash;2018 David Heinemeier Hansson<br>
Licensed under the Creative Commons Attribution-ShareAlike 4.0 International License. Licensed under the Creative Commons Attribution-ShareAlike 4.0 International License.
HTML HTML
else else
<<-HTML <<-HTML
&copy; 2004&ndash;2017 David Heinemeier Hansson<br> &copy; 2004&ndash;2018 David Heinemeier Hansson<br>
Licensed under the MIT License. Licensed under the MIT License.
HTML HTML
end end
end end
version '5.2' do
self.release = '5.2.0'
end
version '5.1' do version '5.1' do
self.release = '5.1.4' self.release = '5.1.6'
end end
version '5.0' do version '5.0' do
self.release = '5.0.6' self.release = '5.0.7'
end end
version '4.2' do version '4.2' do

@ -2,7 +2,7 @@ module Docs
class React < UrlScraper class React < UrlScraper
self.name = 'React' self.name = 'React'
self.type = 'simple' self.type = 'simple'
self.release = '16.2.0' self.release = '16.3.0'
self.base_url = 'https://reactjs.org/docs/' self.base_url = 'https://reactjs.org/docs/'
self.root_path = 'hello-world.html' self.root_path = 'hello-world.html'
self.links = { self.links = {

@ -1,7 +1,7 @@
module Docs module Docs
class Redis < UrlScraper class Redis < UrlScraper
self.type = 'redis' self.type = 'redis'
self.release = '4.0.6' self.release = '4.0.9'
self.base_url = 'https://redis.io/commands' self.base_url = 'https://redis.io/commands'
self.links = { self.links = {
home: 'https://redis.io/', home: 'https://redis.io/',
@ -16,7 +16,7 @@ module Docs
options[:follow_links] = ->(filter) { filter.root_page? } options[:follow_links] = ->(filter) { filter.root_page? }
options[:attribution] = <<-HTML options[:attribution] = <<-HTML
&copy; 2009&ndash;2017 Salvatore Sanfilippo<br> &copy; 2009&ndash;2018 Salvatore Sanfilippo<br>
Licensed under the Creative Commons Attribution-ShareAlike License 4.0. Licensed under the Creative Commons Attribution-ShareAlike License 4.0.
HTML HTML
end end

@ -1,7 +1,7 @@
module Docs module Docs
class Rust < UrlScraper class Rust < UrlScraper
self.type = 'rust' self.type = 'rust'
self.release = '1.24.0' self.release = '1.25.0'
self.base_url = 'https://doc.rust-lang.org/' self.base_url = 'https://doc.rust-lang.org/'
self.root_path = 'book/first-edition/index.html' self.root_path = 'book/first-edition/index.html'
self.initial_paths = %w( self.initial_paths = %w(

@ -19,7 +19,7 @@ module Docs
HTML HTML
version '4' do version '4' do
self.release = '4.4.2' self.release = '4.5.0'
self.base_url = "http://sinonjs.org/releases/v#{release}/" self.base_url = "http://sinonjs.org/releases/v#{release}/"
end end

@ -2,7 +2,7 @@ module Docs
class Sqlite < FileScraper class Sqlite < FileScraper
self.name = 'SQLite' self.name = 'SQLite'
self.type = 'sqlite' self.type = 'sqlite'
self.release = '3.22.0' self.release = '3.23.1'
self.dir = '/Users/Thibaut/DevDocs/Docs/sqlite/' self.dir = '/Users/Thibaut/DevDocs/Docs/sqlite/'
self.base_url = 'https://sqlite.org/' self.base_url = 'https://sqlite.org/'
self.root_path = 'docs.html' self.root_path = 'docs.html'

@ -2,7 +2,7 @@ module Docs
class Typescript < UrlScraper class Typescript < UrlScraper
self.name = 'TypeScript' self.name = 'TypeScript'
self.type = 'typescript' self.type = 'typescript'
self.release = '2.7.2' self.release = '2.8.3'
self.base_url = 'https://www.typescriptlang.org/docs/' self.base_url = 'https://www.typescriptlang.org/docs/'
self.root_path = 'tutorial.html' self.root_path = 'tutorial.html'
self.links = { self.links = {

@ -3,8 +3,12 @@ module Docs
self.name = 'Underscore.js' self.name = 'Underscore.js'
self.slug = 'underscore' self.slug = 'underscore'
self.type = 'underscore' self.type = 'underscore'
self.release = '1.8.3' self.release = '1.9.0'
self.base_url = 'http://underscorejs.org' self.base_url = 'http://underscorejs.org'
self.links = {
home: 'http://underscorejs.org',
code: 'https://github.com/jashkenas/underscore'
}
html_filters.push 'underscore/clean_html', 'underscore/entries', 'title' html_filters.push 'underscore/clean_html', 'underscore/entries', 'title'
@ -13,7 +17,7 @@ module Docs
options[:skip_links] = true options[:skip_links] = true
options[:attribution] = <<-HTML options[:attribution] = <<-HTML
&copy; 2009&ndash;2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters &amp; Editors<br> &copy; 2009&ndash;2017 Jeremy Ashkenas, DocumentCloud and Investigative Reporters &amp; Editors<br>
Licensed under the MIT License. Licensed under the MIT License.
HTML HTML
end end

@ -2,7 +2,7 @@ module Docs
class Vagrant < UrlScraper class Vagrant < UrlScraper
self.name = 'Vagrant' self.name = 'Vagrant'
self.type = 'vagrant' self.type = 'vagrant'
self.release = '2.0.2' self.release = '2.0.4'
self.base_url = 'https://www.vagrantup.com/docs/' self.base_url = 'https://www.vagrantup.com/docs/'
self.root_path = 'index.html' self.root_path = 'index.html'
self.links = { self.links = {

@ -15,12 +15,12 @@ module Docs
options[:replace_paths] = { 'guide/' => 'guide/index.html' } options[:replace_paths] = { 'guide/' => 'guide/index.html' }
options[:attribution] = <<-HTML options[:attribution] = <<-HTML
&copy; 2013&ndash;2017 Evan You, Vue.js contributors<br> &copy; 2013&ndash;2018 Evan You, Vue.js contributors<br>
Licensed under the MIT License. Licensed under the MIT License.
HTML HTML
version '2' do version '2' do
self.release = '2.5.13' self.release = '2.5.16'
self.base_url = 'https://vuejs.org/v2/' self.base_url = 'https://vuejs.org/v2/'
self.root_path = 'guide/index.html' self.root_path = 'guide/index.html'
self.initial_paths = %w(api/) self.initial_paths = %w(api/)

@ -4,7 +4,7 @@ module Docs
self.type = 'webpack' self.type = 'webpack'
version do version do
self.release = '4.2.0' self.release = '4.6.0'
self.base_url = 'https://webpack.js.org/' self.base_url = 'https://webpack.js.org/'
self.root_path = 'guides/' self.root_path = 'guides/'
self.initial_paths = %w( self.initial_paths = %w(

@ -1,7 +1,7 @@
module Docs module Docs
class Yarn < UrlScraper class Yarn < UrlScraper
self.type = 'yarn' self.type = 'yarn'
self.release = '1.5.1' self.release = '1.6.0'
self.base_url = 'https://yarnpkg.com/en/docs/' self.base_url = 'https://yarnpkg.com/en/docs/'
self.links = { self.links = {
home: 'https://yarnpkg.com/', home: 'https://yarnpkg.com/',

Loading…
Cancel
Save