Skip to content

The list of search results always point to the latest documentation. Is there a way to handle search queries for multiple versions? #38

@peytondmurray

Description

@peytondmurray

I'm using sphinx-docsearch to provide search results for pydata-sphinx-theme-themed documentation. The documentation is hosted on ReadTheDocs, and we're using RTD to host multiple versions of the documentation.

When I enable sphinx-docsearch, all the results point to the latest version (i.e. https://my-docs.com/en/latest/, even if I'm searching from a different version of the docs. How do I configure sphinx-docsearch to return only results from the version of the docs I'm currently looking at?

For local development replacing the base url with relative URLs instead of the latest docs would be helpful as well.

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