Skip to content

Commit

Permalink
Merge branch 'main' into interface-migrate
Browse files Browse the repository at this point in the history
  • Loading branch information
zakstucke authored Oct 18, 2023
2 parents b642a6e + 9021448 commit c599894
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/assets/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!-- MANUAL: add this directly to the docs-site branch where its needed -->
<!-- This currently always redirects to the latest version which isn't ideal, but should be sorted eventually as the issue is recent -->
<!-- (the solution in the issue hardcodes the versions which isn't worth it) -->
<!-- https://github.com/jimporter/mike/issues/72 -->

<script>
const defaultVersion = "latest";
const basePath = "watz-py";
const targetRedirectPath = "404"; // path to redirect to, relative to basePath

window.location.href = `/${basePath}/${defaultVersion}/${targetRedirectPath}`;
</script>
Binary file removed docs/assets/images/watz-py-0.0.1.zip
Binary file not shown.
6 changes: 6 additions & 0 deletions docs/overrides/main.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{% extends "base.html" %} {% block outdated %} You're not viewing the latest
version.
<a href="{{ '../' ~ base_url }}">
<strong>Click here to go to latest.</strong>
</a>
{% endblock %}
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ extra_css:

theme:
name: "material"
custom_dir: docs/overrides
features:
- navigation.instant
- navigation.instant.progress
Expand Down

0 comments on commit c599894

Please sign in to comment.