Skip to content

Commit faeb374

Browse files
committed
Merge branch 'feature/additional-dash-categories'
2 parents a050d51 + 23eb4bd commit faeb374

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

lib/utils.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,34 @@ 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+
80+
if (method.tags.property) {
81+
82+
method.tags.property.forEach(function (property) {
83+
84+
db.run('INSERT OR IGNORE INTO searchIndex(name, type, path) VALUES ($name, $type, $path);', {
85+
$name: property.name,
86+
$type: 'Property',
87+
$path: method.uid + '.html#//apple_ref/cpp/Property/' + property.name
88+
});
89+
90+
});
91+
92+
}
93+
6694
});
6795

6896
});

0 commit comments

Comments
 (0)