Skip to content

restrict DocSearch to relevant parts of the site #77

@orbeckst

Description

@orbeckst

The new AlgoliaDoc Search from #73 indexes a large part of our site, as shown in the config file https://github.com/algolia/docsearch-configs/blob/master/configs/mdanalysis.json that was generated by the fine folks at Algolia. They already sensibly excluded code directories. But we still get hits that look like duplicates

I would like to restrict the search to make the hits more relevant

  • only show hits from the docs for releases
  • only show blog posts themselves, not paginated versions
  • use sitemap.xml, which is generated with jekyll-sitemap plugin
    - jekyll-sitemap
    in order to include all pages, especially any blog pages that might not show up in pagination (now that we omit pagination)

Unless anyone in @MDAnalysis/coredevs has any objections I will submit a PR to https://github.com/algolia/docsearch-configs to change the index paths.

Metadata

Metadata

Assignees

Labels

searchsite search, SEO

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions