From 81379a1e65a6256d13e1c8cc33ae39c45ff21809 Mon Sep 17 00:00:00 2001 From: Akshay Mestry Date: Tue, 29 Oct 2024 16:26:14 -0500 Subject: [PATCH 1/6] refactor!: update and de-tailwindize CSS Signed-off-by: Akshay Mestry --- coeus_sphinx_theme/breadcrumbs.html.jinja | 37 +- coeus_sphinx_theme/contributors.html.jinja | 122 +- coeus_sphinx_theme/footer.html.jinja | 66 +- coeus_sphinx_theme/layout.html | 171 +- coeus_sphinx_theme/navbar.html.jinja | 133 +- coeus_sphinx_theme/page.html | 33 +- coeus_sphinx_theme/previous_next.html.jinja | 16 +- coeus_sphinx_theme/sidebar.html.jinja | 40 +- coeus_sphinx_theme/static/animations.css | 47 + coeus_sphinx_theme/static/coeus.css | 1593 ++++++++----------- coeus_sphinx_theme/static/coeus.js | 15 + coeus_sphinx_theme/theme.conf | 4 +- coeus_sphinx_theme/title_hero.html.jinja | 12 +- coeus_sphinx_theme/toc.html.jinja | 14 +- 14 files changed, 1051 insertions(+), 1252 deletions(-) create mode 100644 coeus_sphinx_theme/static/animations.css diff --git a/coeus_sphinx_theme/breadcrumbs.html.jinja b/coeus_sphinx_theme/breadcrumbs.html.jinja index 30308e2..6a60a52 100755 --- a/coeus_sphinx_theme/breadcrumbs.html.jinja +++ b/coeus_sphinx_theme/breadcrumbs.html.jinja @@ -3,23 +3,26 @@ Coeus Sphinx Theme Breadcrumbs Template ======================================= Author: Akshay Mestry -Created on: Monday, August 26 2024 -Last updated on: Monday, August 26 2024 +Created on: Tuesday, October 29 2024 +Last updated on: Tuesday, October 29 2024 --> {% block breadcrumbs_section %} - {%- set separator %} -
{{ theme_breadcrumbs_separator|default("/") }}
- {%- endset %} - +{%- set separator %} +
{{ theme_breadcrumbs_separator|default('/') }}
+{%- endset %} + {% endblock breadcrumbs_section %} diff --git a/coeus_sphinx_theme/contributors.html.jinja b/coeus_sphinx_theme/contributors.html.jinja index 297e0e4..2522a0d 100755 --- a/coeus_sphinx_theme/contributors.html.jinja +++ b/coeus_sphinx_theme/contributors.html.jinja @@ -3,59 +3,81 @@ Coeus Sphinx Theme Contributors Template ======================================== Author: Akshay Mestry -Created on: Sunday, August 25 2024 -Last updated on: Friday, September 13 2024 +Created on: Tuesday, October 29 2024 +Last updated on: Tuesday, October 29 2024 --> {% block contributors_metadata %} - {%- if people %} - {%- set prefix = prefix|d("Published by") -%} - {%- set names = people | map(attribute="name") | list -%} - {%- set emails = people | map(attribute="email") | list -%} - {%- set contributors = names | length -%} - {%- set limit = limit if limit and limit > 1 and limit - 1 < contributors else 2 -%} -
-

{{ timestamp|d("Updated Today") }}

-
- {% if contributors == 1 %} - {{ prefix }} {{ names[0]|safe }} - {% elif contributors == 2 %} - {{ prefix }} {{ names[0]|safe }} and {{ names[1]|safe }} - {% else %} - {{ prefix }} {{ names[0]|safe }}, {{ names[1]|safe }} and {{ contributors - limit }} other - {% if contributors - limit == 1 %} - contributor - {% else %} - contributors - {% endif %} - - {% endif %} -
- {% for key, value in socials | dictsort %} - +{%- if people %} +{%- set prefix = prefix|d("Published by") -%} +{%- set names = people | map(attribute="name") | list -%} +{%- set emails = people | map(attribute="email") | list -%} +{%- set usernames = people | map(attribute="github") | list -%} +{%- set headshots = people | map(attribute="headshot") | list -%} +{%- set contributors = names | length -%} +{%- set limit = limit if limit and limit > 1 and limit - 1 < contributors else 2 -%} +
+

{{ timestamp|d("Updated Today") }}

+
+ {% if contributors == 1 %} + {{ prefix }} {{ names[0]|safe }} + {% elif contributors == 2 %} + {{ prefix }} {{ names[0]|safe }} and {{ names[1]|safe }} + {% else %} + {{ prefix }} {{ names[0]|safe }}, {{ names[1]|safe }} and {{ contributors - limit }} other + {% if contributors - limit == 1 %} + contributor + {% else %} + contributors + {% endif %} + + {% endif %} +
+ {% for key, value in socials | dictsort %} + + {% endfor %} + + +
+
+ +
+ {% for name in names %} +
+
+ {{ name }}'s photo +

{{ name }}

+

Email: {{ emails[loop.index0] }}

+

GitHub: {{ usernames[loop.index0] }}

- {%- endif %} + {% endfor %} +
+{%- endif %} {% endblock contributors_metadata %} diff --git a/coeus_sphinx_theme/footer.html.jinja b/coeus_sphinx_theme/footer.html.jinja index 1c20396..ee3cb97 100755 --- a/coeus_sphinx_theme/footer.html.jinja +++ b/coeus_sphinx_theme/footer.html.jinja @@ -4,46 +4,38 @@ Coeus Sphinx Theme Footer Template Author: Akshay Mestry Created on: Thursday, August 29 2024 -Last updated on: Friday, August 30 2024 +Last updated on: Tuesday, October 29 2024 --> - -