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
Version selector missing #2347
Version selector missing #2347
Comments
Thanks for reporting! The README wasn't up to date, so it's probably related to the fact that Before: extra:
version:
method: mike Now: extra:
version:
provider: mike I also updated the documentation in the linked repo to reflect that change. |
Hi there. Thanks a lot for getting back so quickly :) So I've also tried |
Thanks for checking. Indeed. The path to
I'll investigate. |
Fixed in f40112e – the version selector URL was not correct. Thanks again for reporting, so we can flesh out those bugs stemming from the major rewrite so quickly 😊 The versioning example is redeployed with the latest |
Thanks a lot @squidfunk! You just made my day 😃 I'll close this issue now. |
@squidfunk I'm having the same bug in 8.4.2 in the newest release. |
@Skier23 can't reproduce. If I follow the steps in https://github.com/squidfunk/mkdocs-material-example-versioning, everything works as expected. I just redeployed it with 8.4.2: |
I'm getting these errors in the console as well: |
Again, I'm not able to reproduce it. Please check your setup and environment, and make sure that |
I have kinda the same issue running mike 1.1.2 and material 8.5.6 and I have followed every step on the material site and mike's own site. To push a version with an alias to GitHub works fine and a subfolder with the version is uploaded. If i go to my site https://site.github.io/docs there is no version dropdown, but when I go to https://site.github.io/docs/0.1/ or https://site.github.io/docs/latest/ there is! There seems to be something (not) going on with the redirect when you don't pass a version or alias in the url. @squidfunk, can I do something to fix this? If you navigate to https://site.github.io/docs/ you should be redirected to /latest. |
This sounds like a caching issue. As you can see from our versioning example, the |
Well, you were right sir! :) Tried another browser and it worked fine. I don't have any issue then. :) Thanks! |
Glad I could help. |
Sorry I have to bring this up again, but the reason it worked was because I had some old files in my root folder. The index.html file that you refered to does not exist in my gh-pages branch and is not deployed by mike. Is this an error from my side or has it something to do with mike? |
After some more searching I found the setting in the mike documentation. You have to run the https://github.com/jimporter/mike#setting-the-default-version |
I've found a bug and checked that ...
Description
Hi there. I'm following https://github.com/squidfunk/mkdocs-material-example-versioning and it seems that I can't create the version selector like stated in the doc.
Expected behavior
There should be a version selector.
Actual behavior
There is none.
Steps to reproduce the bug
Package versions
3.9.1
1.1.2
6.2.8
Project configuration
System information
The text was updated successfully, but these errors were encountered: