Skip to content

Commit

Permalink
Remove unnecessary polyfill.io (#3763)
Browse files Browse the repository at this point in the history
Remove `polyfill.io`
  • Loading branch information
SukkaW authored Mar 2, 2024
1 parent dcc8e2e commit f7c2e91
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 26 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Other
promising support for versions supported by the Python core team,
Ubuntu LTS, or Debian stable, and taking into consideration
Debian oldstable and PyPy.
* Remove polyfill from `polyfill.io`.

New in v8.3.0
=============
Expand Down
8 changes: 0 additions & 8 deletions docs/manual.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1690,10 +1690,6 @@ For Mako:
.. code:: html

% if date_fanciness != 0:
%if date_fanciness == 2:
<!-- Polyfill for relative dates in Safari -- best handled with a CDN -->
<script src="https://polyfill.io/v3/polyfill.js?features=Intl.RelativeTimeFormat.%7Elocale.${luxon_locales[lang]}"></script>
%endif
<!-- required scripts -- best handled with bundles -->
<script src="/assets/js/luxon.min.js"></script>
<script src="/assets/js/fancydates.js"></script>
Expand All @@ -1712,10 +1708,6 @@ For Jinja2:
.. code:: html

{% if date_fanciness != 0 %}
{% if date_fanciness == 2 %}
<!-- Polyfill for relative dates in Safari -- best handled with a CDN -->
<script src="https://polyfill.io/v3/polyfill.js?features=Intl.RelativeTimeFormat.%7Elocale.{{ luxon_locales[lang] }}"></script>
{% endif %}
<!-- required scripts -- best handled with bundles -->
<script src="/assets/js/luxon.min.js"></script>
<script src="/assets/js/fancydates.js"></script>
Expand Down
3 changes: 0 additions & 3 deletions nikola/data/themes/base-jinja/templates/base_helper.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,6 @@ lang="{{ lang }}">
{% endif %}
{% endif %}
{% if date_fanciness != 0 %}
{% if date_fanciness == 2 %}
<script src="https://polyfill.io/v3/polyfill.js?features=Intl.RelativeTimeFormat.%7Elocale.{{ luxon_locales[lang] }}"></script>
{% endif %}
{% if use_cdn %}
<script src="https://cdn.jsdelivr.net/npm/[email protected]/build/global/luxon.min.js" integrity="sha256-Nn+JGDrq3PuTxcDfJmmI0Srj5LpfOFlKqEiPwQK7y40=" crossorigin="anonymous"></script>
{% else %}
Expand Down
3 changes: 0 additions & 3 deletions nikola/data/themes/base/templates/base_helper.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,6 @@ lang="${lang}">
% endif
% endif
% if date_fanciness != 0:
% if date_fanciness == 2:
<script src="https://polyfill.io/v3/polyfill.js?features=Intl.RelativeTimeFormat.%7Elocale.${luxon_locales[lang]}"></script>
% endif
% if use_cdn:
<script src="https://cdn.jsdelivr.net/npm/[email protected]/build/global/luxon.min.js" integrity="sha256-Nn+JGDrq3PuTxcDfJmmI0Srj5LpfOFlKqEiPwQK7y40=" crossorigin="anonymous"></script>
% else:
Expand Down
3 changes: 0 additions & 3 deletions nikola/data/themes/bootblog4-jinja/templates/base_helper.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,6 @@ lang="{{ lang }}">
{% endif %}
{% endif %}
{% if date_fanciness != 0 %}
{% if date_fanciness == 2 %}
<script src="https://polyfill.io/v3/polyfill.js?features=Intl.RelativeTimeFormat.%7Elocale.{{ luxon_locales[lang] }}"></script>
{% endif %}
{% if use_cdn %}
<script src="https://cdn.jsdelivr.net/npm/[email protected]/build/global/luxon.min.js" integrity="sha256-Nn+JGDrq3PuTxcDfJmmI0Srj5LpfOFlKqEiPwQK7y40=" crossorigin="anonymous"></script>
{% else %}
Expand Down
3 changes: 0 additions & 3 deletions nikola/data/themes/bootblog4/templates/base_helper.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,6 @@ lang="${lang}">
%endif
%endif
%if date_fanciness != 0:
%if date_fanciness == 2:
<script src="https://polyfill.io/v3/polyfill.js?features=Intl.RelativeTimeFormat.%7Elocale.${luxon_locales[lang]}"></script>
%endif
%if use_cdn:
<script src="https://cdn.jsdelivr.net/npm/[email protected]/build/global/luxon.min.js" integrity="sha256-Nn+JGDrq3PuTxcDfJmmI0Srj5LpfOFlKqEiPwQK7y40=" crossorigin="anonymous"></script>
%else:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,6 @@ lang="{{ lang }}">
{% endif %}
{% endif %}
{% if date_fanciness != 0 %}
{% if date_fanciness == 2 %}
<script src="https://polyfill.io/v3/polyfill.js?features=Intl.RelativeTimeFormat.%7Elocale.{{ luxon_locales[lang] }}"></script>
{% endif %}
{% if use_cdn %}
<script src="https://cdn.jsdelivr.net/npm/[email protected]/build/global/luxon.min.js" integrity="sha256-Nn+JGDrq3PuTxcDfJmmI0Srj5LpfOFlKqEiPwQK7y40=" crossorigin="anonymous"></script>
{% else %}
Expand Down
3 changes: 0 additions & 3 deletions nikola/data/themes/bootstrap4/templates/base_helper.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,6 @@ lang="${lang}">
%endif
%endif
%if date_fanciness != 0:
%if date_fanciness == 2:
<script src="https://polyfill.io/v3/polyfill.js?features=Intl.RelativeTimeFormat.%7Elocale.${luxon_locales[lang]}"></script>
%endif
%if use_cdn:
<script src="https://cdn.jsdelivr.net/npm/[email protected]/build/global/luxon.min.js" integrity="sha256-Nn+JGDrq3PuTxcDfJmmI0Srj5LpfOFlKqEiPwQK7y40=" crossorigin="anonymous"></script>
%else:
Expand Down

0 comments on commit f7c2e91

Please sign in to comment.