- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add mike alias name to version selector #6436
Comments
Thanks for suggesting. We can investigate this reasonable feature request in the future. |
Added in cc398dd. There's a new setting in extra:
version:
provider: mike
alias: true Here's how it looks: I tried to make the styles as less opinionated as possible. If you wish to customize them, it's easy with some additional CSS. For example, if you want to add .md-version__alias::before {
display: inherit;
content: "(";
}
.md-version__alias::after {
display: inherit;
content: ")";
} You can also change the style by playing with |
Released as part of 9.5.23. |
Context
I searched through the documentationa nd previous issues and couldn't find anything, hopefully I didn't miss anything.
Description
Currently the version selector shows the identifiers for the documentation versions deployed with
mike
. If it's not difficult to implement, I would suggest adding a toggle to allow displaying the alias for a version in parentheses in the version selector. Example:Related links
Use Cases
This would provide clarity when documentation for the development branch is available, so that the user understands why the default version served is not the highest version number.
Visuals
No response
Before submitting
The text was updated successfully, but these errors were encountered: