Skip to content

Commit

Permalink
modifies a filename
Browse files Browse the repository at this point in the history
  • Loading branch information
ubaskota committed Dec 5, 2024
1 parent 6e63cb3 commit f7082cc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/_templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@

{#- Theme-related stylesheets -#}
{%- block theme_styles %}
{% include "_head_css_variables.html" with context %}
{% include "head_css_variables.html" with context %}
{%- endblock -%}

{%- block extra_styles %}
Expand Down
13 changes: 13 additions & 0 deletions docs/source/_templates/head_css_variables.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{#
This is where user-provided CSS variables get converted into actual values.
#}
{% macro declare_css_variables(user_customisations, pygments_theme) -%}
<link rel="stylesheet" href="{{ pathto('../_static/css/dark_light_mode.css', 1) }}">
--color-code-background: {{ pygments_theme.background }};
--color-code-foreground: {{ pygments_theme.foreground }};
{% if user_customisations -%}
{% for name, value in user_customisations.items() -%}
--{{ name }}: {{ value }};
{% endfor %}
{%- endif %}
{%- endmacro %}

0 comments on commit f7082cc

Please sign in to comment.