Skip to content

Commit

Permalink
Fixes doc search bug and adds analytics tag (#38)
Browse files Browse the repository at this point in the history
* adding jquery to fix search bug, InstituteforDiseaseModeling/idm-content#134

* adding Google Tag Manager for analytics dashboard, InstituteforDiseaseModeling/idm-content#26

---------

Co-authored-by: Jen Schripsema <[email protected]>
JSchripsema-IDM and JSchripsema-IDM authored Jan 22, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 5bd157f commit f6191c9
Showing 2 changed files with 14 additions and 1 deletion.
12 changes: 12 additions & 0 deletions docs/_templates/page.html
Original file line number Diff line number Diff line change
@@ -4,6 +4,18 @@

{% block extrahead %}

<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-NK4K647');</script>
<!-- End Google Tag Manager -->

<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-NK4K647"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->

<link href="https://fonts.googleapis.com/css?family=Lato|Montserrat|Open+Sans" rel="stylesheet">

{% endblock %}
3 changes: 2 additions & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -9,4 +9,5 @@ myst-parser~=2.0.0
readthedocs-sphinx-search~=0.3.1
sphinx-copybutton~=0.5.2
pygithub~=1.57
sphinxext.remoteliteralinclude~=0.4.0
sphinxext.remoteliteralinclude~=0.4.0
sphinxcontrib-jquery~=4.1

0 comments on commit f6191c9

Please sign in to comment.