mkdocs-material: Version selector missing

I’ve found a bug and checked that …

  • … the problem doesn’t occur with the default MkDocs template
  • … the problem is not in any of my customizations (CSS, JS, template)
  • … the documentation does not mention anything about my problem
  • … there are no open or closed issues that are related to my problem

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.

image

Expected behavior

There should be a version selector.

Actual behavior

There is none.

Steps to reproduce the bug

pip install mike
git clone https://github.com/squidfunk/mkdocs-material-example-versioning.git`
cd mkdocs-material-example-versioning
mike deploy --update-aliases 0.1 latest
mike set-default latest
mike deploy --update-aliases 0.2 latest
mike serve
# or
mkdocs serve

Package versions

  • Python: 3.9.1
  • MkDocs: 1.1.2
  • Material: 6.2.8

Project configuration

# Project information
site_name: My Docs
site_url: https://squidfunk.github.io/mkdocs-material-example-versioning/
site_author: Martin Donath

# Repository
repo_name: squidfunk/mkdocs-material-example-versioning
repo_url: https://github.com/squidfunk/mkdocs-material-example-versioning
edit_uri: ""

# Configuration
theme:
  name: material

# Customization
extra:
  version:
    method: mike

System information

  • OS: Windows 10

  • Browser: Chrome

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 15 (7 by maintainers)

Most upvoted comments

Thanks for checking. Indeed. The path to versions.json seems corrupt:

GET https://squidfunk.github.io/versions.json 404

I’ll investigate.

Well, you were right sir! 😃 Tried another browser and it worked fine. I don’t have any issue then. 😃 Thanks!

This sounds like a caching issue. As you can see from our versioning example, the index.html at the root of your documentation should just be a small HTML file with a redirect to latest. It’s a better idea to ask the maintainer of mike.

Thanks a lot @squidfunk! You just made my day 😃 I’ll close this issue now.