jsduck 3.9.0 → 3.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +31 -15
- data/jsduck.gemspec +2 -2
- data/lib/jsduck/options.rb +1 -1
- metadata +9 -8
data/Rakefile
CHANGED
@@ -27,8 +27,12 @@ def load_sdk_vars
|
|
27
27
|
puts " OUT_DIR='/path/to/ouput/dir'"
|
28
28
|
puts " # path to SDK (for developers at Sencha)"
|
29
29
|
puts " SDK_DIR='/path/to/SDK'"
|
30
|
-
puts " #
|
30
|
+
puts " # paths to other projects (for developers at Sencha)"
|
31
31
|
puts " ANIMATOR_DIR='/path/to/Animator'"
|
32
|
+
puts " ARCHITECT_DIR='/path/to/Architect'"
|
33
|
+
puts " SENCHAIO_DIR='/path/to/IO'"
|
34
|
+
puts " EXT3_DIR='/path/to/ext3'"
|
35
|
+
puts " EXT2_DIR='/path/to/ext2'"
|
32
36
|
exit 1
|
33
37
|
end
|
34
38
|
end
|
@@ -36,7 +40,7 @@ end
|
|
36
40
|
# Compress JS/CSS file in-place
|
37
41
|
# Using a hackish way to access yui-compressor
|
38
42
|
def yui_compress(fname)
|
39
|
-
system "java -jar $(dirname $(which sencha))
|
43
|
+
system "java -jar $(dirname $(which sencha))/bin/yuicompressor.jar -o #{fname} #{fname}"
|
40
44
|
end
|
41
45
|
|
42
46
|
# Reads in all CSS files referenced between BEGIN CSS and END CSS markers.
|
@@ -99,6 +103,7 @@ def compress
|
|
99
103
|
system("sencha", "create", "jsb", "-a", "#{dir}/build-js.html", "-p", "#{dir}/app.jsb3")
|
100
104
|
# Concatenate files listed in JSB3 file
|
101
105
|
system("sencha", "build", "-p", "#{dir}/app.jsb3", "-d", dir)
|
106
|
+
|
102
107
|
# Remove intermediate build files
|
103
108
|
system("rm", "#{dir}/app.jsb3")
|
104
109
|
system("rm", "#{dir}/all-classes.js")
|
@@ -132,7 +137,7 @@ def compress
|
|
132
137
|
system "mkdir #{dir}/extjs"
|
133
138
|
system "cp template/extjs/ext-all.js #{dir}/extjs"
|
134
139
|
system "mkdir -p #{dir}/extjs/resources/themes/images"
|
135
|
-
system "cp -r
|
140
|
+
system "cp -r template/extjs/resources/themes/images/default #{dir}/extjs/resources/themes/images"
|
136
141
|
end
|
137
142
|
|
138
143
|
|
@@ -177,7 +182,8 @@ class JsDuckRunner
|
|
177
182
|
def add_ext4
|
178
183
|
@options += [
|
179
184
|
"--title", "Sencha Docs - Ext JS 4.0",
|
180
|
-
"--footer", "Ext JS 4.0 Docs - Generated with <a href='https://github.com/senchalabs/jsduck'>JSDuck</a> VERSION.
|
185
|
+
"--footer", "Ext JS 4.0 Docs - Generated with <a href='https://github.com/senchalabs/jsduck'>JSDuck</a> {VERSION}." +
|
186
|
+
" <a href='http://www.sencha.com/legal/terms-of-use/'>Terms of Use</a>",
|
181
187
|
"--ignore-global",
|
182
188
|
"--no-warnings",
|
183
189
|
"--images", "#{EXT_BUILD}/docs/doc-resources",
|
@@ -263,7 +269,11 @@ class JsDuckRunner
|
|
263
269
|
|
264
270
|
Docs.otherProducts = [
|
265
271
|
{
|
266
|
-
text: 'Ext JS 4',
|
272
|
+
text: 'Ext JS 4.1',
|
273
|
+
href: 'http://docs.sencha.com/ext-js/4-1'
|
274
|
+
},
|
275
|
+
{
|
276
|
+
text: 'Ext JS 4.0',
|
267
277
|
href: 'http://docs.sencha.com/ext-js/4-0'
|
268
278
|
},
|
269
279
|
{
|
@@ -290,6 +300,10 @@ class JsDuckRunner
|
|
290
300
|
text: 'Sencha Animator',
|
291
301
|
href: 'http://docs.sencha.com/animator/1-0'
|
292
302
|
},
|
303
|
+
{
|
304
|
+
text: 'Sencha Architect',
|
305
|
+
href: 'http://docs.sencha.com/arhitect/2-0'
|
306
|
+
},
|
293
307
|
{
|
294
308
|
text: 'Sencha.io',
|
295
309
|
href: 'http://docs.sencha.com/io/1-0'
|
@@ -390,7 +404,7 @@ task :ext3, [:mode] => :sass do |t, args|
|
|
390
404
|
compress if mode == "export"
|
391
405
|
|
392
406
|
runner = JsDuckRunner.new
|
393
|
-
runner.add_options ["--output", OUT_DIR, "--config", "#{
|
407
|
+
runner.add_options ["--output", OUT_DIR, "--config", "#{EXT3_DIR}/src/doc-config.json"]
|
394
408
|
runner.add_debug if mode == "debug"
|
395
409
|
runner.add_seo if mode == "live"
|
396
410
|
runner.add_google_analytics if mode == "live"
|
@@ -407,7 +421,7 @@ task :ext2, [:mode] => :sass do |t, args|
|
|
407
421
|
compress if mode == "export"
|
408
422
|
|
409
423
|
runner = JsDuckRunner.new
|
410
|
-
runner.add_options ["--output", OUT_DIR, "--config", "#{
|
424
|
+
runner.add_options ["--output", OUT_DIR, "--config", "#{EXT2_DIR}/doc-config.json"]
|
411
425
|
runner.add_debug if mode == "debug"
|
412
426
|
runner.add_seo if mode == "live"
|
413
427
|
runner.add_google_analytics if mode == "live"
|
@@ -454,6 +468,8 @@ task :touch2, [:mode] => :sass do |t, args|
|
|
454
468
|
"--eg-iframe", "#{SDK_DIR}/touch/docs/build-eg-iframe.html",
|
455
469
|
"--examples-base-url", "../examples/",
|
456
470
|
]
|
471
|
+
else
|
472
|
+
runner.add_options ["--examples-base-url", "touch/examples/production/"]
|
457
473
|
end
|
458
474
|
|
459
475
|
runner.add_debug if mode == "debug"
|
@@ -492,7 +508,7 @@ task :senchaio, [:mode] => :sass do |t, args|
|
|
492
508
|
compress if mode == "live"
|
493
509
|
|
494
510
|
runner = JsDuckRunner.new
|
495
|
-
runner.add_options ["--output", OUT_DIR, "--config", "#{
|
511
|
+
runner.add_options ["--output", OUT_DIR, "--config", "#{SENCHAIO_DIR}/docs/config.json"]
|
496
512
|
runner.add_debug if mode == "debug"
|
497
513
|
runner.add_seo if mode == "debug" || mode == "live"
|
498
514
|
runner.add_google_analytics if mode == "live"
|
@@ -517,21 +533,21 @@ task :animator, [:mode] => :sass do |t, args|
|
|
517
533
|
runner.run
|
518
534
|
end
|
519
535
|
|
520
|
-
desc "Run JSDuck on Sencha
|
521
|
-
"
|
522
|
-
"
|
523
|
-
"
|
524
|
-
task :
|
536
|
+
desc "Run JSDuck on Sencha Architect (for internal use at Sencha)\n" +
|
537
|
+
"architect - creates debug/development version\n" +
|
538
|
+
"architect[export] - create live version for deployment\n"
|
539
|
+
"architect[live] - create live version for deployment\n"
|
540
|
+
task :architect, [:mode] => :sass do |t, args|
|
525
541
|
mode = args[:mode] || "debug"
|
526
542
|
throw "Unknown mode #{mode}" unless ["debug", "live", "export"].include?(mode)
|
527
543
|
compress if mode == "live"
|
528
544
|
|
529
545
|
runner = JsDuckRunner.new
|
530
|
-
runner.add_options ["--output", OUT_DIR, "--config", "#{
|
546
|
+
runner.add_options ["--output", OUT_DIR, "--config", "#{ARCHITECT_DIR}/docs/config.json"]
|
531
547
|
runner.add_debug if mode == "debug"
|
532
548
|
runner.add_seo if mode == "debug" || mode == "live"
|
533
549
|
runner.add_google_analytics if mode == "live"
|
534
|
-
runner.add_comments('
|
550
|
+
runner.add_comments('architect', '2') if mode == "debug" || mode == "live"
|
535
551
|
runner.run
|
536
552
|
end
|
537
553
|
|
data/jsduck.gemspec
CHANGED
@@ -2,8 +2,8 @@ Gem::Specification.new do |s|
|
|
2
2
|
s.required_rubygems_version = ">= 1.3.5"
|
3
3
|
|
4
4
|
s.name = 'jsduck'
|
5
|
-
s.version = '3.9.
|
6
|
-
s.date = '2012-04-
|
5
|
+
s.version = '3.9.1'
|
6
|
+
s.date = '2012-04-25'
|
7
7
|
s.summary = "Simple JavaScript Duckumentation generator"
|
8
8
|
s.description = "Documentation generator for Sencha JS frameworks"
|
9
9
|
s.homepage = "https://github.com/senchalabs/jsduck"
|
data/lib/jsduck/options.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jsduck
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.9.
|
4
|
+
version: 3.9.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,11 +10,11 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-04-
|
13
|
+
date: 2012-04-25 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rdiscount
|
17
|
-
requirement: &
|
17
|
+
requirement: &20844700 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: '0'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *20844700
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: json
|
28
|
-
requirement: &
|
28
|
+
requirement: &20842780 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ! '>='
|
@@ -33,10 +33,10 @@ dependencies:
|
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *20842780
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: parallel
|
39
|
-
requirement: &
|
39
|
+
requirement: &20841760 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
42
42
|
- - ! '>='
|
@@ -44,7 +44,7 @@ dependencies:
|
|
44
44
|
version: '0'
|
45
45
|
type: :runtime
|
46
46
|
prerelease: false
|
47
|
-
version_requirements: *
|
47
|
+
version_requirements: *20841760
|
48
48
|
description: Documentation generator for Sencha JS frameworks
|
49
49
|
email: rene.saarsoo@sencha.com
|
50
50
|
executables:
|
@@ -202,6 +202,7 @@ files:
|
|
202
202
|
- template-min/resources/prettify/prettify.css
|
203
203
|
- template-min/app.js
|
204
204
|
- template-min/print-template.html
|
205
|
+
- template-min/data.js
|
205
206
|
- template-min/favicon.ico
|
206
207
|
- template-min/extjs/resources/themes/images/default/tab/tab-default-bottom-sides.gif
|
207
208
|
- template-min/extjs/resources/themes/images/default/tab/tab-default-top-disabled-corners.gif
|