From 4106ff080bcabfa2afddb496a9da9f852f4228e8 Mon Sep 17 00:00:00 2001 From: mostafaei2002 Date: Tue, 14 May 2024 10:11:07 +0330 Subject: [PATCH] feat: add search modal --- docs_theme/main.html | 287 +++++++++++++++++++++++++------------------ docs_theme/nav.html | 11 +- 2 files changed, 174 insertions(+), 124 deletions(-) diff --git a/docs_theme/main.html b/docs_theme/main.html index e83c135d5..210fa720b 100644 --- a/docs_theme/main.html +++ b/docs_theme/main.html @@ -1,86 +1,126 @@ + + + + + {% if page.title %}{{ page.title }} - {% endif %}{{ config.site_name }} + + + + + + - - - - {% if page.title %}{{ page.title }} - {% endif %}{{ config.site_name }} - - - - - - - - + - - + - + (function () { + var ga = document.createElement("script"); + ga.type = "text/javascript"; + ga.async = true; + ga.src = + ("https:" == document.location.protocol + ? "https://ssl" + : "http://www") + ".google-analytics.com/ga.js"; + var s = document.getElementsByTagName("script")[0]; + s.parentNode.insertBefore(ga, s); + })(); + - - - + #sidebarInclude a.promo { + color: black; + } + @media (max-width: 767px) { + div.promo { + display: none; + } + } + + + +
+ {% include "nav.html" %} -
- {% include "nav.html" %} +
+
+ - -
-

Documentation built with MkDocs. -

-
- - - - + - + - + - {% for path in config.extra_javascript %} - - {% endfor %} + {% for path in config.extra_javascript %} + + {% endfor %} - - + // Dynamically force sidenav/dropdown to no higher than browser window + $(".side-nav, .dropdown-menu").css( + "max-height", + window.innerHeight - 130 + ); + + $(function () { + $(window).resize(function () { + $(".side-nav, .dropdown-menu").css( + "max-height", + window.innerHeight - 130 + ); + }); + }); + + diff --git a/docs_theme/nav.html b/docs_theme/nav.html index 4e83c14af..203470c68 100644 --- a/docs_theme/nav.html +++ b/docs_theme/nav.html @@ -140,15 +140,16 @@ {% endif %}