diff --git a/content/search.json b/content/search.json index b6660d929f..aa6fc18938 100644 --- a/content/search.json +++ b/content/search.json @@ -15,6 +15,17 @@ <% end %> <% latest_atom_version_apis.each do |klass| %> + <% klass.fetch('classMethods', []).each do |class_method| %> + <% body = compress(safe_embed(class_method['description'])) %> + { + "title": "<%= klass['name'] %>::<%= class_method['name'] %>", + "category": "", + "category_url": "", + "url": "/api/v<%= latest_atom_version_number %>/<%= klass['name'] %>/#<%= class_method['name'] %>", + "body": "<%= body %>", + "excerpt": "<%= body[0..140] %>..." + }, + <% end %> <% klass.fetch('instanceProperties', []).each do |instance_property| %> <% body = compress(safe_embed(instance_property['description'])) %>