Skip to content

Docs search doesn't include top level ToC entries in results #2244

@patrick-east

Description

@patrick-east

Expected Behavior

If I search for "Kubernetes" in the search bar on https://www.openpolicyagent.org/docs/latest/ I would like to see the "intro" for the "KUBERNETES" ToC entry like https://www.openpolicyagent.org/docs/latest/kubernetes-introduction/

Actual Behavior

Instead I get links for things mid-way through that section of the docs:

image

That first entry of "Kubernetes" goes to
image

Additional Info

This might require some tweaking for the generated HTML content as well as potentially the configuration in https://github.com/algolia/docsearch-configs/blob/master/configs/openpolicyagent.json to get those top level toc sections to be searchable.

A maybe more simple thing would be to make each of those sections we want searchable to have a like top level intro page with a big ol <h1> header with the name.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions