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

Commit

Permalink
Add instance properties to search index
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonrudolph committed Jul 1, 2019
1 parent b0526cd commit fb77ad9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions content/search.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,19 @@
<% end %>

<% latest_atom_version_apis.each do |klass| %>

<% klass.fetch('instanceProperties', []).each do |instance_property| %>
<% body = compress(safe_embed(instance_property['description'])) %>
{
"title": "<%= klass['name'] %>::<%= instance_property['name'] %>",
"category": "",
"category_url": "",
"url": "/api/v<%= latest_atom_version_number %>/<%= klass['name'] %>/#instance-<%= instance_property['name'] %>",
"body": "<%= body %>",
"excerpt": "<%= body[0..140] %>..."
},
<% end %>

<% klass.fetch('instanceMethods', []).each do |instance_method| %>
<% body = compress(safe_embed(instance_method['description'])) %>
{
Expand Down

0 comments on commit fb77ad9

Please sign in to comment.