From eac2068844bf9951d73c64ef0b57ccf2676273ae Mon Sep 17 00:00:00 2001 From: Muhammad Haroon Date: Mon, 20 Oct 2025 09:02:30 +0500 Subject: [PATCH 1/2] add layout file and logo --- _static/logo.svg | 709 +++++++++++++++++++++++++++++++++++++++++ _templates/layout.html | 172 ++++++++++ 2 files changed, 881 insertions(+) create mode 100644 _static/logo.svg create mode 100644 _templates/layout.html diff --git a/_static/logo.svg b/_static/logo.svg new file mode 100644 index 0000000..dec7a95 --- /dev/null +++ b/_static/logo.svg @@ -0,0 +1,709 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/_templates/layout.html b/_templates/layout.html new file mode 100644 index 0000000..cd612ab --- /dev/null +++ b/_templates/layout.html @@ -0,0 +1,172 @@ +{% extends "classic/layout.html" %} + +{%- macro relbar() %} +{# modified from sphinx/themes/basic/layout.html #} + +{%- endmacro %} + +{%- macro searchbox() %} +{# modified from sphinx/themes/basic/searchbox.html #} + {%- if builder != "htmlhelp" %} + + {%- endif %} +{%- endmacro %} + +{%- macro themeselector() %} + +{%- endmacro %} + +{% block relbar1 %} {% if builder != 'qthelp' %} {{ relbar() }} {% endif %} {% endblock %} +{% block relbar2 %} {% if builder != 'qthelp' %} {{ relbar() }} {% endif %} {% endblock %} + +{%- block extrahead -%} + + + {%- if builder != "htmlhelp" %} + {%- if not embedded %} + + + + + {%- endif -%} + {%- endif -%} + {{ super() }} +{%- endblock -%} + +{%- block css -%} + + {{ super() }} +{%- endblock -%} + +{%- block body_tag %} +{{ super() }} +{%- if builder != 'htmlhelp' %} +
+ + + +
+{% endif -%} +{% endblock %} + +{% block footer %} + +{% endblock %} \ No newline at end of file From 45d5598b14b917b08d2f7d69497e7eeae9085792 Mon Sep 17 00:00:00 2001 From: Muhammad Haroon Date: Mon, 20 Oct 2025 09:45:07 +0500 Subject: [PATCH 2/2] fix title and remove navbar link --- _templates/layout.html | 4 ++-- conf.py | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/_templates/layout.html b/_templates/layout.html index cd612ab..cb353ce 100644 --- a/_templates/layout.html +++ b/_templates/layout.html @@ -20,11 +20,11 @@

{{ _('Navigation') }}

-
  • + {%- endblock %} {%- for parent in parents %}
  • diff --git a/conf.py b/conf.py index d824a20..e4eab3d 100644 --- a/conf.py +++ b/conf.py @@ -27,3 +27,6 @@ html_theme = 'python_docs_theme' html_sidebars = {} html_static_path = ['_static'] + +html_title = "" +html_short_title = ""