jazzy 0.13.1 → 0.13.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +3 -3
- data/CHANGELOG.md +41 -1
- data/CONTRIBUTING.md +1 -1
- data/Gemfile.lock +28 -20
- data/README.md +23 -0
- data/bin/sourcekitten +0 -0
- data/images/math.png +0 -0
- data/jazzy.gemspec +1 -1
- data/lib/jazzy/config.rb +5 -0
- data/lib/jazzy/doc.rb +4 -0
- data/lib/jazzy/doc_builder.rb +11 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_AMS-Regular.ttf +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_AMS-Regular.woff +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_AMS-Regular.woff2 +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_Caligraphic-Bold.ttf +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_Caligraphic-Bold.woff +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_Caligraphic-Regular.ttf +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_Caligraphic-Regular.woff +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_Fraktur-Bold.ttf +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_Fraktur-Bold.woff +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_Fraktur-Regular.ttf +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_Fraktur-Regular.woff +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_Main-Bold.ttf +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_Main-Bold.woff +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_Main-Bold.woff2 +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_Main-BoldItalic.ttf +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_Main-BoldItalic.woff +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_Main-Italic.ttf +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_Main-Italic.woff +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_Main-Italic.woff2 +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_Main-Regular.ttf +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_Main-Regular.woff +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_Main-Regular.woff2 +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_Math-BoldItalic.ttf +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_Math-BoldItalic.woff +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_Math-Italic.ttf +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_Math-Italic.woff +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_Math-Italic.woff2 +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_SansSerif-Bold.ttf +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_SansSerif-Bold.woff +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_SansSerif-Italic.ttf +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_SansSerif-Italic.woff +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_SansSerif-Regular.ttf +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_SansSerif-Regular.woff +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_Script-Regular.ttf +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_Script-Regular.woff +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_Script-Regular.woff2 +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_Size1-Regular.ttf +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_Size1-Regular.woff +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_Size1-Regular.woff2 +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_Size2-Regular.ttf +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_Size2-Regular.woff +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_Size2-Regular.woff2 +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_Size3-Regular.ttf +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_Size3-Regular.woff +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_Size3-Regular.woff2 +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_Size4-Regular.ttf +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_Size4-Regular.woff +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_Size4-Regular.woff2 +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_Typewriter-Regular.ttf +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_Typewriter-Regular.woff +0 -0
- data/lib/jazzy/extensions/katex/css/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
- data/lib/jazzy/extensions/katex/css/katex.min.css +1 -0
- data/lib/jazzy/extensions/katex/js/katex.min.js +1 -0
- data/lib/jazzy/gem_version.rb +1 -1
- data/lib/jazzy/jazzy_markdown.rb +17 -0
- data/lib/jazzy/source_declaration/access_control_level.rb +1 -1
- data/lib/jazzy/source_declaration/type.rb +4 -0
- data/lib/jazzy/sourcekitten.rb +44 -17
- data/lib/jazzy/themes/apple/assets/css/jazzy.css.scss +4 -2
- data/lib/jazzy/themes/apple/assets/js/jazzy.js +12 -1
- data/lib/jazzy/themes/apple/templates/doc.mustache +6 -0
- data/lib/jazzy/themes/apple/templates/task.mustache +2 -2
- data/lib/jazzy/themes/fullwidth/assets/css/jazzy.css.scss +3 -1
- data/lib/jazzy/themes/fullwidth/assets/js/jazzy.js +12 -1
- data/lib/jazzy/themes/fullwidth/templates/doc.mustache +6 -0
- data/lib/jazzy/themes/fullwidth/templates/task.mustache +2 -2
- data/lib/jazzy/themes/jony/assets/css/jazzy.css.scss +4 -2
- data/lib/jazzy/themes/jony/assets/js/jazzy.js +12 -1
- data/lib/jazzy/themes/jony/templates/doc.mustache +6 -0
- data/lib/jazzy/themes/jony/templates/task.mustache +2 -2
- metadata +69 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2b86b6a980392f1c5e55ebdc6a3d5be34f470c88ed12733ef10d1b10ee09078
|
4
|
+
data.tar.gz: 1e6e4a7d19a8eaee854a859b0ec603d239ea3ed8fb4fbd278e3c6b58673c105e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f9d68395fc4485cfbda0eb968170eeb5b624f7b5c1132e50f636cb9b74e9b6435caf69f5d66d2f1bd68220b8e0cba3dd5d526bea8d672849421ffde75627cb5
|
7
|
+
data.tar.gz: a288fbb15a612580d0f6f1e95325f5899cc90d76bf04c05a4e4153c6df82044c281113a14a60179d2105ba92cfeea80fecd5b27fcbeba19eb053f91db3cefbc2
|
data/.circleci/config.yml
CHANGED
@@ -17,7 +17,7 @@ jobs:
|
|
17
17
|
|
18
18
|
swift:
|
19
19
|
macos:
|
20
|
-
xcode: "11.
|
20
|
+
xcode: "11.4.0"
|
21
21
|
environment: *bundler-environment
|
22
22
|
steps:
|
23
23
|
- checkout
|
@@ -29,7 +29,7 @@ jobs:
|
|
29
29
|
|
30
30
|
objc:
|
31
31
|
macos:
|
32
|
-
xcode: "11.
|
32
|
+
xcode: "11.4.0"
|
33
33
|
environment: *bundler-environment
|
34
34
|
steps:
|
35
35
|
- checkout
|
@@ -41,7 +41,7 @@ jobs:
|
|
41
41
|
|
42
42
|
cocoapods:
|
43
43
|
macos:
|
44
|
-
xcode: "11.
|
44
|
+
xcode: "11.4.0"
|
45
45
|
environment: *bundler-environment
|
46
46
|
steps:
|
47
47
|
- checkout
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,44 @@
|
|
1
|
-
##
|
1
|
+
## 0.13.2
|
2
|
+
|
3
|
+
##### Breaking
|
4
|
+
|
5
|
+
* None.
|
6
|
+
|
7
|
+
##### Enhancements
|
8
|
+
|
9
|
+
* Support Xcode 11.4. Default Objective-C property attributes are now
|
10
|
+
stripped from declarations: turn this off with
|
11
|
+
`--keep-default-property-attributes`.
|
12
|
+
[John Fairhurst](https://github.com/johnfairh)
|
13
|
+
[#829](https://github.com/realm/jazzy/issues/829)
|
14
|
+
|
15
|
+
* Render LaTeX expressions written using `$equation$` or `$$equation$$`
|
16
|
+
syntax.
|
17
|
+
[Arthur Guiot](https://github.com/arguiot)
|
18
|
+
[John Fairhurst](https://github.com/johnfairh)
|
19
|
+
[#1156](https://github.com/realm/jazzy/issues/1156)
|
20
|
+
|
21
|
+
* Wrap long method names on category pages. Use `name_html` in custom
|
22
|
+
mustache templates to take advantage of this.
|
23
|
+
[John Fairhurst](https://github.com/johnfairh)
|
24
|
+
[#995](https://github.com/realm/jazzy/issues/995)
|
25
|
+
|
26
|
+
* Support Dash-style `apple_ref` links to specific API items, for more
|
27
|
+
stable and human-readable links from external docs.
|
28
|
+
[Paul Cantrell](https://github.com/pcantrell)
|
29
|
+
|
30
|
+
##### Bug Fixes
|
31
|
+
|
32
|
+
* Don't generate documentation if the `xcodebuild` command fails.
|
33
|
+
[John Fairhurst](https://github.com/johnfairh)
|
34
|
+
[jpsim/SourceKitten#643](https://github.com/jpsim/SourceKitten/issues/643)
|
35
|
+
|
36
|
+
* Use multi-line parsed declarations in more places including protocol
|
37
|
+
methods and typealiases.
|
38
|
+
[John Fairhurst](https://github.com/johnfairh)
|
39
|
+
[#896](https://github.com/realm/jazzy/issues/896)
|
40
|
+
|
41
|
+
## 0.13.1
|
2
42
|
|
3
43
|
##### Breaking
|
4
44
|
|
data/CONTRIBUTING.md
CHANGED
@@ -49,7 +49,7 @@ git push
|
|
49
49
|
You'll need push access to the integration specs repo to do this. You can
|
50
50
|
request access from one of the maintainers when filing your PR.
|
51
51
|
|
52
|
-
You must have Xcode 11.
|
52
|
+
You must have Xcode 11.4 installed to build the integration specs.
|
53
53
|
|
54
54
|
## Making changes to SourceKitten
|
55
55
|
|
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.2)
|
5
5
|
cocoapods (~> 1.5)
|
6
6
|
mustache (~> 1.1)
|
7
7
|
open4
|
@@ -36,10 +36,10 @@ GEM
|
|
36
36
|
clintegracon (0.7.0)
|
37
37
|
colored (~> 1.2)
|
38
38
|
diffy
|
39
|
-
cocoapods (1.
|
39
|
+
cocoapods (1.9.1)
|
40
40
|
activesupport (>= 4.0.2, < 5)
|
41
41
|
claide (>= 1.0.2, < 2.0)
|
42
|
-
cocoapods-core (= 1.
|
42
|
+
cocoapods-core (= 1.9.1)
|
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)
|
@@ -54,13 +54,15 @@ GEM
|
|
54
54
|
molinillo (~> 0.6.6)
|
55
55
|
nap (~> 1.0)
|
56
56
|
ruby-macho (~> 1.4)
|
57
|
-
xcodeproj (>= 1.
|
58
|
-
cocoapods-core (1.
|
57
|
+
xcodeproj (>= 1.14.0, < 2.0)
|
58
|
+
cocoapods-core (1.9.1)
|
59
59
|
activesupport (>= 4.0.2, < 6)
|
60
60
|
algoliasearch (~> 1.0)
|
61
61
|
concurrent-ruby (~> 1.1)
|
62
62
|
fuzzy_match (~> 2.0.4)
|
63
63
|
nap (~> 1.0)
|
64
|
+
netrc (~> 0.11)
|
65
|
+
typhoeus (~> 1.0)
|
64
66
|
cocoapods-deintegrate (1.0.4)
|
65
67
|
cocoapods-downloader (1.3.0)
|
66
68
|
cocoapods-plugins (1.0.0)
|
@@ -73,19 +75,19 @@ GEM
|
|
73
75
|
cocoapods-try (1.1.0)
|
74
76
|
colored (1.2)
|
75
77
|
colored2 (3.1.2)
|
76
|
-
concurrent-ruby (1.1.
|
78
|
+
concurrent-ruby (1.1.6)
|
77
79
|
cork (0.3.0)
|
78
80
|
colored2 (~> 3.1)
|
79
81
|
crack (0.4.3)
|
80
82
|
safe_yaml (~> 1.0.0)
|
81
|
-
danger (6.
|
83
|
+
danger (6.3.2)
|
82
84
|
claide (~> 1.0)
|
83
85
|
claide-plugins (>= 0.9.2)
|
84
86
|
colored2 (~> 3.1)
|
85
87
|
cork (~> 0.1)
|
86
88
|
faraday (~> 0.9)
|
87
89
|
faraday-http-cache (~> 2.0)
|
88
|
-
git (~> 1.
|
90
|
+
git (~> 1.6)
|
89
91
|
kramdown (~> 2.0)
|
90
92
|
kramdown-parser-gfm (~> 1.0)
|
91
93
|
no_proxy_fix
|
@@ -93,16 +95,19 @@ GEM
|
|
93
95
|
terminal-table (~> 1)
|
94
96
|
diffy (3.3.0)
|
95
97
|
escape (0.0.4)
|
98
|
+
ethon (0.12.0)
|
99
|
+
ffi (>= 1.3.0)
|
96
100
|
faraday (0.17.3)
|
97
101
|
multipart-post (>= 1.2, < 3)
|
98
102
|
faraday-http-cache (2.0.0)
|
99
103
|
faraday (~> 0.8)
|
100
|
-
ffi (1.
|
104
|
+
ffi (1.12.2)
|
101
105
|
fourflusher (2.3.1)
|
102
106
|
fuzzy_match (2.0.4)
|
103
107
|
gh_inspector (1.1.3)
|
104
|
-
git (1.
|
105
|
-
|
108
|
+
git (1.6.0)
|
109
|
+
rchardet (~> 1.8)
|
110
|
+
hashdiff (1.0.1)
|
106
111
|
httpclient (2.8.3)
|
107
112
|
i18n (0.9.5)
|
108
113
|
concurrent-ruby (~> 1.0)
|
@@ -111,7 +116,7 @@ GEM
|
|
111
116
|
kramdown-parser-gfm (1.1.0)
|
112
117
|
kramdown (~> 2.0)
|
113
118
|
liferaft (0.0.6)
|
114
|
-
minitest (5.
|
119
|
+
minitest (5.14.0)
|
115
120
|
mocha (1.11.2)
|
116
121
|
mocha-on-bacon (0.2.3)
|
117
122
|
mocha (>= 0.13.0)
|
@@ -122,12 +127,12 @@ GEM
|
|
122
127
|
nap (1.1.0)
|
123
128
|
netrc (0.11.0)
|
124
129
|
no_proxy_fix (0.1.2)
|
125
|
-
octokit (4.
|
130
|
+
octokit (4.18.0)
|
126
131
|
faraday (>= 0.9)
|
127
132
|
sawyer (~> 0.8.0, >= 0.5.3)
|
128
133
|
open4 (1.3.4)
|
129
134
|
parallel (1.19.1)
|
130
|
-
parser (2.7.0.
|
135
|
+
parser (2.7.0.5)
|
131
136
|
ast (~> 2.4.0)
|
132
137
|
powerpack (0.1.2)
|
133
138
|
prettybacon (0.0.2)
|
@@ -135,9 +140,10 @@ GEM
|
|
135
140
|
public_suffix (4.0.3)
|
136
141
|
rainbow (2.2.2)
|
137
142
|
rake
|
138
|
-
rake (
|
143
|
+
rake (13.0.1)
|
144
|
+
rchardet (1.8.0)
|
139
145
|
redcarpet (3.5.0)
|
140
|
-
rouge (3.
|
146
|
+
rouge (3.17.0)
|
141
147
|
rubocop (0.49.0)
|
142
148
|
parallel (~> 1.10)
|
143
149
|
parser (>= 2.3.3.1, < 3.0)
|
@@ -157,16 +163,18 @@ GEM
|
|
157
163
|
terminal-table (1.8.0)
|
158
164
|
unicode-display_width (~> 1.1, >= 1.1.1)
|
159
165
|
thread_safe (0.3.6)
|
166
|
+
typhoeus (1.3.1)
|
167
|
+
ethon (>= 0.9.0)
|
160
168
|
tzinfo (1.2.6)
|
161
169
|
thread_safe (~> 0.1)
|
162
|
-
unicode-display_width (1.
|
163
|
-
webmock (3.
|
170
|
+
unicode-display_width (1.7.0)
|
171
|
+
webmock (3.8.3)
|
164
172
|
addressable (>= 2.3.6)
|
165
173
|
crack (>= 0.3.2)
|
166
174
|
hashdiff (>= 0.4.0, < 2.0.0)
|
167
175
|
xcinvoke (0.3.0)
|
168
176
|
liferaft (~> 0.0.6)
|
169
|
-
xcodeproj (1.
|
177
|
+
xcodeproj (1.15.0)
|
170
178
|
CFPropertyList (>= 2.3.3, < 4.0)
|
171
179
|
atomos (~> 0.1.3)
|
172
180
|
claide (>= 1.0.2, < 2.0)
|
@@ -186,7 +194,7 @@ DEPENDENCIES
|
|
186
194
|
mocha
|
187
195
|
mocha-on-bacon
|
188
196
|
prettybacon
|
189
|
-
rake (~>
|
197
|
+
rake (~> 13.0)
|
190
198
|
rubocop (= 0.49.0)
|
191
199
|
webmock
|
192
200
|
|
data/README.md
CHANGED
@@ -47,6 +47,10 @@ If your Swift module is the first thing to build, and it builds fine when runnin
|
|
47
47
|
just running `jazzy` (without any arguments) from the root of your project should
|
48
48
|
succeed too!
|
49
49
|
|
50
|
+
If Jazzy generates docs for the wrong module then use `--module` to tell it which
|
51
|
+
one you'd prefer. If this doesn't help, and you're using Xcode, then try passing
|
52
|
+
extra arguments to `xcodebuild`, for example `jazzy --build-tool-arguments -target,MyTarget`.
|
53
|
+
|
50
54
|
You can set options for your project’s documentation in a configuration file,
|
51
55
|
`.jazzy.yaml` by default. For a detailed explanation and an exhaustive list of
|
52
56
|
all available options, run `jazzy --help config`.
|
@@ -70,6 +74,25 @@ backticks generates a link, for example:
|
|
70
74
|
* \`[MyClass method1]\` - a link to an Objective-C method.
|
71
75
|
* \`-[MyClass method2:param1]\` - a link to another Objective-C method.
|
72
76
|
|
77
|
+
### Math
|
78
|
+
|
79
|
+
Jazzy can render math equations written in LaTeX embedded in your markdown:
|
80
|
+
* `` `$equation$` `` renders the equation in an inline style.
|
81
|
+
* `` `$$equation$$` `` renders the equation in a display style, centered on a
|
82
|
+
line of its own.
|
83
|
+
|
84
|
+
For example, the markdown:
|
85
|
+
```markdown
|
86
|
+
Inline: `$ax^2+bx+c=0$`
|
87
|
+
|
88
|
+
Block: `$$x={\frac {-b\pm {\sqrt {b^{2}-4ac}}}{2a}}$$`
|
89
|
+
```
|
90
|
+
..renders as:
|
91
|
+
|
92
|
+
![math](images/math.png)
|
93
|
+
|
94
|
+
Math support is provided by [KaTeX](https://katex.org).
|
95
|
+
|
73
96
|
### Swift
|
74
97
|
|
75
98
|
Swift documentation is generated by default.
|
data/bin/sourcekitten
CHANGED
Binary file
|
data/images/math.png
ADDED
Binary file
|
data/jazzy.gemspec
CHANGED
@@ -27,7 +27,7 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.add_runtime_dependency 'xcinvoke', '~> 0.3.0'
|
28
28
|
|
29
29
|
spec.add_development_dependency 'bundler', '~> 1.7'
|
30
|
-
spec.add_development_dependency 'rake', '~>
|
30
|
+
spec.add_development_dependency 'rake', '~> 13.0'
|
31
31
|
|
32
32
|
spec.required_ruby_version = '>= 2.0.0'
|
33
33
|
end
|
data/lib/jazzy/config.rb
CHANGED
@@ -156,6 +156,11 @@ module Jazzy
|
|
156
156
|
'projects.',
|
157
157
|
default: ''
|
158
158
|
|
159
|
+
config_attr :keep_property_attributes,
|
160
|
+
command_line: '--[no-]keep-property-attributes',
|
161
|
+
description: 'Include the default Objective-C property attributes.',
|
162
|
+
default: false
|
163
|
+
|
159
164
|
config_attr :config_file,
|
160
165
|
command_line: '--config PATH',
|
161
166
|
description: ['Configuration file (.yaml or .json)',
|
data/lib/jazzy/doc.rb
CHANGED
data/lib/jazzy/doc_builder.rb
CHANGED
@@ -130,6 +130,7 @@ module Jazzy
|
|
130
130
|
end
|
131
131
|
|
132
132
|
copy_assets(output_dir)
|
133
|
+
copy_extensions(output_dir)
|
133
134
|
|
134
135
|
DocsetBuilder.new(output_dir, source_module).build!
|
135
136
|
|
@@ -210,6 +211,15 @@ module Jazzy
|
|
210
211
|
end
|
211
212
|
end
|
212
213
|
|
214
|
+
def self.copy_extensions(destination)
|
215
|
+
copy_extension('katex', destination) if Markdown.has_math
|
216
|
+
end
|
217
|
+
|
218
|
+
def self.copy_extension(name, destination)
|
219
|
+
ext_directory = Pathname(__FILE__).parent + 'extensions/' + name
|
220
|
+
FileUtils.cp_r(ext_directory.children, destination)
|
221
|
+
end
|
222
|
+
|
213
223
|
def self.render(doc_model, markdown)
|
214
224
|
html = Markdown.render(markdown)
|
215
225
|
SourceKitten.autolink_document(html, doc_model)
|
@@ -341,6 +351,7 @@ module Jazzy
|
|
341
351
|
abstract = (item.abstract || '') + (item.discussion || '')
|
342
352
|
{
|
343
353
|
name: item.name,
|
354
|
+
name_html: item.name.gsub(':', ':<wbr>'),
|
344
355
|
abstract: abstract,
|
345
356
|
declaration: item.display_declaration,
|
346
357
|
language: item.display_language,
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|