mkdocs-material
mkdocs-material copied to clipboard
Version selector is not displayed correctly after enabling showing version alias
Context
No response
Bug description
After upgrading to the latest version and enabling showing version alias, the version selector starts to displays some extra character.
Before:
Now:
Related part of mkdocs.yaml:
extra:
version:
provider: mike
alias: true
default:
- nightly
- stable
The command I use in GitHub Actions to deploy docs:
# Docs for nightly version
poetry run mike deploy --push nightly
# Docs for stable version
poetry run mike deploy --push --update-aliases ${{ steps.docs_version.outputs.docs_version }} stable
poetry run mike set-default --push stable
Related links
- Reporting a bug
- https://github.com/squidfunk/mkdocs-material/issues/6436
Reproduction
N/A
Steps to reproduce
N/A
Browser
Chrome
Before submitting
- [X] I have read and followed the bug reporting guidelines.
- [X] I have attached links to the documentation, and possibly related issues and discussions.
- [X] I assure that I have removed all customizations before submitting this bug report.
- [ ] I have attached a .zip file with a minimal reproduction using the built-in info plugin.
Thanks for reporting. Unfortunately, without a minimal reproduction, it's unclear what is causing the problem. If you could at least share your versions.json that is built by mike, it would be a start.
Apologies. Here is my version.json:
[
{
"version": "nightly",
"title": "nightly",
"aliases": []
},
{
"version": "0.4",
"title": "0.4",
"aliases": [
"stable"
]
},
{
"version": "0.3",
"title": "0.3",
"aliases": []
},
{
"version": "0.2",
"title": "0.2",
"aliases": []
},
{
"version": "0.1",
"title": "0.1",
"aliases": []
}
]
Thanks! Fixed in 407335d20.
Released as part of 9.5.24.