You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
... the problem doesn't occur with the mkdocs or readthedocs themes
... the problem persists when all overrides are removed, i.e. custom_dir, extra_javascript and extra_css
... the documentation does not mention anything about my problem
... there are no open or closed issues that are related to my problem
Description
The following change breaks the version selector as the URL for versions.json now resolves within the version directory /v1.0.0/versions.json instead of the root of the host /versions.json.
Background for this change: MkDocs changed how the documentation is served locally. As of version 1.2.2, MkDocs always prepends the path of the site_url, e.g. for asite_url of squidfunk.github.io/mkdocs-material/ the serve URL is localhost:8000/mkdocs-material/. Previously, this was localhost:8000. This led to the necessity of the change, but versions should clearly continue working.
Does this also happen with the non-Insiders version?
Thanks again for reporting. As I explained, it was due to a MkDocs change that had some unanticipated consequences. The community edition was also affected, and it was fixed in a855133 and a4ccbbb. Insiders had some more trouble with the "stay on page while switching versions" behavior, which were also fixed. I'll issue a release of both editions in a few minutes.
Contribution guidelines
I've found a bug and checked that ...
mkdocs
orreadthedocs
themescustom_dir
,extra_javascript
andextra_css
Description
The following change breaks the version selector as the URL for
versions.json
now resolves within the version directory/v1.0.0/versions.json
instead of the root of the host/versions.json
.https://github.com/squidfunk/mkdocs-material-insiders/blame/f80b15d5805d37428307cf7f9eebf1ef3275b47a/src/assets/javascripts/_/index.ts#L105
Expected behaviour
The version selector should work as the
versions.json
should be retrieved from the root instead of the version-specific path.Actual behaviour
The version selector does not work as the attempt to retrieve the versions.json file fails.
Steps to reproduce
Package versions
Configuration
System information
The text was updated successfully, but these errors were encountered: