Skip to content

Commit

Permalink
Add creator hint to logo and fix favicon (#442)
Browse files Browse the repository at this point in the history
The favicon for the new logo added in
#440 was broken.
This fixes the favicon and update the docs with link to the logo
creator.
  • Loading branch information
alexander-schranz authored Oct 10, 2024
1 parent 672a2b2 commit dea7d43
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 5 deletions.
14 changes: 11 additions & 3 deletions docs/_static/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,22 @@ article table th {
font-size: 0;
display: block;
font-weight: 500;
padding-top: 12px;
}

.sidebar-brand-text::before {
content: "SEAL";
.sidebar-logo-creator {
font-size: 10px;

> a {
font-size: 1em !important;
}
}

.sidebar-brand-text-before {
font-size: 20px;
}

.sidebar-brand-text::after {
.sidebar-brand-text-after {
display: block;
content: "Search Engine Abstraction Layer";
padding-top: 6px;
Expand Down
Binary file modified docs/_static/icons/favicon.ico
Binary file not shown.
28 changes: 28 additions & 0 deletions docs/_templates/sidebar/brand.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<div class="sidebar-brand{% if logo %} centered{% endif %}" href="{{ pathto(master_doc) }}">
{%- block brand_content -%}
{%- if logo_url %}
<a href="{{ pathto(master_doc) }}" class="sidebar-logo-container">
<img class="sidebar-logo" src="{{ logo_url }}" alt="Logo"/>
</a>
{%- endif %}
{%- if theme_light_logo and theme_dark_logo %}
<a href="{{ pathto(master_doc) }}" class="sidebar-logo-container">
<img class="sidebar-logo only-light" src="{{ pathto('_static/' + theme_light_logo, 1) }}" alt="Light Logo"/>
<img class="sidebar-logo only-dark" src="{{ pathto('_static/' + theme_dark_logo, 1) }}" alt="Dark Logo"/>
</a>
{%- endif %}

{% if logo_url or (theme_light_logo and theme_dark_logo) %}
<span class="sidebar-logo-creator centered">
<span>Logo created by</span> <a target="_blank" href="https://cargocollective.com/meinewilma">Mein Wilma</a>
</span>
{%- endif %}

{% if not theme_sidebar_hide_name %}
<span class="sidebar-brand-text">
<span class="sidebar-brand-text-before">SEAL</span>
<span class="sidebar-brand-text-after">Search Engine Abstraction Layer</span>
</span>
{%- endif %}
{%- endblock brand_content -%}
</div>
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
project = 'SEAL'
copyright = '2023, Alexander Schranz'
author = 'Alexander Schranz'
release = '0.3'
release = '0.6'
html_title = 'SEAL Documentation'
html_short_title = 'SEAL'
html_favicon = '_static/icons/favicon.ico'
Expand All @@ -19,7 +19,7 @@
"display_github": True, # Integrate GitHub
"github_user": "schranz-search", # Username
"github_repo": "schranz-search", # Repo name
"github_version": "0.3", # Version
"github_version": "0.6", # Version
"conf_py_path": "/docs/", # Path in the checkout to the docs root
}

Expand Down

0 comments on commit dea7d43

Please sign in to comment.