Skip to content

Vuepress & DocSearch #686

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

Closed
s-pace opened this issue Jul 30, 2018 · 5 comments
Closed

Vuepress & DocSearch #686

s-pace opened this issue Jul 30, 2018 · 5 comments
Labels
contribution welcome Contributions welcome

Comments

@s-pace
Copy link
Contributor

s-pace commented Jul 30, 2018

👋 team,

I am working on DocSearch that helps open source project with a good search experience for documentation website.

We used to feature vuepress since we are integrated in several vuepress users like:

We love vue and especially vuepress. We want to help you again by creating a dedicated integration for vuepress since we receive plenty of request about it.

We have made a quick showcase of how it would looks like:
https://docsearch-vuepress.netlify.com/
preview

Why DocSearch?

  • Provide a learn as you type experience
  • Powered by algolia: Super fast. Results every keystroke. Typo tolerant ...
  • We provide the full Algolia analytics so that you can inject user's usage in your documentation design (most queries done, most unsuccessful queries...) @FadySamirSadek has been granted since he was the first one to request DocSearch.

Feature request

You will only need to inject a javascript snippet. I can do the PR for you since we want to enhance the vuepress integration by:

  • Using meta tags from your page in order to handle version and language filtering
  • Define the best DocSearch config for vuepress's users.
  • Consider doing new feature like using a sitemap

What problem does this feature solve?

  • Search within your documentation website

How should this be implemented in your opinion?

Ask us to do it for you.

Are you willing to work on this yourself?**

If you provide me a green light. I can work on enhancing the integration by generating meta tags for filtering on version & languages

@dagilleland
Copy link

As a VuePress user with a few open-source sites/projects that I would use VuePress and Algolia on, I would be willing to participate in testing.

@ulivz
Copy link
Member

ulivz commented Jul 30, 2018

Thank you very much for your interest in VuePress, we strongly support you to enhance the docsearch experience. Let's go!

Refs:

  1. Current implementation: Algolia DocSearch Integration  #201
  2. Docs: https://vuepress.vuejs.org/default-theme-config/#algolia-search

@ulivz ulivz added the contribution welcome Contributions welcome label Jul 30, 2018
@zipme
Copy link

zipme commented Jul 31, 2018

It would be great if we can do more customizations, now it seems not possible to pass in functions like

themeConfig: {
  algolia: {
    handleSelected: function (input, event, suggestion) {
    }    
  }
}

https://community.algolia.com/docsearch/documentation/docsearch-autocomplete/configuring-the-search/

@s-pace
Copy link
Contributor Author

s-pace commented Aug 2, 2018

Hi thank you for the help.

We will do it within this quarter.

So happy to receive these feedback.

@ulivz
Copy link
Member

ulivz commented Aug 7, 2018

@s-pace

Thanks for the support again, now VuePress's documentation has enabled docsearch. 👏 You can see that we have handled language at our default theme (See: e8a6ab1 ) because this filter facetFilters: ['lang:$lang'] is generic for all docs built by VuePress.

And user will only need to config for apiKey and indexName as before. (See: cba4904)

@ulivz ulivz closed this as completed Aug 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution welcome Contributions welcome
Projects
None yet
Development

No branches or pull requests

4 participants