Skip to content

Commit

Permalink
docs: fix a Sphinx deprecation warning
Browse files Browse the repository at this point in the history
 * Handling of javascript mods for the html changed, wasn't going to
   work in 3.0. Basically copied fix from
   readthedocs/sphinx_rtd_theme#728
 * This was used for the "hide prompts" feature in example code.
   New version still works in 1.6, but no longer in 1.5 or earlier.
   Docs still render fine, just don't have the "hide" button, so this
   is okay.
  • Loading branch information
jtniehof authored and dnadeau-lanl committed Nov 22, 2021
1 parent 3f89ceb commit 9aa6a8b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/_templates/layout.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{% extends "!layout.html" %}

{% set script_files = script_files + ["_static/copybutton.js"] %}
{%- block scripts %}
{{ super() }}
<script type="text/javascript" src="{{ pathto('_static/copybutton.js', 1) }}"></script>

{%- endblock %}

{% block rootrellink %}
<li><a href="{{ pathto('search') }}">search</a>|&nbsp;</li>
Expand Down

0 comments on commit 9aa6a8b

Please sign in to comment.