Skip to content

Doc search should not show deprecated results #536

@ammkrn

Description

@ammkrn

Describe the bug

The search feature in the book/docs returns misleading results about deprecated versions. If I search 'startup', the first result is Startup commands (jonathandturner), which is very outdated. The URL does indicate that this is old, but that's not part of the search result, and you have to scroll to the top of the page to see the version number (and you'd already have to be a user to know that this is not the newest version).

Thank you.

How to reproduce

Navigate to https://www.nushell.sh/ and search for startup

Expected behavior

I guess the expectation is that the search function would only draw from docs that are current relative to the latest version.

Screenshots

No response

Configuration

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions