jazzy 0.13.3 → 0.13.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/CHANGELOG.md +22 -0
- data/Gemfile.lock +15 -15
- data/Rakefile +25 -0
- data/js/package-lock.json +39 -0
- data/js/package.json +17 -0
- data/lib/jazzy/config.rb +2 -1
- data/lib/jazzy/doc_builder.rb +1 -1
- data/lib/jazzy/gem_version.rb +1 -1
- data/lib/jazzy/source_module.rb +2 -1
- data/lib/jazzy/themes/apple/assets/js/jquery.min.js +2 -2
- data/lib/jazzy/themes/fullwidth/assets/js/jquery.min.js +2 -2
- data/lib/jazzy/themes/fullwidth/assets/js/lunr.min.js +6 -1
- data/lib/jazzy/themes/fullwidth/assets/js/typeahead.jquery.js +34 -14
- data/lib/jazzy/themes/jony/assets/js/jquery.min.js +2 -2
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e6614bb5a4465f50a9f0188ec56ad872d82963245f790c1815b650452be8d652
|
4
|
+
data.tar.gz: d807b40f914ca121eeaf8ff72016300f9da340f54aeeab310319a40c1bb90d3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cedba7374e64a603835c5270b1dcd57d79b79536fd9bc434995e35c223f55c6b100628296233e7370c7b8ebf4fba545475c7aac2f51510d8437dcb8a86aa3230
|
7
|
+
data.tar.gz: 6260815f7523b409fc6af6e4ce15a543f101e8bb85cf196a5dc4c0e6125efc77241e422de8a44f5925d587b83d825e076eb209d24fea04311f57b120b218ef89
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,25 @@
|
|
1
|
+
## 0.13.4
|
2
|
+
|
3
|
+
##### Breaking
|
4
|
+
|
5
|
+
* None.
|
6
|
+
|
7
|
+
##### Enhancements
|
8
|
+
|
9
|
+
* Update JavaScript libraries: jQuery 3.5.1 (all themes), Lunr 2.3.8,
|
10
|
+
typeahead.js 1.3.1 (`fullwidth` theme only).
|
11
|
+
[John Fairhurst](https://github.com/johnfairh)
|
12
|
+
|
13
|
+
##### Bug Fixes
|
14
|
+
|
15
|
+
* Fix warnings from Ruby 2.7.
|
16
|
+
[John Fairhurst](https://github.com/johnfairh)
|
17
|
+
[#1185](https://github.com/realm/jazzy/issues/1185)
|
18
|
+
|
19
|
+
* Accept `root_url` without trailing slash.
|
20
|
+
[John Fairhurst](https://github.com/johnfairh)
|
21
|
+
[#1188](https://github.com/realm/jazzy/issues/1188)
|
22
|
+
|
1
23
|
## 0.13.3
|
2
24
|
|
3
25
|
##### Breaking
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
jazzy (0.13.
|
4
|
+
jazzy (0.13.4)
|
5
5
|
cocoapods (~> 1.5)
|
6
6
|
mustache (~> 1.1)
|
7
7
|
open4
|
@@ -15,14 +15,14 @@ GEM
|
|
15
15
|
remote: https://rubygems.org/
|
16
16
|
specs:
|
17
17
|
CFPropertyList (3.0.2)
|
18
|
-
activesupport (4.2.11.
|
18
|
+
activesupport (4.2.11.3)
|
19
19
|
i18n (~> 0.7)
|
20
20
|
minitest (~> 5.1)
|
21
21
|
thread_safe (~> 0.3, >= 0.3.4)
|
22
22
|
tzinfo (~> 1.1)
|
23
23
|
addressable (2.7.0)
|
24
24
|
public_suffix (>= 2.0.2, < 5.0)
|
25
|
-
algoliasearch (1.27.
|
25
|
+
algoliasearch (1.27.2)
|
26
26
|
httpclient (~> 2.8, >= 2.8.3)
|
27
27
|
json (>= 1.5.1)
|
28
28
|
ast (2.4.0)
|
@@ -36,10 +36,10 @@ GEM
|
|
36
36
|
clintegracon (0.7.0)
|
37
37
|
colored (~> 1.2)
|
38
38
|
diffy
|
39
|
-
cocoapods (1.9.
|
39
|
+
cocoapods (1.9.3)
|
40
40
|
activesupport (>= 4.0.2, < 5)
|
41
41
|
claide (>= 1.0.2, < 2.0)
|
42
|
-
cocoapods-core (= 1.9.
|
42
|
+
cocoapods-core (= 1.9.3)
|
43
43
|
cocoapods-deintegrate (>= 1.0.3, < 2.0)
|
44
44
|
cocoapods-downloader (>= 1.2.2, < 2.0)
|
45
45
|
cocoapods-plugins (>= 1.0.0, < 2.0)
|
@@ -55,7 +55,7 @@ GEM
|
|
55
55
|
nap (~> 1.0)
|
56
56
|
ruby-macho (~> 1.4)
|
57
57
|
xcodeproj (>= 1.14.0, < 2.0)
|
58
|
-
cocoapods-core (1.9.
|
58
|
+
cocoapods-core (1.9.3)
|
59
59
|
activesupport (>= 4.0.2, < 6)
|
60
60
|
algoliasearch (~> 1.0)
|
61
61
|
concurrent-ruby (~> 1.1)
|
@@ -69,7 +69,7 @@ GEM
|
|
69
69
|
nap
|
70
70
|
cocoapods-search (1.0.0)
|
71
71
|
cocoapods-stats (1.1.0)
|
72
|
-
cocoapods-trunk (1.
|
72
|
+
cocoapods-trunk (1.5.0)
|
73
73
|
nap (>= 0.8, < 2.0)
|
74
74
|
netrc (~> 0.11)
|
75
75
|
cocoapods-try (1.2.0)
|
@@ -80,14 +80,14 @@ GEM
|
|
80
80
|
colored2 (~> 3.1)
|
81
81
|
crack (0.4.3)
|
82
82
|
safe_yaml (~> 1.0.0)
|
83
|
-
danger (
|
83
|
+
danger (8.0.0)
|
84
84
|
claide (~> 1.0)
|
85
85
|
claide-plugins (>= 0.9.2)
|
86
86
|
colored2 (~> 3.1)
|
87
87
|
cork (~> 0.1)
|
88
88
|
faraday (>= 0.9.0, < 2.0)
|
89
89
|
faraday-http-cache (~> 2.0)
|
90
|
-
git (~> 1.
|
90
|
+
git (~> 1.7)
|
91
91
|
kramdown (~> 2.0)
|
92
92
|
kramdown-parser-gfm (~> 1.0)
|
93
93
|
no_proxy_fix
|
@@ -105,7 +105,7 @@ GEM
|
|
105
105
|
fourflusher (2.3.1)
|
106
106
|
fuzzy_match (2.0.4)
|
107
107
|
gh_inspector (1.1.3)
|
108
|
-
git (1.
|
108
|
+
git (1.7.0)
|
109
109
|
rchardet (~> 1.8)
|
110
110
|
hashdiff (1.0.1)
|
111
111
|
httpclient (2.8.3)
|
@@ -117,7 +117,7 @@ GEM
|
|
117
117
|
kramdown-parser-gfm (1.1.0)
|
118
118
|
kramdown (~> 2.0)
|
119
119
|
liferaft (0.0.6)
|
120
|
-
minitest (5.14.
|
120
|
+
minitest (5.14.1)
|
121
121
|
mocha (1.11.2)
|
122
122
|
mocha-on-bacon (0.2.3)
|
123
123
|
mocha (>= 0.13.0)
|
@@ -133,19 +133,19 @@ GEM
|
|
133
133
|
sawyer (~> 0.8.0, >= 0.5.3)
|
134
134
|
open4 (1.3.4)
|
135
135
|
parallel (1.19.1)
|
136
|
-
parser (2.7.1.
|
136
|
+
parser (2.7.1.3)
|
137
137
|
ast (~> 2.4.0)
|
138
138
|
powerpack (0.1.2)
|
139
139
|
prettybacon (0.0.2)
|
140
140
|
bacon (~> 1.2)
|
141
|
-
public_suffix (4.0.
|
141
|
+
public_suffix (4.0.5)
|
142
142
|
rainbow (2.2.2)
|
143
143
|
rake
|
144
144
|
rake (13.0.1)
|
145
145
|
rchardet (1.8.0)
|
146
146
|
redcarpet (3.5.0)
|
147
147
|
rexml (3.2.4)
|
148
|
-
rouge (3.
|
148
|
+
rouge (3.19.0)
|
149
149
|
rubocop (0.49.0)
|
150
150
|
parallel (~> 1.10)
|
151
151
|
parser (>= 2.3.3.1, < 3.0)
|
@@ -165,7 +165,7 @@ GEM
|
|
165
165
|
terminal-table (1.8.0)
|
166
166
|
unicode-display_width (~> 1.1, >= 1.1.1)
|
167
167
|
thread_safe (0.3.6)
|
168
|
-
typhoeus (1.
|
168
|
+
typhoeus (1.4.0)
|
169
169
|
ethon (>= 0.9.0)
|
170
170
|
tzinfo (1.2.7)
|
171
171
|
thread_safe (~> 0.1)
|
data/Rakefile
CHANGED
@@ -109,6 +109,31 @@ begin
|
|
109
109
|
FileUtils.cp_r "#{sk_dir}/.build/release/sourcekitten", 'bin'
|
110
110
|
end
|
111
111
|
|
112
|
+
#-- Theme Dependencies -----------------------------------------------------#
|
113
|
+
|
114
|
+
THEME_FILES = {
|
115
|
+
'jquery/dist/jquery.min.js' => [
|
116
|
+
'themes/apple/assets/js',
|
117
|
+
'themes/fullwidth/assets/js',
|
118
|
+
'themes/jony/assets/js'
|
119
|
+
],
|
120
|
+
'lunr/lunr.min.js' => ['themes/fullwidth/assets/js'],
|
121
|
+
'corejs-typeahead/dist/typeahead.jquery.js' =>
|
122
|
+
['themes/fullwidth/assets/js'],
|
123
|
+
'katex/dist/katex.min.css' => ['extensions/katex/css'],
|
124
|
+
'katex/dist/fonts' => ['extensions/katex/css'],
|
125
|
+
'katex/dist/katex.min.js' => ['extensions/katex/js']
|
126
|
+
}
|
127
|
+
|
128
|
+
desc 'Copies theme dependencies (`npm update/install` by hand first)'
|
129
|
+
task :theme_deps do
|
130
|
+
THEME_FILES.each_pair do |src, dsts|
|
131
|
+
dsts.each do |dst|
|
132
|
+
FileUtils.cp_r "js/node_modules/#{src}", "lib/jazzy/#{dst}"
|
133
|
+
end
|
134
|
+
end
|
135
|
+
end
|
136
|
+
|
112
137
|
rescue LoadError, NameError => e
|
113
138
|
$stderr.puts "\033[0;31m" \
|
114
139
|
'[!] Some Rake tasks haven been disabled because the environment' \
|
@@ -0,0 +1,39 @@
|
|
1
|
+
{
|
2
|
+
"name": "jazzy-js",
|
3
|
+
"version": "1.0.0",
|
4
|
+
"lockfileVersion": 1,
|
5
|
+
"requires": true,
|
6
|
+
"dependencies": {
|
7
|
+
"commander": {
|
8
|
+
"version": "2.20.3",
|
9
|
+
"resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz",
|
10
|
+
"integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ=="
|
11
|
+
},
|
12
|
+
"corejs-typeahead": {
|
13
|
+
"version": "1.3.1",
|
14
|
+
"resolved": "https://registry.npmjs.org/corejs-typeahead/-/corejs-typeahead-1.3.1.tgz",
|
15
|
+
"integrity": "sha512-fyNlBNWJNL6EQUnJyAunEzBzRcwR2cEHtZXBi2pndHPOJ/wpOf3wbS+/Oh+kYYS5sKowQcs0LFwMSl6Y2Xeqkw==",
|
16
|
+
"requires": {
|
17
|
+
"jquery": ">=1.11"
|
18
|
+
}
|
19
|
+
},
|
20
|
+
"jquery": {
|
21
|
+
"version": "3.5.1",
|
22
|
+
"resolved": "https://registry.npmjs.org/jquery/-/jquery-3.5.1.tgz",
|
23
|
+
"integrity": "sha512-XwIBPqcMn57FxfT+Go5pzySnm4KWkT1Tv7gjrpT1srtf8Weynl6R273VJ5GjkRb51IzMp5nbaPjJXMWeju2MKg=="
|
24
|
+
},
|
25
|
+
"katex": {
|
26
|
+
"version": "0.11.1",
|
27
|
+
"resolved": "https://registry.npmjs.org/katex/-/katex-0.11.1.tgz",
|
28
|
+
"integrity": "sha512-5oANDICCTX0NqYIyAiFCCwjQ7ERu3DQG2JFHLbYOf+fXaMoH8eg/zOq5WSYJsKMi/QebW+Eh3gSM+oss1H/bww==",
|
29
|
+
"requires": {
|
30
|
+
"commander": "^2.19.0"
|
31
|
+
}
|
32
|
+
},
|
33
|
+
"lunr": {
|
34
|
+
"version": "2.3.8",
|
35
|
+
"resolved": "https://registry.npmjs.org/lunr/-/lunr-2.3.8.tgz",
|
36
|
+
"integrity": "sha512-oxMeX/Y35PNFuZoHp+jUj5OSEmLCaIH4KTFJh7a93cHBoFmpw2IoPs22VIz7vyO2YUnx2Tn9dzIwO2P/4quIRg=="
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|
data/js/package.json
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
{
|
2
|
+
"name": "jazzy-js",
|
3
|
+
"version": "1.0.0",
|
4
|
+
"description": "Jazzy theme dependencies",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
8
|
+
},
|
9
|
+
"author": "",
|
10
|
+
"license": "MIT",
|
11
|
+
"dependencies": {
|
12
|
+
"corejs-typeahead": "^1.3.1",
|
13
|
+
"jquery": "^3.5.1",
|
14
|
+
"katex": "^0.11.1",
|
15
|
+
"lunr": "^2.3.8"
|
16
|
+
}
|
17
|
+
}
|
data/lib/jazzy/config.rb
CHANGED
@@ -310,7 +310,8 @@ module Jazzy
|
|
310
310
|
config_attr :root_url,
|
311
311
|
command_line: ['-r', '--root-url URL'],
|
312
312
|
description: 'Absolute URL root where these docs will be stored',
|
313
|
-
|
313
|
+
# ensure trailing slash for correct URI.join()
|
314
|
+
parse: ->(r) { URI(r.sub(%r{/?$}, '/')) }
|
314
315
|
|
315
316
|
config_attr :dash_url,
|
316
317
|
command_line: ['-d', '--dash_url URL'],
|
data/lib/jazzy/doc_builder.rb
CHANGED
@@ -378,7 +378,7 @@ module Jazzy
|
|
378
378
|
{
|
379
379
|
name: mark.name,
|
380
380
|
name_html: (render(doc_model, mark.name) if mark.name),
|
381
|
-
uid:
|
381
|
+
uid: ERB::Util.url_encode(uid),
|
382
382
|
items: items,
|
383
383
|
pre_separator: mark.has_start_dash,
|
384
384
|
post_separator: mark.has_end_dash,
|
data/lib/jazzy/gem_version.rb
CHANGED
data/lib/jazzy/source_module.rb
CHANGED
@@ -27,7 +27,8 @@ module Jazzy
|
|
27
27
|
self.github_file_prefix = options.github_file_prefix
|
28
28
|
self.author_url = options.author_url
|
29
29
|
return unless options.dash_url
|
30
|
-
self.dash_url =
|
30
|
+
self.dash_url =
|
31
|
+
"dash-feed://#{ERB::Util.url_encode(options.dash_url.to_s)}"
|
31
32
|
end
|
32
33
|
|
33
34
|
def all_declarations
|