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

Commit

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

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

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

0 comments on commit 0a417a8

Please sign in to comment.