Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add search data to component and add doc pages (closes #84) #104

Merged
merged 1 commit into from
May 16, 2020

Conversation

joehand
Copy link
Contributor

@joehand joehand commented May 16, 2020

Thanks for the nice starter! Here is an attempt at adding the doc pages to the search (#84). You should be more easily able to add any other nodes too since it is all done inside the component now.

  • Moves search data to the component as a static query
  • Adds doc pages to search query data

Used this repo as an example. You could also add in headings (though need to change the UI).

@drehimself drehimself merged commit c8e550a into drehimself:master May 16, 2020
@drehimself
Copy link
Owner

Thank you! This is great.

It didn't occur to me that you can just query the types directly using GraphQL. MUCH cleaner than doing it in gridsome.server.js.

@joehand joehand deleted the search branch May 17, 2020 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants