Skip to content

Multi project versioning search not working #544

@Flemmli97

Description

@Flemmli97

Currently if using a multi project setup with additionally multiple versions then search will be unavailable for all versions except latest version.

Steps to reproduce

  1. Clone this repo
  2. Use the website-multi-docs setup
  3. Run yarn docusaurus docs:version:community 1.0.0 to create a new version
  4. Append
versions: {
  current: {
    label: "current",
  },
  "1.0.0": {
    label: "1.0.0",
  },
},

to the community plugin-content-docs plugin section to add the version to the plugin
5. Add a version selection method e.g. via a navbar item

{
  type: "docsVersionDropdown",
  docsPluginId: `community`,
}
  1. Swap between the versions and see the search bar be gone for current.

hideSearchBarWithNoSearchContext: false would make it appear but search wont work cause it will not have any context

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