History

Update Angular.js documentation (1.5.8, 1.4.12, 1.3.20, 1.2.30)

Fixes #440.

Thibaut Courouble committed 10 years ago

Commit b9b41d01 parent c8c5a472 files · +4 −5Browse files

Unified · Split

2 files
  1. lib/docs/filters/core/internal_urls.rb +0 −1
  2. lib/docs/scrapers/angularjs.rb +4 −4
lib/docs/filters/core/internal_urls.rb+0−1
@@ -39,7 +39,6 @@ module Docs · 38 unmodified lines
3939 def to_internal_url(str)
4040 return unless (url = parse_url(str)) && (subpath = subpath_to(url))
4141 normalize_subpath(subpath)
42− subpath = URI.unescape(subpath) if context[:decode_and_clean_paths]
4342 return if skip_subpath?(subpath)
4443 normalize_url(url, subpath)
4544 url
lib/docs/scrapers/angularjs.rb+4−4
@@ -22,10 +22,10 @@ module Docs · 21 unmodified lines
2222 options[:fix_urls] = ->(url) do
2323 %w(api guide).each do |str|
2424 url.sub! "/partials/#{str}/#{str}/", "/partials/#{str}/"
25− url.sub! %r{/#{str}/img/}, "/img/"
25+ url.sub! %r{/#{str}/img/}, '/img/'
2626 url.sub! %r{/#{str}/(.+?)/#{str}/}, "/#{str}/"
2727 url.sub! %r{/partials/#{str}/(.+?)(?<!\.html)(?:\z|(#.*))}, "/partials/#{str}/\\1.html\\2"
28− url.sub! %r{/partials/.+/#{str}/}, "/partials/#{str}/"
28+ url.sub! %r{/partials/(?!img).+/#{str}/}, "/partials/#{str}/"
2929 end
3030 url
3131 end
@@ -46,7 +46,7 @@ module Docs · 14 unmodified lines
4646 end
4747
4848 version '1.5' do
49− self.release = '1.5.7'
49+ self.release = '1.5.8'
5050 self.base_url = "https://code.angularjs.org/#{release}/docs/partials/"
5151 end
5252
@@ -61,7 +61,7 @@ module Docs · 8 unmodified lines
6161 end
6262
6363 version '1.2' do
64− self.release = '1.2.29'
64+ self.release = '1.2.30'
6565 self.base_url = "https://code.angularjs.org/#{release}/docs/partials/"
6666 end
6767 end

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t