Skip to content

Commit

Permalink
Merge pull request #23 from IATI/use-js-cdn
Browse files Browse the repository at this point in the history
Remove header javascript as now bundled with design system
  • Loading branch information
tillywoodfield authored Nov 13, 2024
2 parents f02cc65 + 632239e commit 4bb6c4e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 70 deletions.
1 change: 0 additions & 1 deletion iati_sphinx_theme/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@ def setup(app: sphinx.application.Sphinx) -> None:
app.config["html_permalinks_icon"] = "#"
app.config["html_favicon"] = "static/favicon-16x16.png"
app.config["html_context"]["language"] = app.config["language"]
app.add_js_file("header.js")
app.add_js_file("language-switcher.js")
1 change: 1 addition & 0 deletions iati_sphinx_theme/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
{% if theme_plausible_domain %}
<script defer data-domain="{{ theme_plausible_domain }}" src="https://plausible.io/js/script.js"></script>
{% endif %}
<script src="https://cdn.jsdelivr.net/npm/iati-design-system@2.1.0/dist/js/iati.js"></script>
<style>
.iati-brand-background {
--background-image: url("{{ pathto('marque-white.svg', 1) }}");
Expand Down
69 changes: 0 additions & 69 deletions iati_sphinx_theme/static/header.js

This file was deleted.

0 comments on commit 4bb6c4e

Please sign in to comment.