{% if site.anchor_links != nil %}
  <script src="https://cdnjs.cloudflare.com/ajax/libs/anchor-js/4.2.0/anchor.min.js"></script>
{% endif %}

{% if page.has_math == true %}
  <script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
  <script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3.0.1/es5/tex-mml-chtml.js"></script>
{% endif %}

{% if jekyll.environment == "development" %}
  <script src="{{ '/assets/js/version-selector.js' | relative_url }}"></script>
{% else %}
  <script src="{{ '/docs/latest/assets/js/version-selector.js' }}"></script>
{% endif %}
