diff --git a/mkdocs/docs/css/custom.css b/mkdocs/docs/css/custom.css new file mode 100644 index 00000000..02a29ee4 --- /dev/null +++ b/mkdocs/docs/css/custom.css @@ -0,0 +1,38 @@ +.popup { + display: none; + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + background-color: rgba(0,0,0,0.5); + z-index: 1000; + } + + .popup-content { + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + padding: 20px; + background-color: #fff; + box-shadow: 0px 0px 10px rgba(0,0,0,0.2); + } + + .close-btn { + position: absolute; + top: 5px; + right: 10px; + font-size: 25px; + cursor: pointer; + } + + .visit-btn { + display: inline-block; + padding: 10px 20px; + background-color: #007BFF; + color: #fff; + text-decoration: none; + border-radius: 5px; + margin-top: 20px; + } \ No newline at end of file diff --git a/mkdocs/docs/js/custom.js b/mkdocs/docs/js/custom.js new file mode 100644 index 00000000..e3c48598 --- /dev/null +++ b/mkdocs/docs/js/custom.js @@ -0,0 +1,10 @@ +window.onload = function() { + setTimeout(function() { + document.getElementById('newVersionPopup').style.display = 'block'; + }, 5000); // Show popup after 5 seconds. Adjust the time as needed. + } + + function closePopup() { + document.getElementById('newVersionPopup').style.display = 'none'; + } + \ No newline at end of file diff --git a/mkdocs/mkdocs.yml b/mkdocs/mkdocs.yml index 249d4952..be46af36 100644 --- a/mkdocs/mkdocs.yml +++ b/mkdocs/mkdocs.yml @@ -160,3 +160,11 @@ extra: analytics: provider: custom property: GTM-5TKTB44 + +extra_css: + - css/custom.css + +extra_javascript: + - js/custom.js + + diff --git a/mkdocs/overrides/main.html b/mkdocs/overrides/main.html index 58489816..aca62602 100644 --- a/mkdocs/overrides/main.html +++ b/mkdocs/overrides/main.html @@ -9,5 +9,5 @@ {% endblock %} {% block announce %} -

This Documentation website is currently being revamped. New docs are in the making and will be released soon!

+

This Documentation website is outdated. Check the current docs here.

{% endblock %} diff --git a/mkdocs/overrides/partials/comments.html b/mkdocs/overrides/partials/comments.html new file mode 100644 index 00000000..34c39004 --- /dev/null +++ b/mkdocs/overrides/partials/comments.html @@ -0,0 +1,7 @@ + \ No newline at end of file diff --git a/mkdocs/py b/mkdocs/py new file mode 100644 index 00000000..e69de29b