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

update algolia to new index and search box #212

Merged
merged 2 commits into from
Nov 30, 2021
Merged

update algolia to new index and search box #212

merged 2 commits into from
Nov 30, 2021

Conversation

orbeckst
Copy link
Member

@orbeckst
Copy link
Member Author

For a preview of the new search box see https://orbeckst.github.io/MDAnalysis.github.io/

- use new appId and key (from UI)
- use newer integration with docs from https://github.com/algolia/docsearch
  - new CSS
  - new JS
@orbeckst
Copy link
Member Author

I also updated the wiki page on search.

@orbeckst
Copy link
Member Author

orbeckst commented Nov 23, 2021

Notes on styling the search; files are in https://github.com/algolia/docsearch/tree/next/packages/docsearch-css for inspection.

In particular, if we could change/override https://github.com/algolia/docsearch/blob/next/packages/docsearch-css/src/_variables.css then at least we can use MDA colors.

@orbeckst
Copy link
Member Author

Applied minimal styling to make the search box feel a bit more "MDA"
Screen Shot 2021-11-23 at 4 04 56 PM

This was surprisingly simple with the clean CSS that algolia provides — just pick what you need from _variables.css and override locally.

@orbeckst
Copy link
Member Author

@fiona-naughton @lilyminium @richardjgowers could someone please spare a few minutes to look over this PR? Thanks.

@orbeckst orbeckst merged commit 3bcad4c into master Nov 30, 2021
@orbeckst orbeckst deleted the switch-algolia branch November 30, 2021 23:13
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.

migrate DocSearch to Algolia Crawler
2 participants