Skip to content

Commit

Permalink
add heap stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
rashidakanchwala committed Dec 5, 2023
1 parent c2debba commit ffa59fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/_templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
{%- block extrahead %}
<script type="text/javascript">
window.heap=window.heap||[],heap.load=function(e,t){window.heap.appid=e,window.heap.config=t=t||{};var r=document.createElement("script");r.type="text/javascript",r.async=!0,r.src="https://cdn.heapanalytics.com/js/heap-"+e+".js";var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(r,a);for(var n=function(e){return function(){heap.push([e].concat(Array.prototype.slice.call(arguments,0)))}},p=["addEventProperties","addUserProperties","clearEventProperties","identify","resetIdentity","removeEventProperty","setEventProperties","track","unsetEventProperty"],o=0;o<p.length;o++)heap[p[o]]=n(p[o])};

heap.load({{ "2164194004" | env_override }});{# 2164194004 coresponds to the Development environment #}
//inline styling for read-the-docs flyout
document.documentElement.style.setProperty('--readthedocs-flyout-font-size', '0.9em');

Expand Down
1 change: 1 addition & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,7 @@ def autodoc_process_docstring(app, what, name, obj, options, lines): # noqa: PL

remove_arrows_in_examples(lines)


def env_override(default_appid):
build_version = os.getenv("READTHEDOCS_VERSION")

Expand Down

0 comments on commit ffa59fe

Please sign in to comment.