middlemac 3.1.1 → 3.1.2
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.
- checksums.yaml +4 -4
- data/documentation_project/Contents/Info.plist.erb +3 -1
- data/documentation_project/Contents/Resources/en.lproj/100_reference/010_apple_help_books/010_dissect_help_book.html.md.erb +1 -0
- data/documentation_project/Gemfile +1 -1
- data/fixtures/middlemac_app/Contents/Info.plist.erb +3 -1
- data/fixtures/middlemac_app/Gemfile +1 -1
- data/lib/middlemac/private.rb +4 -1
- data/lib/middlemac/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d36a639d23b4ec321d7047879332e744986115c5d2eb0addf9959357d915ff2b
|
|
4
|
+
data.tar.gz: bbc5aa12ebf741fc881922d884850a1b31524ecbd9c0c3df1ce32afd1ff2a3cd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 201dc66cda139522d89824b801493388c310f80e9dbd7703b58f2af4dab92f1c02ea3eadba0d211b6c863865bf6717f20a1b6fbdddee402bc54777a135e5fd7a
|
|
7
|
+
data.tar.gz: 47425d49c57f6c7d975228542b126d338f579107d53737876ebdfababfcb1ff0961162d6299cf8b10580461b4781ab089eedef49bc6da97b20d6416a7c208a0e
|
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
<string>index_hpd.html</string>
|
|
11
11
|
<key>HPDBookIndexPath</key>
|
|
12
12
|
<string><%= cfBundleName %>.helpindex</string>
|
|
13
|
+
<key>HPDBookCSIndexPath</key>
|
|
14
|
+
<string><%= cfBundleName %>.cshelpindex</string>
|
|
13
15
|
<key>HPDBookTitle</key>
|
|
14
16
|
<string><%= cfBundleName %> Help</string>
|
|
15
17
|
<key>CFBundleDevelopmentRegion</key>
|
|
@@ -25,7 +27,7 @@
|
|
|
25
27
|
<key>HPDBookKBURL</key>
|
|
26
28
|
<string><%= config[:targets][config[:target]][:HPDBookKBURL] || product_uri %></string>
|
|
27
29
|
<key>HPDBookRemoteURL</key>
|
|
28
|
-
<string><%= config[:targets][config[:target]][:HPDBookRemoteURL] %></string>
|
|
30
|
+
<string><%= config[:targets][config[:target]][:HPDBookRemoteURL] || 'dummy_enables_share' %></string>
|
|
29
31
|
<key>HPDBookTopicListCSSPath</key>
|
|
30
32
|
<string><%= config[:targets][config[:target]][:HPDBookTopicListCSSPath] %></string>
|
|
31
33
|
<key>HPDBookTopicListTemplatePath</key>
|
|
@@ -162,6 +162,7 @@ used and relevant today:
|
|
|
162
162
|
| HPDBookAccessPath | index.html | The file that should be loaded when Apple Help Viewer starts.
|
|
163
163
|
| HPDBookIconPath | SharedGlobalArt/free-icon_32x32@2x.png | Icon used to represent the Help Book, especially during system-wide searches.
|
|
164
164
|
| HPDBookIndexPath | Middlemac.helpindex | The name of your index file, relative to your `.lproj` directory.
|
|
165
|
+
| HPDBookCSIndexPath | Middlemac.cshelpindex | The newer, corespotlight version of the HPDBookIndexPath, required for macOS 10.15+.
|
|
165
166
|
| HPDBookTitle | Middlemac Help | The title of the Help Book, and it can be localized.
|
|
166
167
|
| HPDBookType | **3** | Required as is.
|
|
167
168
|
|
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
<string>index_hpd.html</string>
|
|
11
11
|
<key>HPDBookIndexPath</key>
|
|
12
12
|
<string><%= cfBundleName %>.helpindex</string>
|
|
13
|
+
<key>HPDBookCSIndexPath</key>
|
|
14
|
+
<string><%= cfBundleName %>.cshelpindex</string>
|
|
13
15
|
<key>HPDBookTitle</key>
|
|
14
16
|
<string><%= cfBundleName %> Help</string>
|
|
15
17
|
<key>CFBundleDevelopmentRegion</key>
|
|
@@ -25,7 +27,7 @@
|
|
|
25
27
|
<key>HPDBookKBURL</key>
|
|
26
28
|
<string><%= config[:targets][config[:target]][:HPDBookKBURL] || product_uri %></string>
|
|
27
29
|
<key>HPDBookRemoteURL</key>
|
|
28
|
-
<string><%= config[:targets][config[:target]][:HPDBookRemoteURL] %></string>
|
|
30
|
+
<string><%= config[:targets][config[:target]][:HPDBookRemoteURL] || 'dummy_enables_share' %></string>
|
|
29
31
|
<key>HPDBookTopicListCSSPath</key>
|
|
30
32
|
<string><%= config[:targets][config[:target]][:HPDBookTopicListCSSPath] %></string>
|
|
31
33
|
<key>HPDBookTopicListTemplatePath</key>
|
data/lib/middlemac/private.rb
CHANGED
|
@@ -450,13 +450,16 @@ class Middlemac < ::Middleman::Extension
|
|
|
450
450
|
|
|
451
451
|
index_dir = File.expand_path(File.join(app.config[:build_dir], 'Resources', locale))
|
|
452
452
|
index_dst = File.expand_path(File.join(index_dir, "#{cf_bundle_name}.helpindex"))
|
|
453
|
+
index_dcs = File.expand_path(File.join(index_dir, "#{cf_bundle_name}.cshelpindex"))
|
|
453
454
|
iso_code = File.basename(locale, '.*')
|
|
454
455
|
stopwords = File.expand_path(File.join( '..', 'resources', 'stopwords', "#{iso_code}.plist" ))
|
|
455
456
|
|
|
456
457
|
say "'…#{index_dir.split(//).last(60).join}' (indexing)", :cyan
|
|
457
458
|
say "'…#{index_dst.split(//).last(60).join}' (final file)", :cyan
|
|
459
|
+
say "'…#{index_dcs.split(//).last(60).join}' (final file)", :cyan
|
|
458
460
|
|
|
459
|
-
`hiutil -Cf "#{index_dst}" -ag -m 3 -s #{stopwords} -l #{iso_code} "#{index_dir}"`
|
|
461
|
+
`hiutil -I lsm -Cf "#{index_dst}" -ag -m 3 -s #{stopwords} -l #{iso_code} "#{index_dir}"`
|
|
462
|
+
`hiutil -I corespotlight -Cf "#{index_dcs}" -ag -m 3 -s #{stopwords} -l #{iso_code} "#{index_dir}"`
|
|
460
463
|
else
|
|
461
464
|
say "NOTE: `hiutil` is not found, so no index will exist for target '#{target}'.", :red
|
|
462
465
|
end
|
data/lib/middlemac/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: middlemac
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.1.
|
|
4
|
+
version: 3.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jim Derry
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-05-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: middleman-core
|