-
Notifications
You must be signed in to change notification settings - Fork 298
Description
Describe the bug
When using the language tabs are configured in a different order than shown in customization, the tabs seem to no longer switch properly between languages anymore.
Expected behavior
The language to update when switching between language tabs.
Current behavior
Language gets stuck on a language and does not load the language of the currently selected tab.
Steps to reproduce
Adding the following languageTabs to the themeConfig will cause the language to render as intended.
languageTabs: [ { highlight: "bash", language: "curl", logoClass: "bash", }, { highlight: "python", language: "python", logoClass: "python", variant: "requests", }, { highlight: "go", language: "go", logoClass: "go", }, { highlight: "javascript", language: "nodejs", logoClass: "nodejs", variant: "axios", }, { highlight: "php", language: "php", logoClass: "php", } ],
However, when changing the position of PHP language (or any other language), causes the tabs to no longer function properly.
languageTabs: [ { highlight: "bash", language: "curl", logoClass: "bash", }, { highlight: "php", language: "php", logoClass: "php", }, { highlight: "python", language: "python", logoClass: "python", variant: "requests", }, { highlight: "go", language: "go", logoClass: "go", }, { highlight: "javascript", language: "nodejs", logoClass: "nodejs", variant: "axios", } ],
Screenshots
Context
PHP or shell has preference within the wanted documentation, so I prefer to have it as the first two options available. This is not a huge issue in general, but would be nice to be able to do this.
Your Environment
Version used:
- docusaurus-plugin-openapi-docs: 1.7.0
- mozilla firefox for ubuntu: 111.0.1

