Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
Add class methods to search index
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonrudolph committed Jul 1, 2019
1 parent fb77ad9 commit 4599da9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions content/search.json
Original file line number Diff line number Diff line change
Expand Up @@ -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'])) %>
Expand Down

0 comments on commit 4599da9

Please sign in to comment.