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
I'm trying to deploy an MkDocs instance to S3, using Material for MkDocs.
As I'm using S3, I followed MkDocs recommendation and set use_directory_urls to false.
I've tried to get it work on a fork of the https://github.com/mkdocs-material/example-versioning repository, deploying to GH Pages, to no avail.
When switching to a given version from a page other than root, I am redirected to the root page for that version.
I see the following logged on the browser console:
latest/:87 Uncaught TypeError: Failed to construct 'URL': Invalid URL
at latest/:87:88
(anonymous) @ latest/:87
which comes from
<divdata-md-color-scheme="default" data-md-component="outdated" hidden><asideclass="md-banner md-banner--warning"><divclass="md-banner__inner md-grid md-typeset">
You're not viewing the latest version.
<ahref="../."><strong>Click here to go to latest.</strong></a></div><script>varel=document.querySelector("[data-md-component=outdated]"),base=newURL("."),outdated=__md_get("__outdated",sessionStorage,base);!0===outdated&&el&&(el.hidden=!1)</script></aside></div>
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hey there,
I'm trying to deploy an MkDocs instance to S3, using Material for MkDocs.
As I'm using S3, I followed MkDocs recommendation and set
use_directory_urlstofalse.My current problem is that I cannot get it to stay on the same page when switching between versions. 😕
I've tried to get it work on a fork of the https://github.com/mkdocs-material/example-versioning repository, deploying to GH Pages, to no avail.
When switching to a given version from a page other than root, I am redirected to the root page for that version.
I see the following logged on the browser console:
which comes from
I'm using the following versions:
You can find the source at https://github.com/bernardomaciel-apheris/example-versioning and GH Pages deployment at https://bernardomaciel-apheris.github.io/example-versioning/.
Is this supported? Is it a bug? Or am I missing something?
Thanks in advance 🙏
Beta Was this translation helpful? Give feedback.
All reactions