Skip to content

Commit bf53a00

Browse files
committed
Fix merge conflicts
2 parents cdd86a8 + e8d52c9 commit bf53a00

File tree

124 files changed

+849
-753
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

124 files changed

+849
-753
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
language: ruby
2+
3+
cache: bundler
4+
25
before_script:
36
- gem update --system
47
- gem install bundler

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ group :app do
1111
gem 'rack'
1212
gem 'sinatra'
1313
gem 'sinatra-contrib'
14+
gem 'rack-ssl-enforcer'
1415
gem 'thin'
1516
gem 'sprockets'
1617
gem 'sprockets-helpers'

Gemfile.lock

Lines changed: 30 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
activesupport (5.2.0)
4+
activesupport (5.2.1)
55
concurrent-ruby (~> 1.0, >= 1.0.2)
66
i18n (>= 0.7, < 2)
77
minitest (~> 5.1)
88
tzinfo (~> 1.1)
9-
backports (3.11.3)
10-
better_errors (2.4.0)
9+
backports (3.11.4)
10+
better_errors (2.5.0)
1111
coderay (>= 1.0.0)
1212
erubi (>= 1.0.0)
1313
rack (>= 0.9.0)
@@ -28,66 +28,67 @@ GEM
2828
exifr (1.3.4)
2929
ffi (1.9.25)
3030
fspath (3.1.0)
31-
highline (1.7.10)
31+
highline (2.0.0)
3232
html-pipeline (2.8.4)
3333
activesupport (>= 2)
3434
nokogiri (>= 1.4)
35-
i18n (1.0.1)
35+
i18n (1.1.1)
3636
concurrent-ruby (~> 1.0)
37-
image_optim (0.26.1)
37+
image_optim (0.26.3)
3838
exifr (~> 1.2, >= 1.2.2)
3939
fspath (~> 3.0)
40-
image_size (~> 1.5)
40+
image_size (>= 1.5, < 3)
4141
in_threads (~> 1.3)
4242
progress (~> 3.0, >= 3.0.1)
4343
image_optim_pack (0.5.1)
4444
fspath (>= 2.1, < 4)
4545
image_optim (~> 0.19)
46-
image_size (1.5.0)
46+
image_size (2.0.0)
4747
in_threads (1.5.0)
4848
method_source (0.9.0)
4949
mini_portile2 (2.3.0)
5050
minitest (5.11.3)
5151
multi_json (1.13.1)
52-
mustermann (1.0.2)
53-
newrelic_rpm (5.2.0.345)
54-
nokogiri (1.8.4)
52+
mustermann (1.0.3)
53+
newrelic_rpm (5.4.0.347)
54+
nokogiri (1.8.5)
5555
mini_portile2 (~> 2.3.0)
5656
options (2.3.2)
57-
progress (3.4.0)
58-
progress_bar (1.2.0)
59-
highline (~> 1.6)
57+
progress (3.5.0)
58+
progress_bar (1.3.0)
59+
highline (>= 1.6, < 3)
6060
options (~> 2.3.0)
6161
pry (0.11.3)
6262
coderay (~> 1.1.0)
6363
method_source (~> 0.9.0)
6464
rack (2.0.5)
65-
rack-protection (2.0.3)
65+
rack-protection (2.0.4)
6666
rack
67+
rack-ssl-enforcer (0.2.9)
6768
rack-test (1.1.0)
6869
rack (>= 1.0, < 3)
6970
rake (12.3.1)
7071
rb-fsevent (0.10.3)
7172
rb-inotify (0.9.10)
7273
ffi (>= 0.5.0, < 2)
7374
rr (1.2.1)
74-
sass (3.5.7)
75+
sass (3.6.0)
7576
sass-listen (~> 4.0.0)
7677
sass-listen (4.0.0)
7778
rb-fsevent (~> 0.9, >= 0.9.4)
7879
rb-inotify (~> 0.9, >= 0.9.7)
79-
sinatra (2.0.3)
80+
sinatra (2.0.4)
8081
mustermann (~> 1.0)
8182
rack (~> 2.0)
82-
rack-protection (= 2.0.3)
83+
rack-protection (= 2.0.4)
8384
tilt (~> 2.0)
84-
sinatra-contrib (2.0.3)
85+
sinatra-contrib (2.0.4)
8586
activesupport (>= 4.0.0)
8687
backports (>= 2.8.2)
8788
multi_json
8889
mustermann (~> 1.0)
89-
rack-protection (= 2.0.3)
90-
sinatra (= 2.0.3)
90+
rack-protection (= 2.0.4)
91+
sinatra (= 2.0.4)
9192
tilt (>= 1.3, < 3)
9293
sprockets (3.7.2)
9394
concurrent-ruby (~> 1.0)
@@ -96,9 +97,11 @@ GEM
9697
sprockets (>= 2.2)
9798
sprockets-sass (2.0.0.beta2)
9899
sprockets (>= 2.0, < 4.0)
99-
strings (0.1.1)
100-
unicode-display_width (~> 1.3.0)
100+
strings (0.1.4)
101+
strings-ansi (~> 0.1.0)
102+
unicode-display_width (~> 1.4.0)
101103
unicode_utils (~> 1.4.0)
104+
strings-ansi (0.1.0)
102105
thin (1.7.2)
103106
daemons (~> 1.0, >= 1.0.9)
104107
eventmachine (~> 1.0, >= 1.0.4)
@@ -116,9 +119,9 @@ GEM
116119
ethon (>= 0.9.0)
117120
tzinfo (1.2.5)
118121
thread_safe (~> 0.1)
119-
uglifier (4.1.17)
122+
uglifier (4.1.19)
120123
execjs (>= 0.3.0, < 3)
121-
unicode-display_width (1.3.3)
124+
unicode-display_width (1.4.0)
122125
unicode_utils (1.4.0)
123126
unix_utils (0.0.15)
124127
yajl-ruby (1.4.1)
@@ -142,6 +145,7 @@ DEPENDENCIES
142145
progress_bar
143146
pry (~> 0.11.0)
144147
rack
148+
rack-ssl-enforcer
145149
rack-test
146150
rake
147151
rr
@@ -163,4 +167,4 @@ RUBY VERSION
163167
ruby 2.5.1p57
164168

165169
BUNDLED WITH
166-
1.16.4
170+
1.16.6

README.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,10 @@ Another driving factor is performance and the fact that everything happens in th
6464

6565
DevDocs being a developer tool, the browser requirements are high:
6666

67-
1. On the desktop:
68-
* Recent version of Chrome, Firefox, or Opera
69-
* Safari 8+
70-
* IE / Edge 10+
71-
2. On mobile:
72-
* iOS 8+
73-
* Android 4.1+
74-
* Windows Phone 8+
67+
* Recent versions of Firefox, Chrome, or Opera
68+
* Safari 9.1+
69+
* Edge 16+
70+
* iOS 10+
7571

7672
This allows the code to take advantage of the latest DOM and HTML5 APIs and make developing DevDocs a lot more fun!
7773

assets/javascripts/app/app.coffee

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@
245245
matchMedia: !!window.matchMedia
246246
insertAdjacentHTML: !!document.body.insertAdjacentHTML
247247
defaultPrevented: document.createEvent('CustomEvent').defaultPrevented is false
248-
cssGradients: supportsCssGradients()
248+
cssVariables: CSS.supports and CSS.supports('(--t: 0)')
249249

250250
for key, value of features when not value
251251
Raven.captureMessage "unsupported/#{key}", level: 'info'
@@ -268,9 +268,4 @@
268268
isInvalidLocation: ->
269269
@config.env is 'production' and location.host.indexOf(app.config.production_host) isnt 0
270270

271-
supportsCssGradients = ->
272-
el = document.createElement('div')
273-
el.style.cssText = "background-image: -webkit-linear-gradient(top, #000, #fff); background-image: linear-gradient(to top, #000, #fff);"
274-
el.style.backgroundImage.indexOf('gradient') >= 0
275-
276271
$.extend app, Events

assets/javascripts/lib/page.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ isSameOrigin = (url) ->
190190

191191
updateCanonicalLink = ->
192192
@canonicalLink ||= document.head.querySelector('link[rel="canonical"]')
193-
@canonicalLink.setAttribute('href', "http://#{location.host}#{location.pathname}")
193+
@canonicalLink.setAttribute('href', "https://#{location.host}#{location.pathname}")
194194

195195
trackers = []
196196

assets/javascripts/news.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
[
22
[
3+
"2018-09-23",
4+
"New documentations: <a href=\"/puppeteer/\">Puppeteer</a> and <a href=\"/handlebars/\">Handlebars.js</a>"
5+
], [
36
"2018-08-12",
47
"New documentations: <a href=\"/dart/\">Dart</a> and <a href=\"/qt/\">Qt</a>"
58
], [

assets/javascripts/templates/error_tmpl.coffee

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,10 @@ app.templates.unsupportedBrowser = """
5656
<h1 class="_fail-title">Your browser is unsupported, sorry.</h1>
5757
<p class="_fail-text">DevDocs is an API documentation browser which supports the following browsers:
5858
<ul class="_fail-list">
59-
<li>Recent versions of Chrome and Firefox
60-
<li>Safari 5.1+
61-
<li>Opera 12.1+
62-
<li>Internet Explorer 10+
63-
<li>iOS 6+
64-
<li>Android 4.1+
65-
<li>Windows Phone 8+
59+
<li>Recent versions of Firefox, Chrome, or Opera
60+
<li>Safari 9.1+
61+
<li>Edge 16+
62+
<li>iOS 10+
6663
</ul>
6764
<p class="_fail-text">
6865
If you're unable to upgrade, I apologize.

assets/javascripts/templates/pages/about_tmpl.coffee

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,11 @@ credits = [
310310
'GruntJS Team',
311311
'MIT',
312312
'https://github.com/gruntjs/grunt-docs/blob/master/package.json#L10'
313+
], [
314+
'Handlebars',
315+
'2011-2017 Yehuda Katz',
316+
'MIT',
317+
'https://raw.githubusercontent.com/wycats/handlebars.js/master/LICENSE'
313318
], [
314319
'Haskell',
315320
'The University of Glasgow',
@@ -560,6 +565,11 @@ credits = [
560565
'1996-2018 The PostgreSQL Global Development Group<br>&copy; 1994 The Regents of the University of California',
561566
'PostgreSQL',
562567
'https://www.postgresql.org/about/licence/'
568+
], [
569+
'Puppeteer',
570+
'2017 Google Inc',
571+
'Apache',
572+
'https://raw.githubusercontent.com/GoogleChrome/puppeteer/master/LICENSE'
563573
], [
564574
'Pygame',
565575
'Pygame Developpers',

assets/javascripts/templates/pages/root_tmpl.coffee.erb

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,3 @@ app.templates.androidWarning = """
7272
<p>To install DevDocs on your phone, visit <a href="https://devdocs.io" target="_blank" rel="noopener">devdocs.io</a> in Chrome and select "Add to home screen" in the menu.
7373
</div>
7474
"""
75-
76-
app.templates.httpWarning = """
77-
<div class="_intro"><div class="_intro-message">
78-
<h2 class="_intro-title">Hi there!</h2>
79-
<p>DevDocs is migrating to HTTPS.
80-
<p>Please update your bookmarks to point to <a href="https://devdocs.io">https://devdocs.io</a>.
81-
<p>When using the HTTPS version, your preferences will carry over automatically, but your offline data will be reset. Simply re-download documentation in the <a href="https://devdocs.io/offline">Offline area</a>, and you'll be all set to use DevDocs securely offline.
82-
<p>Sorry for the inconvenience. This migration is needed because browsers are removing support for certain DOM APIs that power DevDocs's offline mode over non-secure origins.
83-
<p>Thanks for using DevDocs, and happy coding!
84-
</div></div>
85-
"""

0 commit comments

Comments
 (0)