jazzy 0.0.20 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitmodules +6 -3
- data/.travis.yml +1 -1
- data/CHANGELOG.md +23 -1
- data/Gemfile.lock +41 -5
- data/Rakefile +21 -0
- data/jazzy.gemspec +1 -0
- data/lib/jazzy/assets/css/jazzy.css.scss +26 -0
- data/lib/jazzy/config.rb +29 -0
- data/lib/jazzy/doc_builder.rb +17 -9
- data/lib/jazzy/docset_builder.rb +13 -4
- data/lib/jazzy/gem_version.rb +1 -1
- data/lib/jazzy/jazzy_markdown.rb +2 -1
- data/lib/jazzy/podspec_documenter.rb +109 -0
- data/lib/jazzy/readme_generator.rb +33 -6
- data/lib/jazzy/sourcekitten.rb +15 -2
- data/lib/jazzy/sourcekitten/Commandant.framework/Commandant +0 -0
- data/lib/jazzy/sourcekitten/Commandant.framework/Versions/A/Commandant +0 -0
- data/lib/jazzy/sourcekitten/Commandant.framework/Versions/A/Modules/Commandant.swiftmodule/x86_64.swiftdoc +0 -0
- data/lib/jazzy/sourcekitten/Commandant.framework/Versions/A/Modules/Commandant.swiftmodule/x86_64.swiftmodule +0 -0
- data/lib/jazzy/sourcekitten/Commandant.framework/Versions/A/Modules/module.modulemap +10 -0
- data/{spec/integration_specs/misc_jazzy_features/before/MiscJazzyFeatures → lib/jazzy/sourcekitten/Commandant.framework/Versions/A/Resources}/Info.plist +21 -7
- data/lib/jazzy/sourcekitten/LlamaKit.framework/LlamaKit +0 -0
- data/lib/jazzy/sourcekitten/LlamaKit.framework/Versions/A/LlamaKit +0 -0
- data/lib/jazzy/sourcekitten/LlamaKit.framework/Versions/A/Modules/LlamaKit.swiftmodule/x86_64.swiftdoc +0 -0
- data/lib/jazzy/sourcekitten/LlamaKit.framework/Versions/A/Modules/LlamaKit.swiftmodule/x86_64.swiftmodule +0 -0
- data/lib/jazzy/sourcekitten/LlamaKit.framework/Versions/A/Modules/module.modulemap +10 -0
- data/lib/jazzy/sourcekitten/LlamaKit.framework/Versions/A/Resources/Info.plist +47 -0
- data/lib/jazzy/sourcekitten/SourceKittenFramework.framework/SourceKittenFramework +0 -0
- data/lib/jazzy/sourcekitten/SourceKittenFramework.framework/Versions/A/Frameworks/SwiftXPC.framework/SwiftXPC +0 -0
- data/lib/jazzy/sourcekitten/SourceKittenFramework.framework/Versions/A/Frameworks/SwiftXPC.framework/Versions/A/Modules/SwiftXPC.swiftmodule/x86_64.swiftdoc +0 -0
- data/lib/jazzy/sourcekitten/SourceKittenFramework.framework/Versions/A/Frameworks/SwiftXPC.framework/Versions/A/Modules/SwiftXPC.swiftmodule/x86_64.swiftmodule +0 -0
- data/lib/jazzy/sourcekitten/SourceKittenFramework.framework/Versions/A/Frameworks/SwiftXPC.framework/Versions/A/Modules/module.modulemap +10 -0
- data/lib/jazzy/sourcekitten/SourceKittenFramework.framework/Versions/A/Frameworks/SwiftXPC.framework/Versions/A/Resources/Info.plist +42 -0
- data/lib/jazzy/sourcekitten/SourceKittenFramework.framework/Versions/A/Frameworks/SwiftXPC.framework/Versions/A/SwiftXPC +0 -0
- data/lib/jazzy/sourcekitten/SourceKittenFramework.framework/Versions/A/Frameworks/libswiftCore.dylib +0 -0
- data/lib/jazzy/sourcekitten/SourceKittenFramework.framework/Versions/A/Frameworks/libswiftCoreGraphics.dylib +0 -0
- data/lib/jazzy/sourcekitten/SourceKittenFramework.framework/Versions/A/Frameworks/libswiftDarwin.dylib +0 -0
- data/lib/jazzy/sourcekitten/SourceKittenFramework.framework/Versions/A/Frameworks/libswiftDispatch.dylib +0 -0
- data/lib/jazzy/sourcekitten/SourceKittenFramework.framework/Versions/A/Frameworks/libswiftFoundation.dylib +0 -0
- data/lib/jazzy/sourcekitten/SourceKittenFramework.framework/Versions/A/Frameworks/libswiftObjectiveC.dylib +0 -0
- data/lib/jazzy/sourcekitten/SourceKittenFramework.framework/Versions/A/Frameworks/libswiftSecurity.dylib +0 -0
- data/lib/jazzy/sourcekitten/SourceKittenFramework.framework/Versions/A/Modules/SourceKittenFramework.swiftmodule/x86_64.swiftdoc +0 -0
- data/lib/jazzy/sourcekitten/SourceKittenFramework.framework/Versions/A/Modules/SourceKittenFramework.swiftmodule/x86_64.swiftmodule +0 -0
- data/lib/jazzy/sourcekitten/SourceKittenFramework.framework/Versions/A/Modules/module.modulemap +10 -0
- data/lib/jazzy/sourcekitten/SourceKittenFramework.framework/Versions/A/Resources/Info.plist +42 -0
- data/lib/jazzy/sourcekitten/SourceKittenFramework.framework/Versions/A/SourceKittenFramework +0 -0
- data/lib/jazzy/sourcekitten/sourcekitten +0 -0
- data/spec/integration_spec.rb +6 -0
- metadata +50 -122
- data/bin/sourcekitten +0 -0
- data/spec/integration_specs/document_alamofire/after/docs/Classes.html +0 -268
- data/spec/integration_specs/document_alamofire/after/docs/Classes/Manager.html +0 -488
- data/spec/integration_specs/document_alamofire/after/docs/Classes/Request.html +0 -842
- data/spec/integration_specs/document_alamofire/after/docs/Enums.html +0 -258
- data/spec/integration_specs/document_alamofire/after/docs/Enums/ParameterEncoding.html +0 -383
- data/spec/integration_specs/document_alamofire/after/docs/Extensions.html +0 -703
- data/spec/integration_specs/document_alamofire/after/docs/Extensions/Manager.html +0 -345
- data/spec/integration_specs/document_alamofire/after/docs/Extensions/Request.html +0 -369
- data/spec/integration_specs/document_alamofire/after/docs/Functions.html +0 -1041
- data/spec/integration_specs/document_alamofire/after/docs/Global Variables.html +0 -227
- data/spec/integration_specs/document_alamofire/after/docs/Protocols.html +0 -276
- data/spec/integration_specs/document_alamofire/after/docs/Protocols/URLRequestConvertible.html +0 -228
- data/spec/integration_specs/document_alamofire/after/docs/Protocols/URLStringConvertible.html +0 -228
- data/spec/integration_specs/document_alamofire/after/docs/css/highlight.css +0 -202
- data/spec/integration_specs/document_alamofire/after/docs/css/jazzy.css +0 -708
- data/spec/integration_specs/document_alamofire/after/docs/docsets/Alamofire.docset/Contents/Info.plist +0 -20
- data/spec/integration_specs/document_alamofire/after/docs/docsets/Alamofire.docset/Contents/Resources/Documents/Classes.html +0 -268
- data/spec/integration_specs/document_alamofire/after/docs/docsets/Alamofire.docset/Contents/Resources/Documents/Classes/Manager.html +0 -488
- data/spec/integration_specs/document_alamofire/after/docs/docsets/Alamofire.docset/Contents/Resources/Documents/Classes/Request.html +0 -842
- data/spec/integration_specs/document_alamofire/after/docs/docsets/Alamofire.docset/Contents/Resources/Documents/Enums.html +0 -258
- data/spec/integration_specs/document_alamofire/after/docs/docsets/Alamofire.docset/Contents/Resources/Documents/Enums/ParameterEncoding.html +0 -383
- data/spec/integration_specs/document_alamofire/after/docs/docsets/Alamofire.docset/Contents/Resources/Documents/Extensions.html +0 -703
- data/spec/integration_specs/document_alamofire/after/docs/docsets/Alamofire.docset/Contents/Resources/Documents/Extensions/Manager.html +0 -345
- data/spec/integration_specs/document_alamofire/after/docs/docsets/Alamofire.docset/Contents/Resources/Documents/Extensions/Request.html +0 -369
- data/spec/integration_specs/document_alamofire/after/docs/docsets/Alamofire.docset/Contents/Resources/Documents/Functions.html +0 -1041
- data/spec/integration_specs/document_alamofire/after/docs/docsets/Alamofire.docset/Contents/Resources/Documents/Global Variables.html +0 -227
- data/spec/integration_specs/document_alamofire/after/docs/docsets/Alamofire.docset/Contents/Resources/Documents/Manager.html +0 -345
- data/spec/integration_specs/document_alamofire/after/docs/docsets/Alamofire.docset/Contents/Resources/Documents/ParameterEncoding.html +0 -383
- data/spec/integration_specs/document_alamofire/after/docs/docsets/Alamofire.docset/Contents/Resources/Documents/Protocols.html +0 -276
- data/spec/integration_specs/document_alamofire/after/docs/docsets/Alamofire.docset/Contents/Resources/Documents/Protocols/URLRequestConvertible.html +0 -228
- data/spec/integration_specs/document_alamofire/after/docs/docsets/Alamofire.docset/Contents/Resources/Documents/Protocols/URLStringConvertible.html +0 -228
- data/spec/integration_specs/document_alamofire/after/docs/docsets/Alamofire.docset/Contents/Resources/Documents/Request.html +0 -369
- data/spec/integration_specs/document_alamofire/after/docs/docsets/Alamofire.docset/Contents/Resources/Documents/URLRequestConvertible.html +0 -228
- data/spec/integration_specs/document_alamofire/after/docs/docsets/Alamofire.docset/Contents/Resources/Documents/URLStringConvertible.html +0 -228
- data/spec/integration_specs/document_alamofire/after/docs/docsets/Alamofire.docset/Contents/Resources/Documents/carat.png +0 -0
- data/spec/integration_specs/document_alamofire/after/docs/docsets/Alamofire.docset/Contents/Resources/Documents/css/highlight.css +0 -202
- data/spec/integration_specs/document_alamofire/after/docs/docsets/Alamofire.docset/Contents/Resources/Documents/css/jazzy.css +0 -708
- data/spec/integration_specs/document_alamofire/after/docs/docsets/Alamofire.docset/Contents/Resources/Documents/dash.png +0 -0
- data/spec/integration_specs/document_alamofire/after/docs/docsets/Alamofire.docset/Contents/Resources/Documents/gh.png +0 -0
- data/spec/integration_specs/document_alamofire/after/docs/docsets/Alamofire.docset/Contents/Resources/Documents/highlight.css +0 -202
- data/spec/integration_specs/document_alamofire/after/docs/docsets/Alamofire.docset/Contents/Resources/Documents/img/carat.png +0 -0
- data/spec/integration_specs/document_alamofire/after/docs/docsets/Alamofire.docset/Contents/Resources/Documents/img/dash.png +0 -0
- data/spec/integration_specs/document_alamofire/after/docs/docsets/Alamofire.docset/Contents/Resources/Documents/img/gh.png +0 -0
- data/spec/integration_specs/document_alamofire/after/docs/docsets/Alamofire.docset/Contents/Resources/Documents/index.html +0 -756
- data/spec/integration_specs/document_alamofire/after/docs/docsets/Alamofire.docset/Contents/Resources/Documents/jazzy.css +0 -708
- data/spec/integration_specs/document_alamofire/after/docs/docsets/Alamofire.docset/Contents/Resources/Documents/jazzy.js +0 -21
- data/spec/integration_specs/document_alamofire/after/docs/docsets/Alamofire.docset/Contents/Resources/Documents/jquery.min.js +0 -4
- data/spec/integration_specs/document_alamofire/after/docs/docsets/Alamofire.docset/Contents/Resources/Documents/js/jazzy.js +0 -21
- data/spec/integration_specs/document_alamofire/after/docs/docsets/Alamofire.docset/Contents/Resources/Documents/js/jquery.min.js +0 -4
- data/spec/integration_specs/document_alamofire/after/docs/docsets/Alamofire.docset/Contents/Resources/Documents/undocumented.txt +0 -18
- data/spec/integration_specs/document_alamofire/after/docs/docsets/Alamofire.docset/Contents/Resources/docSet.dsidx.csv +0 -80
- data/spec/integration_specs/document_alamofire/after/docs/docsets/Alamofire.xml +0 -1
- data/spec/integration_specs/document_alamofire/after/docs/img/carat.png +0 -0
- data/spec/integration_specs/document_alamofire/after/docs/img/dash.png +0 -0
- data/spec/integration_specs/document_alamofire/after/docs/img/gh.png +0 -0
- data/spec/integration_specs/document_alamofire/after/docs/index.html +0 -756
- data/spec/integration_specs/document_alamofire/after/docs/js/jazzy.js +0 -21
- data/spec/integration_specs/document_alamofire/after/docs/js/jquery.min.js +0 -4
- data/spec/integration_specs/document_alamofire/after/docs/undocumented.txt +0 -18
- data/spec/integration_specs/document_alamofire/after/execution_output.txt +0 -5
- data/spec/integration_specs/misc_jazzy_features/after/docs/Classes.html +0 -333
- data/spec/integration_specs/misc_jazzy_features/after/docs/Classes/ImplicitlyInternalTopLevelClass.html +0 -149
- data/spec/integration_specs/misc_jazzy_features/after/docs/Enums.html +0 -171
- data/spec/integration_specs/misc_jazzy_features/after/docs/Enums/DocumentedEnum.html +0 -149
- data/spec/integration_specs/misc_jazzy_features/after/docs/Global Variables.html +0 -152
- data/spec/integration_specs/misc_jazzy_features/after/docs/css/highlight.css +0 -202
- data/spec/integration_specs/misc_jazzy_features/after/docs/css/jazzy.css +0 -708
- data/spec/integration_specs/misc_jazzy_features/after/docs/docsets/MiscJazzyFeatures.docset/Contents/Info.plist +0 -20
- data/spec/integration_specs/misc_jazzy_features/after/docs/docsets/MiscJazzyFeatures.docset/Contents/Resources/Documents/Classes.html +0 -333
- data/spec/integration_specs/misc_jazzy_features/after/docs/docsets/MiscJazzyFeatures.docset/Contents/Resources/Documents/Classes/ImplicitlyInternalTopLevelClass.html +0 -149
- data/spec/integration_specs/misc_jazzy_features/after/docs/docsets/MiscJazzyFeatures.docset/Contents/Resources/Documents/DocumentedEnum.html +0 -149
- data/spec/integration_specs/misc_jazzy_features/after/docs/docsets/MiscJazzyFeatures.docset/Contents/Resources/Documents/Enums.html +0 -171
- data/spec/integration_specs/misc_jazzy_features/after/docs/docsets/MiscJazzyFeatures.docset/Contents/Resources/Documents/Enums/DocumentedEnum.html +0 -149
- data/spec/integration_specs/misc_jazzy_features/after/docs/docsets/MiscJazzyFeatures.docset/Contents/Resources/Documents/Global Variables.html +0 -152
- data/spec/integration_specs/misc_jazzy_features/after/docs/docsets/MiscJazzyFeatures.docset/Contents/Resources/Documents/ImplicitlyInternalTopLevelClass.html +0 -149
- data/spec/integration_specs/misc_jazzy_features/after/docs/docsets/MiscJazzyFeatures.docset/Contents/Resources/Documents/carat.png +0 -0
- data/spec/integration_specs/misc_jazzy_features/after/docs/docsets/MiscJazzyFeatures.docset/Contents/Resources/Documents/css/highlight.css +0 -202
- data/spec/integration_specs/misc_jazzy_features/after/docs/docsets/MiscJazzyFeatures.docset/Contents/Resources/Documents/css/jazzy.css +0 -708
- data/spec/integration_specs/misc_jazzy_features/after/docs/docsets/MiscJazzyFeatures.docset/Contents/Resources/Documents/dash.png +0 -0
- data/spec/integration_specs/misc_jazzy_features/after/docs/docsets/MiscJazzyFeatures.docset/Contents/Resources/Documents/gh.png +0 -0
- data/spec/integration_specs/misc_jazzy_features/after/docs/docsets/MiscJazzyFeatures.docset/Contents/Resources/Documents/highlight.css +0 -202
- data/spec/integration_specs/misc_jazzy_features/after/docs/docsets/MiscJazzyFeatures.docset/Contents/Resources/Documents/img/carat.png +0 -0
- data/spec/integration_specs/misc_jazzy_features/after/docs/docsets/MiscJazzyFeatures.docset/Contents/Resources/Documents/img/dash.png +0 -0
- data/spec/integration_specs/misc_jazzy_features/after/docs/docsets/MiscJazzyFeatures.docset/Contents/Resources/Documents/img/gh.png +0 -0
- data/spec/integration_specs/misc_jazzy_features/after/docs/docsets/MiscJazzyFeatures.docset/Contents/Resources/Documents/index.html +0 -112
- data/spec/integration_specs/misc_jazzy_features/after/docs/docsets/MiscJazzyFeatures.docset/Contents/Resources/Documents/jazzy.css +0 -708
- data/spec/integration_specs/misc_jazzy_features/after/docs/docsets/MiscJazzyFeatures.docset/Contents/Resources/Documents/jazzy.js +0 -21
- data/spec/integration_specs/misc_jazzy_features/after/docs/docsets/MiscJazzyFeatures.docset/Contents/Resources/Documents/jquery.min.js +0 -4
- data/spec/integration_specs/misc_jazzy_features/after/docs/docsets/MiscJazzyFeatures.docset/Contents/Resources/Documents/js/jazzy.js +0 -21
- data/spec/integration_specs/misc_jazzy_features/after/docs/docsets/MiscJazzyFeatures.docset/Contents/Resources/Documents/js/jquery.min.js +0 -4
- data/spec/integration_specs/misc_jazzy_features/after/docs/docsets/MiscJazzyFeatures.docset/Contents/Resources/Documents/undocumented.txt +0 -3
- data/spec/integration_specs/misc_jazzy_features/after/docs/docsets/MiscJazzyFeatures.docset/Contents/Resources/docSet.dsidx.csv +0 -17
- data/spec/integration_specs/misc_jazzy_features/after/docs/img/carat.png +0 -0
- data/spec/integration_specs/misc_jazzy_features/after/docs/img/dash.png +0 -0
- data/spec/integration_specs/misc_jazzy_features/after/docs/img/gh.png +0 -0
- data/spec/integration_specs/misc_jazzy_features/after/docs/index.html +0 -112
- data/spec/integration_specs/misc_jazzy_features/after/docs/js/jazzy.js +0 -21
- data/spec/integration_specs/misc_jazzy_features/after/docs/js/jquery.min.js +0 -4
- data/spec/integration_specs/misc_jazzy_features/after/docs/undocumented.txt +0 -3
- data/spec/integration_specs/misc_jazzy_features/after/execution_output.txt +0 -5
- data/spec/integration_specs/misc_jazzy_features/before/MiscJazzyFeatures.xcodeproj/project.pbxproj +0 -293
- data/spec/integration_specs/misc_jazzy_features/before/MiscJazzyFeatures.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
- data/spec/integration_specs/misc_jazzy_features/before/MiscJazzyFeatures/Classes.swift +0 -60
- data/spec/integration_specs/misc_jazzy_features/before/MiscJazzyFeatures/MiscJazzyFeatures.h +0 -10
- data/spec/integration_specs/misc_jazzy_features/before/docs/Classes.html +0 -317
- data/spec/integration_specs/misc_jazzy_features/before/docs/Classes/ImplicitlyInternalTopLevelClass.html +0 -138
- data/spec/integration_specs/misc_jazzy_features/before/docs/Enums.html +0 -155
- data/spec/integration_specs/misc_jazzy_features/before/docs/Enums/DocumentedEnum.html +0 -128
- data/spec/integration_specs/misc_jazzy_features/before/docs/Global Variables.html +0 -138
- data/spec/integration_specs/misc_jazzy_features/before/docs/css/jazzy.css +0 -609
- data/spec/integration_specs/misc_jazzy_features/before/docs/img/carat.png +0 -0
- data/spec/integration_specs/misc_jazzy_features/before/docs/img/dash.png +0 -0
- data/spec/integration_specs/misc_jazzy_features/before/docs/img/gh.png +0 -0
- data/spec/integration_specs/misc_jazzy_features/before/docs/index.html +0 -99
- data/spec/integration_specs/misc_jazzy_features/before/docs/js/jazzy.js +0 -15
- data/spec/integration_specs/misc_jazzy_features/before/docs/js/jquery.min.js +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aff10a9b6fa27c5461c95ad82b50a0b736add8c3
|
4
|
+
data.tar.gz: 981592f5afab02d494657f83c4ec9c5cd4f02a1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7fb5b838e6b0349e287d84af77199e6fd6d71b9c4f6b82ef586568749f18ff66c5366e7a071e8d50e140c354ab2780f66a04669fd129d6212010dfaa0d66141
|
7
|
+
data.tar.gz: 3f056e527f8abcbab57800ca4c3bace1c0f402bc5d615cc4f3a9f9998b225bb8befc8fded0b2ea4970aab062779459525def18d0b19593f756e86db9335ec56d
|
data/.gitmodules
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
-
[submodule "
|
2
|
-
path =
|
3
|
-
url = https://github.com/
|
1
|
+
[submodule "SourceKitten"]
|
2
|
+
path = SourceKitten
|
3
|
+
url = https://github.com/jpsim/SourceKitten.git
|
4
|
+
[submodule "spec/integration_specs"]
|
5
|
+
path = spec/integration_specs
|
6
|
+
url = https://github.com/Realm/jazzy-integration-specs.git
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
## Master
|
2
2
|
|
3
|
-
[sourcekitten](https://github.com/jpsim/sourcekitten/compare/0.2.7...
|
3
|
+
[sourcekitten](https://github.com/jpsim/sourcekitten/compare/0.2.7...0.3.1)
|
4
4
|
|
5
5
|
##### Breaking
|
6
6
|
|
@@ -14,6 +14,28 @@
|
|
14
14
|
|
15
15
|
* None.
|
16
16
|
|
17
|
+
## 0.1.0
|
18
|
+
|
19
|
+
[sourcekitten](https://github.com/jpsim/sourcekitten/compare/0.2.7...0.3.1)
|
20
|
+
|
21
|
+
##### Breaking
|
22
|
+
|
23
|
+
* None.
|
24
|
+
|
25
|
+
##### Enhancements
|
26
|
+
|
27
|
+
* Add the ability to document a Pod from just a podspec, which allows jazzy to
|
28
|
+
run on cocoadocs.org.
|
29
|
+
[Samuel Giddins](https://github.com/segiddins)
|
30
|
+
[#58](https://github.com/realm/jazzy/issues/58)
|
31
|
+
|
32
|
+
##### Bug Fixes
|
33
|
+
|
34
|
+
* De-duplicate the sidebar list of extensions and show all children for an
|
35
|
+
extension, regardless of how many extensions on a type there are.
|
36
|
+
[Samuel Giddins](https://github.com/segiddins)
|
37
|
+
|
38
|
+
|
17
39
|
## 0.0.20
|
18
40
|
|
19
41
|
[sourcekitten](https://github.com/jpsim/sourcekitten/compare/0.2.6...0.2.7)
|
data/Gemfile.lock
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
jazzy (0.0
|
4
|
+
jazzy (0.1.0)
|
5
5
|
activesupport (~> 4.1)
|
6
|
+
cocoapods (~> 0.36.0.beta.2)
|
6
7
|
mustache (~> 0.99)
|
7
8
|
nokogiri (~> 1.6)
|
8
9
|
redcarpet (~> 3.2)
|
@@ -24,25 +25,57 @@ GEM
|
|
24
25
|
astrolabe (1.3.0)
|
25
26
|
parser (>= 2.2.0.pre.3, < 3.0)
|
26
27
|
bacon (1.2.0)
|
28
|
+
claide (0.8.0)
|
27
29
|
clintegracon (0.5.3)
|
28
30
|
colored (~> 1.2)
|
29
31
|
diffy
|
32
|
+
cocoapods (0.36.0.beta.2)
|
33
|
+
activesupport (>= 3.2.15)
|
34
|
+
claide (~> 0.8.0)
|
35
|
+
cocoapods-core (= 0.36.0.beta.2)
|
36
|
+
cocoapods-downloader (~> 0.8.1)
|
37
|
+
cocoapods-plugins (~> 0.4.0)
|
38
|
+
cocoapods-trunk (~> 0.5.0)
|
39
|
+
cocoapods-try (~> 0.4.3)
|
40
|
+
colored (~> 1.2)
|
41
|
+
escape (~> 0.0.4)
|
42
|
+
molinillo (~> 0.2.0)
|
43
|
+
nap (~> 0.8)
|
44
|
+
open4 (~> 1.3)
|
45
|
+
xcodeproj (~> 0.21.2)
|
46
|
+
cocoapods-core (0.36.0.beta.2)
|
47
|
+
activesupport (>= 3.2.15)
|
48
|
+
fuzzy_match (~> 2.0.4)
|
49
|
+
nap (~> 0.8.0)
|
50
|
+
cocoapods-downloader (0.8.1)
|
51
|
+
cocoapods-plugins (0.4.0)
|
52
|
+
nap
|
53
|
+
cocoapods-trunk (0.5.0)
|
54
|
+
nap (>= 0.8)
|
55
|
+
netrc (= 0.7.8)
|
56
|
+
cocoapods-try (0.4.3)
|
30
57
|
colored (1.2)
|
31
58
|
crack (0.4.2)
|
32
59
|
safe_yaml (~> 1.0.0)
|
33
60
|
diffy (3.0.7)
|
61
|
+
escape (0.0.4)
|
62
|
+
fuzzy_match (2.0.4)
|
34
63
|
i18n (0.7.0)
|
35
|
-
json (1.8.
|
64
|
+
json (1.8.2)
|
36
65
|
metaclass (0.0.4)
|
37
66
|
mini_portile (0.6.2)
|
38
|
-
minitest (5.5.
|
67
|
+
minitest (5.5.1)
|
39
68
|
mocha (1.1.0)
|
40
69
|
metaclass (~> 0.0.1)
|
41
70
|
mocha-on-bacon (0.2.2)
|
42
71
|
mocha (>= 0.13.0)
|
72
|
+
molinillo (0.2.0)
|
43
73
|
mustache (0.99.8)
|
44
|
-
|
74
|
+
nap (0.8.0)
|
75
|
+
netrc (0.7.8)
|
76
|
+
nokogiri (1.6.6.2)
|
45
77
|
mini_portile (~> 0.6.0)
|
78
|
+
open4 (1.3.4)
|
46
79
|
parser (2.2.0.pre.5)
|
47
80
|
ast (>= 1.1, < 3.0)
|
48
81
|
slop (~> 3.4, >= 3.4.5)
|
@@ -61,7 +94,7 @@ GEM
|
|
61
94
|
ruby-progressbar (~> 1.4)
|
62
95
|
ruby-progressbar (1.6.0)
|
63
96
|
safe_yaml (1.0.4)
|
64
|
-
sass (3.4.
|
97
|
+
sass (3.4.10)
|
65
98
|
slop (3.6.0)
|
66
99
|
sqlite3 (1.3.10)
|
67
100
|
thread_safe (0.3.4)
|
@@ -70,6 +103,9 @@ GEM
|
|
70
103
|
webmock (1.20.0)
|
71
104
|
addressable (>= 2.3.6)
|
72
105
|
crack (>= 0.3.2)
|
106
|
+
xcodeproj (0.21.2)
|
107
|
+
activesupport (>= 3)
|
108
|
+
colored (~> 1.2)
|
73
109
|
|
74
110
|
PLATFORMS
|
75
111
|
ruby
|
data/Rakefile
CHANGED
@@ -5,6 +5,9 @@ task :bootstrap do
|
|
5
5
|
if system('which bundle')
|
6
6
|
title 'Installing gems'
|
7
7
|
sh 'bundle install'
|
8
|
+
|
9
|
+
title 'Updating submodules'
|
10
|
+
sh 'git submodule update --init --recursive'
|
8
11
|
else
|
9
12
|
$stderr.puts "\033[0;31m" \
|
10
13
|
"[!] Please install the bundler gem manually:\n" \
|
@@ -16,6 +19,7 @@ end
|
|
16
19
|
|
17
20
|
begin
|
18
21
|
require 'bundler/gem_tasks'
|
22
|
+
require 'fileutils'
|
19
23
|
|
20
24
|
task default: :spec
|
21
25
|
|
@@ -69,6 +73,23 @@ begin
|
|
69
73
|
task.patterns = %w(lib spec Rakefile Gemfile jazzy.gemspec)
|
70
74
|
end
|
71
75
|
|
76
|
+
#-- SourceKitten -----------------------------------------------------------#
|
77
|
+
|
78
|
+
desc 'Vendors SourceKitten'
|
79
|
+
task :sourcekitten do
|
80
|
+
Dir.chdir('SourceKitten') do
|
81
|
+
`make installables`
|
82
|
+
end
|
83
|
+
|
84
|
+
destination = 'lib/jazzy/sourcekitten'
|
85
|
+
frameworks = Dir.glob('/tmp/SourceKitten.dst/Library/Frameworks/*')
|
86
|
+
binary = '/tmp/SourceKitten.dst/usr/local/bin/sourcekitten'
|
87
|
+
FileUtils.rm_rf destination
|
88
|
+
FileUtils.mkdir_p destination
|
89
|
+
FileUtils.cp_r frameworks, destination
|
90
|
+
FileUtils.cp binary, destination
|
91
|
+
end
|
92
|
+
|
72
93
|
rescue LoadError, NameError
|
73
94
|
$stderr.puts "\033[0;31m" \
|
74
95
|
'[!] Some Rake tasks haven been disabled because the environment' \
|
data/jazzy.gemspec
CHANGED
@@ -24,6 +24,7 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.add_runtime_dependency 'sass', '~> 3.4'
|
25
25
|
spec.add_runtime_dependency 'rouge', '~> 1.5'
|
26
26
|
spec.add_runtime_dependency 'sqlite3', '~> 1.3'
|
27
|
+
spec.add_runtime_dependency 'cocoapods', '~> 0.36.0.beta.2'
|
27
28
|
|
28
29
|
spec.add_development_dependency 'bundler', '~> 1.7'
|
29
30
|
spec.add_development_dependency 'rake', '~> 10.3'
|
@@ -857,6 +857,12 @@ td {
|
|
857
857
|
}
|
858
858
|
|
859
859
|
html.dash {
|
860
|
+
body {
|
861
|
+
font-size: 65%;
|
862
|
+
}
|
863
|
+
a.Swift {
|
864
|
+
font-size: 110%;
|
865
|
+
}
|
860
866
|
.book-parts {
|
861
867
|
display: none;
|
862
868
|
width: 0;
|
@@ -873,4 +879,24 @@ html.dash {
|
|
873
879
|
margin-left: 0;
|
874
880
|
}
|
875
881
|
}
|
882
|
+
header, section#valence, .pixel-line, .rubber-band-gap {
|
883
|
+
display: none;
|
884
|
+
}
|
885
|
+
.content-wrapper {
|
886
|
+
width: auto;
|
887
|
+
}
|
888
|
+
.chapter {
|
889
|
+
border: none;
|
890
|
+
width: auto;
|
891
|
+
position: static;
|
892
|
+
padding-bottom: 50px;
|
893
|
+
box-shadow: none;
|
894
|
+
}
|
895
|
+
#reference .chapter {
|
896
|
+
border: none;
|
897
|
+
box-shadow: none;
|
898
|
+
}
|
899
|
+
#footer {
|
900
|
+
position: static;
|
901
|
+
}
|
876
902
|
}
|
data/lib/jazzy/config.rb
CHANGED
@@ -2,6 +2,7 @@ require 'optparse'
|
|
2
2
|
require 'pathname'
|
3
3
|
require 'uri'
|
4
4
|
|
5
|
+
require 'jazzy/podspec_documenter'
|
5
6
|
require 'jazzy/source_declaration/access_control_level'
|
6
7
|
|
7
8
|
module Jazzy
|
@@ -23,8 +24,13 @@ module Jazzy
|
|
23
24
|
attr_accessor :version
|
24
25
|
attr_accessor :min_acl
|
25
26
|
attr_accessor :skip_undocumented
|
27
|
+
attr_accessor :podspec
|
28
|
+
attr_accessor :docset_icon
|
29
|
+
attr_accessor :docset_path
|
30
|
+
attr_accessor :source_directory
|
26
31
|
|
27
32
|
def initialize
|
33
|
+
PodspecDocumenter.configure(self, Dir['*.podspec{.json,}'].first)
|
28
34
|
self.output = Pathname('docs')
|
29
35
|
self.xcodebuild_arguments = []
|
30
36
|
self.author_name = ''
|
@@ -35,6 +41,11 @@ module Jazzy
|
|
35
41
|
self.version = '1.0'
|
36
42
|
self.min_acl = SourceDeclaration::AccessControlLevel.internal
|
37
43
|
self.skip_undocumented = false
|
44
|
+
self.source_directory = Pathname.pwd
|
45
|
+
end
|
46
|
+
|
47
|
+
def podspec=(podspec)
|
48
|
+
@podspec = PodspecDocumenter.configure(self, podspec)
|
38
49
|
end
|
39
50
|
|
40
51
|
# rubocop:disable Metrics/MethodLength
|
@@ -130,6 +141,24 @@ module Jazzy
|
|
130
141
|
config.skip_undocumented = skip_undocumented
|
131
142
|
end
|
132
143
|
|
144
|
+
opt.on('--podspec FILEPATH') do |podspec|
|
145
|
+
config.podspec = Pathname(podspec)
|
146
|
+
end
|
147
|
+
|
148
|
+
opt.on('--docset-icon FILEPATH') do |docset_icon|
|
149
|
+
config.docset_icon = Pathname(docset_icon)
|
150
|
+
end
|
151
|
+
|
152
|
+
opt.on('--docset-path DIRPATH', 'The relative path for the generated ' \
|
153
|
+
'docset') do |docset_path|
|
154
|
+
config.docset_path = docset_path
|
155
|
+
end
|
156
|
+
|
157
|
+
opt.on('--source-directory DIRPATH', 'The directory that contains ' \
|
158
|
+
'the source to be documented') do |source_directory|
|
159
|
+
config.source_directory = Pathname(source_directory)
|
160
|
+
end
|
161
|
+
|
133
162
|
opt.on('-v', '--version', 'Print version number') do
|
134
163
|
puts 'jazzy version: ' + Jazzy::VERSION
|
135
164
|
exit
|
data/lib/jazzy/doc_builder.rb
CHANGED
@@ -8,6 +8,7 @@ require 'jazzy/config'
|
|
8
8
|
require 'jazzy/doc'
|
9
9
|
require 'jazzy/docset_builder'
|
10
10
|
require 'jazzy/jazzy_markdown'
|
11
|
+
require 'jazzy/podspec_documenter'
|
11
12
|
require 'jazzy/readme_generator'
|
12
13
|
require 'jazzy/source_declaration'
|
13
14
|
require 'jazzy/source_module'
|
@@ -43,23 +44,27 @@ module Jazzy
|
|
43
44
|
|
44
45
|
# Build documentation from the given options
|
45
46
|
# @param [Config] options
|
47
|
+
# @return [SourceModule] the documented source module
|
46
48
|
def self.build(options)
|
47
49
|
if options.sourcekitten_sourcefile
|
48
|
-
|
49
|
-
build_docs_for_sourcekitten_output(file_contents, options)
|
50
|
+
stdout = options.sourcekitten_sourcefile.read
|
50
51
|
else
|
51
|
-
|
52
|
-
|
53
|
-
if exitstatus == 0
|
54
|
-
warn 'building site'
|
55
|
-
build_docs_for_sourcekitten_output(stdout, options)
|
52
|
+
if podspec = options.podspec
|
53
|
+
stdout = PodspecDocumenter.new(podspec).sourcekitten_output
|
56
54
|
else
|
55
|
+
stdout = SourceKitten.run_sourcekitten(
|
56
|
+
['doc'] + options.xcodebuild_arguments,
|
57
|
+
)
|
58
|
+
end
|
59
|
+
unless $?.success?
|
57
60
|
warn 'Please pass in xcodebuild arguments using -x'
|
58
61
|
warn 'If build arguments are correct, please file an issue on ' \
|
59
|
-
|
60
|
-
exit exitstatus || 1
|
62
|
+
'https://github.com/realm/jazzy/issues'
|
63
|
+
exit $?.exitstatus || 1
|
61
64
|
end
|
62
65
|
end
|
66
|
+
warn 'building site'
|
67
|
+
build_docs_for_sourcekitten_output(stdout, options)
|
63
68
|
end
|
64
69
|
|
65
70
|
# Build & write HTML docs to disk from structured docs array
|
@@ -95,6 +100,7 @@ module Jazzy
|
|
95
100
|
# Build docs given sourcekitten output
|
96
101
|
# @param [String] sourcekitten_output Output of sourcekitten command
|
97
102
|
# @param [Config] options Build options
|
103
|
+
# @return [SourceModule] the documented source module
|
98
104
|
def self.build_docs_for_sourcekitten_output(sourcekitten_output, options)
|
99
105
|
output_dir = options.output
|
100
106
|
prepare_output_dir(output_dir, options.clean)
|
@@ -122,6 +128,8 @@ module Jazzy
|
|
122
128
|
DocsetBuilder.new(output_dir, source_module).build!
|
123
129
|
|
124
130
|
puts "jam out ♪♫ to your fresh new docs in `#{output_dir}`"
|
131
|
+
|
132
|
+
source_module
|
125
133
|
end
|
126
134
|
|
127
135
|
def self.decl_for_token(token)
|
data/lib/jazzy/docset_builder.rb
CHANGED
@@ -8,20 +8,24 @@ module Jazzy
|
|
8
8
|
include Config::Mixin
|
9
9
|
|
10
10
|
attr_reader :output_dir
|
11
|
+
attr_reader :generated_docs_dir
|
11
12
|
attr_reader :source_module
|
12
13
|
attr_reader :docset_dir
|
13
14
|
attr_reader :documents_dir
|
14
15
|
|
15
|
-
def initialize(
|
16
|
-
@output_dir = output_dir + 'docsets'
|
16
|
+
def initialize(generated_docs_dir, source_module)
|
17
17
|
@source_module = source_module
|
18
|
-
@docset_dir =
|
18
|
+
@docset_dir = generated_docs_dir +
|
19
|
+
(config.docset_path || "docsets/#{source_module.name}.docset")
|
20
|
+
@generated_docs_dir = generated_docs_dir
|
21
|
+
@output_dir = docset_dir.parent
|
19
22
|
@documents_dir = docset_dir + 'Contents/Resources/Documents/'
|
20
23
|
end
|
21
24
|
|
22
25
|
def build!
|
23
26
|
docset_dir.rmtree if docset_dir.exist?
|
24
27
|
copy_docs
|
28
|
+
copy_icon if config.docset_icon
|
25
29
|
write_plist
|
26
30
|
create_index
|
27
31
|
create_archive
|
@@ -54,12 +58,17 @@ module Jazzy
|
|
54
58
|
end
|
55
59
|
|
56
60
|
def copy_docs
|
57
|
-
files_to_copy =
|
61
|
+
files_to_copy = Pathname.glob(generated_docs_dir + '**/*') -
|
62
|
+
[docset_dir, output_dir]
|
58
63
|
|
59
64
|
FileUtils.mkdir_p documents_dir
|
60
65
|
FileUtils.cp_r files_to_copy, documents_dir
|
61
66
|
end
|
62
67
|
|
68
|
+
def copy_icon
|
69
|
+
FileUtils.cp config.docset_icon, @docset_dir + 'icon.png'
|
70
|
+
end
|
71
|
+
|
63
72
|
def create_index
|
64
73
|
search_index_path = docset_dir + 'Contents/Resources/docSet.dsidx'
|
65
74
|
SQLite3::Database.new(search_index_path.to_s) do |db|
|
data/lib/jazzy/gem_version.rb
CHANGED
data/lib/jazzy/jazzy_markdown.rb
CHANGED
@@ -0,0 +1,109 @@
|
|
1
|
+
require 'tmpdir'
|
2
|
+
require 'json'
|
3
|
+
|
4
|
+
module Jazzy
|
5
|
+
class PodspecDocumenter
|
6
|
+
attr_reader :podspec
|
7
|
+
|
8
|
+
def initialize(podspec)
|
9
|
+
@podspec = podspec
|
10
|
+
end
|
11
|
+
|
12
|
+
def sourcekitten_output
|
13
|
+
sandbox = Pod::Sandbox.new(pod_config.sandbox_root)
|
14
|
+
installer = Pod::Installer.new(sandbox, podfile)
|
15
|
+
installer.install!
|
16
|
+
stdout = Dir.chdir(sandbox.root) do
|
17
|
+
pod_targets.map do |t|
|
18
|
+
SourceKitten.run_sourcekitten(
|
19
|
+
%W(doc --module-name #{podspec.module_name} -target #{t}),
|
20
|
+
)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
stdout.reduce([]) { |a, s| a + JSON.load(s) }.to_json
|
24
|
+
end
|
25
|
+
|
26
|
+
def self.configure(config, podspec)
|
27
|
+
case podspec
|
28
|
+
when Pathname, String
|
29
|
+
require 'cocoapods'
|
30
|
+
podspec = Pod::Specification.from_file(podspec)
|
31
|
+
end
|
32
|
+
|
33
|
+
return unless podspec
|
34
|
+
|
35
|
+
config.author_name = author_name(podspec)
|
36
|
+
config.module_name = podspec.module_name
|
37
|
+
config.author_url = podspec.homepage || github_file_prefix(podspec)
|
38
|
+
config.version = podspec.version.to_s
|
39
|
+
config.github_file_prefix = github_file_prefix(podspec)
|
40
|
+
|
41
|
+
podspec
|
42
|
+
end
|
43
|
+
|
44
|
+
private
|
45
|
+
|
46
|
+
# @!group Config helper methods
|
47
|
+
|
48
|
+
def self.author_name(podspec)
|
49
|
+
if podspec.authors.respond_to? :to_hash
|
50
|
+
podspec.authors.keys.to_sentence || ''
|
51
|
+
else
|
52
|
+
if podspec.authors.respond_to? :to_ary
|
53
|
+
podspec.authors.to_sentence
|
54
|
+
else
|
55
|
+
podspec.authors
|
56
|
+
end
|
57
|
+
end || ''
|
58
|
+
end
|
59
|
+
|
60
|
+
def self.github_file_prefix(podspec)
|
61
|
+
return unless podspec.source[:url] =~ %r{github.com[:/]+(.+)/(.+)}
|
62
|
+
org, repo = Regexp.last_match
|
63
|
+
return unless org && repo
|
64
|
+
repo.sub!(/\.git$/, '')
|
65
|
+
return unless rev = podspec.source[:tag] || podspec.source[:commit]
|
66
|
+
"https://github.com/#{org}/#{repo}/blob/#{rev}"
|
67
|
+
end
|
68
|
+
|
69
|
+
# @!group SourceKitten output helper methods
|
70
|
+
|
71
|
+
attr_reader :pod_targets
|
72
|
+
|
73
|
+
def pod_config
|
74
|
+
Pod::Config.instance.tap do |c|
|
75
|
+
c.installation_root = Pathname(Dir.mktmpdir)
|
76
|
+
c.installation_root.rmtree if c.installation_root.exist?
|
77
|
+
c.integrate_targets = false
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
def pod_path
|
82
|
+
if podspec.defined_in_file
|
83
|
+
podspec.defined_in_file.parent
|
84
|
+
else
|
85
|
+
config.source_directory
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
def podfile
|
90
|
+
podspec = @podspec
|
91
|
+
path = pod_path
|
92
|
+
targets = (@pod_targets ||= [])
|
93
|
+
@podfile ||= Pod::Podfile.new do
|
94
|
+
platform :ios, '8.0'
|
95
|
+
[podspec, *podspec.recursive_subspecs].each do |ss|
|
96
|
+
ss.available_platforms.each do |p|
|
97
|
+
t = "Jazzy-#{ss.name.gsub(/\//, '__')}-#{p.name}"
|
98
|
+
targets << "Pods-#{t}-#{ss.root.name}"
|
99
|
+
target(t) do
|
100
|
+
use_frameworks!
|
101
|
+
platform p.name, p.deployment_target
|
102
|
+
pod ss.name, path: path.realpath.to_s
|
103
|
+
end
|
104
|
+
end
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
108
|
+
end
|
109
|
+
end
|