summaryrefslogtreecommitdiffstats
path: root/_static/doctools.js
diff options
context:
space:
mode:
Diffstat (limited to '_static/doctools.js')
-rw-r--r--_static/doctools.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/_static/doctools.js b/_static/doctools.js
index 8cbf1b16..e509e483 100644
--- a/_static/doctools.js
+++ b/_static/doctools.js
@@ -4,7 +4,7 @@
*
* Sphinx JavaScript utilities for all documentation.
*
- * :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
+ * :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/
@@ -264,6 +264,9 @@ var Documentation = {
hideSearchWords : function() {
$('#searchbox .highlight-link').fadeOut(300);
$('span.highlighted').removeClass('highlighted');
+ var url = new URL(window.location);
+ url.searchParams.delete('highlight');
+ window.history.replaceState({}, '', url);
},
/**