jazzy 0.9.2 → 0.9.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +21 -1
- data/Gemfile.lock +1 -1
- data/README.md +7 -7
- data/jazzy.gemspec +1 -1
- data/lib/jazzy/config.rb +18 -11
- data/lib/jazzy/docset_builder.rb +1 -1
- data/lib/jazzy/gem_version.rb +1 -1
- data/lib/jazzy/themes/apple/templates/footer.mustache +1 -1
- data/lib/jazzy/themes/fullwidth/templates/footer.mustache +1 -1
- data/lib/jazzy/themes/jony/templates/footer.mustache +1 -1
- data/spec/integration_spec.rb +3 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: accd6c9ed649bd4be1a4bbc78ad1d0bce7c426de
|
4
|
+
data.tar.gz: 7b3d85bc26cef54041f0b9536e9273f283e952d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f738c74fb08575c110f13407de425ad988b582f56798fa09899a8e87735c62d966faf4e519eeae349a97393ee69b6c8ece48b1a2df3c2fc9623976dc4d1289d1
|
7
|
+
data.tar.gz: 77fd0c7d2d0ca3af3c284c04c1789747bff4e1dee6c7dfa567092bd3539ee3a1f9e67bf2438bda43f96aa572c4374ac21534006fb17b2df72f54984eaa171dfb
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,23 @@
|
|
1
|
+
## 0.9.3
|
2
|
+
|
3
|
+
##### Breaking
|
4
|
+
|
5
|
+
* None.
|
6
|
+
|
7
|
+
##### Enhancements
|
8
|
+
|
9
|
+
* None.
|
10
|
+
|
11
|
+
##### Bug Fixes
|
12
|
+
|
13
|
+
* Fix crash when specifying empty Swift version. Now correctly uses the default
|
14
|
+
Swift version.
|
15
|
+
[JP Simard](https://github.com/jpsim)
|
16
|
+
|
17
|
+
* Fix jony theme selection.
|
18
|
+
[John Fairhurst](https://github.com/johnfairh)
|
19
|
+
[#962](https://github.com/realm/jazzy/issues/962)
|
20
|
+
|
1
21
|
## 0.9.2
|
2
22
|
|
3
23
|
##### Breaking
|
@@ -738,7 +758,7 @@
|
|
738
758
|
[#310](https://github.com/realm/jazzy/pull/310)
|
739
759
|
|
740
760
|
* Render special list items (e.g. Throws, See, etc.). See
|
741
|
-
|
761
|
+
https://ericasadun.com/2015/06/14/swift-header-documentation-in-xcode-7/ for
|
742
762
|
a complete list.
|
743
763
|
[JP Simard](https://github.com/jpsim)
|
744
764
|
[#317](https://github.com/realm/jazzy/issues/317)
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -54,7 +54,7 @@ all available options, run `jazzy --help config`.
|
|
54
54
|
### Supported keywords
|
55
55
|
|
56
56
|
Swift documentation is written in markdown and supports a number of special keywords.
|
57
|
-
For a complete list and examples, see Erica Sadun's post on [*Swift header documentation in Xcode 7*](
|
57
|
+
For a complete list and examples, see Erica Sadun's post on [*Swift header documentation in Xcode 7*](https://ericasadun.com/2015/06/14/swift-header-documentation-in-xcode-7/),
|
58
58
|
her [book on Swift Documentation Markup](https://itunes.apple.com/us/book/swift-documentation-markup/id1049010423), and the [Xcode Markup Formatting Reference](https://developer.apple.com/library/content/documentation/Xcode/Reference/xcode_markup_formatting_ref/).
|
59
59
|
|
60
60
|
For Objective-C documentation the same keywords are supported, but note that the format
|
@@ -186,7 +186,7 @@ Unlike the `--documentation` option, these files are not included in navigation
|
|
186
186
|
|
187
187
|
This is very helpful when using `custom_categories` for grouping types and including relevant documentation in those sections.
|
188
188
|
|
189
|
-
For an example of a project using both `--documentation` and `--abstract` see: [
|
189
|
+
For an example of a project using both `--documentation` and `--abstract` see: [https://reswift.github.io/ReSwift/](https://reswift.github.io/ReSwift/)
|
190
190
|
|
191
191
|
### Controlling what is documented
|
192
192
|
|
@@ -273,10 +273,10 @@ See [our other open source projects](https://github.com/realm),
|
|
273
273
|
read [our blog](https://realm.io/news) or say hi on twitter
|
274
274
|
([@realm](https://twitter.com/realm)).
|
275
275
|
|
276
|
-
[clang]:
|
277
|
-
[sourcekit]:
|
278
|
-
[ast]:
|
276
|
+
[clang]: https://clang.llvm.org "Clang"
|
277
|
+
[sourcekit]: https://www.jpsim.com/uncovering-sourcekit "Uncovering SourceKit"
|
278
|
+
[ast]: https://clang.llvm.org/docs/IntroductionToTheClangAST.html "Introduction To The Clang AST"
|
279
279
|
[xcode]: https://developer.apple.com/xcode "Xcode"
|
280
280
|
[SourceKitten]: https://github.com/jpsim/SourceKitten "SourceKitten"
|
281
|
-
[bundler]:
|
282
|
-
[mustache]:
|
281
|
+
[bundler]: https://rubygems.org/gems/bundler
|
282
|
+
[mustache]: https://mustache.github.io "Mustache"
|
data/jazzy.gemspec
CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
|
|
11
11
|
spec.description = 'Soulful docs for Swift & Objective-C. ' \
|
12
12
|
"Run in your Xcode project's root directory for " \
|
13
13
|
'instant HTML docs.'
|
14
|
-
spec.homepage = '
|
14
|
+
spec.homepage = 'https://github.com/realm/jazzy'
|
15
15
|
spec.license = 'MIT'
|
16
16
|
|
17
17
|
spec.files = `git ls-files`.split($/)
|
data/lib/jazzy/config.rb
CHANGED
@@ -180,9 +180,12 @@ module Jazzy
|
|
180
180
|
command_line: '--swift-version VERSION',
|
181
181
|
default: nil,
|
182
182
|
parse: ->(v) do
|
183
|
-
|
184
|
-
|
185
|
-
|
183
|
+
if v.to_s.empty?
|
184
|
+
nil
|
185
|
+
else
|
186
|
+
raise 'jazzy only supports Swift 2.0 or later.' if v.to_f < 2
|
187
|
+
v
|
188
|
+
end
|
186
189
|
end
|
187
190
|
|
188
191
|
# ──────── Metadata ────────
|
@@ -194,7 +197,7 @@ module Jazzy
|
|
194
197
|
|
195
198
|
config_attr :author_url,
|
196
199
|
command_line: ['-u', '--author_url URL'],
|
197
|
-
description: 'Author URL of this project (e.g.
|
200
|
+
description: 'Author URL of this project (e.g. https://realm.io)',
|
198
201
|
default: '',
|
199
202
|
parse: ->(u) { URI(u) }
|
200
203
|
|
@@ -252,7 +255,7 @@ module Jazzy
|
|
252
255
|
config_attr :dash_url,
|
253
256
|
command_line: ['-d', '--dash_url URL'],
|
254
257
|
description: 'Location of the dash XML feed '\
|
255
|
-
'e.g.
|
258
|
+
'e.g. https://realm.io/docsets/realm.xml)',
|
256
259
|
parse: ->(d) { URI(d) }
|
257
260
|
|
258
261
|
config_attr :github_url,
|
@@ -302,7 +305,7 @@ module Jazzy
|
|
302
305
|
description: ['Custom navigation categories to replace the standard '\
|
303
306
|
'“Classes, Protocols, etc.”', 'Types not explicitly named '\
|
304
307
|
'in a custom category appear in generic groups at the end.',
|
305
|
-
'Example:
|
308
|
+
'Example: https://git.io/v4Bcp'],
|
306
309
|
default: []
|
307
310
|
|
308
311
|
config_attr :custom_head,
|
@@ -310,15 +313,19 @@ module Jazzy
|
|
310
313
|
description: 'Custom HTML to inject into <head></head>.',
|
311
314
|
default: ''
|
312
315
|
|
316
|
+
BUILTIN_THEME_DIR = Pathname(__FILE__).parent + 'themes'
|
317
|
+
BUILTIN_THEMES = BUILTIN_THEME_DIR.children(false).map(&:to_s)
|
318
|
+
|
313
319
|
config_attr :theme_directory,
|
314
|
-
command_line:
|
320
|
+
command_line: "--theme [#{BUILTIN_THEMES.join(' | ')} | DIRPATH]",
|
315
321
|
description: "Which theme to use. Specify either 'apple' (default), "\
|
316
|
-
|
317
|
-
'templates and other assets for a custom
|
322
|
+
'one of the other built-in theme names, or the path to '\
|
323
|
+
'your mustache templates and other assets for a custom '\
|
324
|
+
'theme.',
|
318
325
|
default: 'apple',
|
319
326
|
parse: ->(t) do
|
320
|
-
if
|
321
|
-
|
327
|
+
if BUILTIN_THEMES.include?(t)
|
328
|
+
BUILTIN_THEME_DIR + t
|
322
329
|
else
|
323
330
|
expand_path(t)
|
324
331
|
end
|
data/lib/jazzy/docset_builder.rb
CHANGED
data/lib/jazzy/gem_version.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
<section id="footer">
|
2
2
|
{{{copyright}}}
|
3
|
-
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v{{jazzy_version}}</a>, a <a class="link" href="
|
3
|
+
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v{{jazzy_version}}</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
4
4
|
</section>
|
@@ -1,4 +1,4 @@
|
|
1
1
|
<section class="footer">
|
2
2
|
{{{copyright}}}
|
3
|
-
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v{{jazzy_version}}</a>, a <a class="link" href="
|
3
|
+
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v{{jazzy_version}}</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
4
4
|
</section>
|
@@ -1,4 +1,4 @@
|
|
1
1
|
<section id="footer">
|
2
2
|
{{{copyright}}}
|
3
|
-
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v{{jazzy_version}}</a>, a <a class="link" href="
|
3
|
+
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v{{jazzy_version}}</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
4
4
|
</section>
|
data/spec/integration_spec.rb
CHANGED
@@ -210,8 +210,9 @@ describe_cli 'jazzy' do
|
|
210
210
|
behaves_like cli_spec 'document_siesta',
|
211
211
|
# Siesta already has Docs/
|
212
212
|
'--output api-docs',
|
213
|
-
# Use Swift
|
214
|
-
|
213
|
+
# Use the default Swift version rather than the
|
214
|
+
# specified 4.0
|
215
|
+
'--swift-version='
|
215
216
|
end
|
216
217
|
|
217
218
|
describe 'Creates docs for Swift project with a variety of contents' do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jazzy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- JP Simard
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2018-
|
13
|
+
date: 2018-05-06 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: cocoapods
|
@@ -258,7 +258,7 @@ files:
|
|
258
258
|
- spec/sourcekitten_spec.rb
|
259
259
|
- spec/spec_helper.rb
|
260
260
|
- spec/spec_helper/pre_flight.rb
|
261
|
-
homepage:
|
261
|
+
homepage: https://github.com/realm/jazzy
|
262
262
|
licenses:
|
263
263
|
- MIT
|
264
264
|
metadata: {}
|