Make search work with category names (#4103)

This commit is contained in:
Pierre-Yves B
2019-10-02 20:03:59 +01:00
committed by GitHub
parent a865b81acb
commit 157a6180b2
14 changed files with 37 additions and 37 deletions

View File

@@ -324,7 +324,7 @@ module.exports = class GemVersion extends BaseJsonService {
- `namedParams`: Provide a valid example of params we can substitute into
the pattern. In this case we need a valid ruby gem, so we've picked [formatador](https://rubygems.org/gems/formatador).
- `staticPreview`: On the index page we want to show an example badge, but for performance reasons we want that example to be generated without making an API call. `staticPreview` should be populated by calling our `render()` method with some valid data.
- `keywords`: If we want to provide additional keywords other than the title, we can add them here. This helps users to search for relevant badges.
- `keywords`: If we want to provide additional keywords other than the title and the category, we can add them here. This helps users to search for relevant badges.
Save, run `npm start`, and you can see it [locally](http://127.0.0.1:3000/).