We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3199db8 commit 5e5ac74Copy full SHA for 5e5ac74
sphinx_copybutton/_static/copybutton.js_t
@@ -44,7 +44,12 @@ if( document.documentElement.lang !== undefined
44
locale = document.documentElement.lang
45
}
46
47
-const path_static = `${DOCUMENTATION_OPTIONS.URL_ROOT}_static/`;
+let doc_url_root = DOCUMENTATION_OPTIONS.URL_ROOT;
48
+if (doc_url_root == '#') {
49
+ doc_url_root = '';
50
+}
51
+
52
+const path_static = `${doc_url_root}_static/`;
53
54
/**
55
* Set up copy/paste for code blocks
0 commit comments