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
`site_url` has to end with a trailing slash, because when MkDocs processes the Jinja2 templates, it will embed a script tag into the final html:
```js
<script id="__config" type="application/json">{"base": "/some/path/4.1.1", ...}</script>
```
The JS-relevant part of mike then handles this as follows
`fetch(ABS_BASE_URL + "../versions.json")`
or, if you look at the actual js-bundle:
`new URL("../versions.json", t.base)`
And if `t.base` doesn't end with a trailing slash, the last component is completely ignored, which is obviously not what we want.
0 commit comments