Skip to content

Commit 5783730

Browse files
committed
Merge pull request #6 from Kapeli/master
Suggested Dash docset changes
2 parents 5999888 + fa65cbd commit 5783730

File tree

2 files changed

+3
-15
lines changed

2 files changed

+3
-15
lines changed

lib/utils.js

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -63,26 +63,12 @@ module.exports.buildDashDocSet = function (input) {
6363
$path: method.uid + '.html'
6464
});
6565

66-
if (method.tags.param) {
67-
68-
method.tags.param.forEach(function (param) {
69-
70-
db.run('INSERT OR IGNORE INTO searchIndex(name, type, path) VALUES ($name, $type, $path);', {
71-
$name: param.name,
72-
$type: 'Parameter',
73-
$path: method.uid + '.html#//apple_ref/cpp/Parameter/' + param.name
74-
});
75-
76-
});
77-
78-
}
79-
8066
if (method.tags.property) {
8167

8268
method.tags.property.forEach(function (property) {
8369

8470
db.run('INSERT OR IGNORE INTO searchIndex(name, type, path) VALUES ($name, $type, $path);', {
85-
$name: property.name,
71+
$name: method.name+'.'+property.name,
8672
$type: 'Property',
8773
$path: method.uid + '.html#//apple_ref/cpp/Property/' + property.name
8874
});

templates/dash/plist.hbs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,7 @@
1212
<true/>
1313
<key>DashDocSetFamily</key>
1414
<string>dashtoc</string>
15+
<key>DashDocSetDeclaredInStyle</key>
16+
<string>originalName</string>
1517
</dict>
1618
</plist>

0 commit comments

Comments
 (0)