Skip to content

Commit 68020e7

Browse files
authored
doc: add Adobe Analytics; upgrade Sphinx and docs environment (#1403)
1 parent 155e465 commit 68020e7

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

doc/_static/js/analytics.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
console.log("Starting analytics...");
2+
var s_code=s.t();if(s_code)document.write(s_code)

doc/conf.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,12 @@ def __getattr__(cls, name):
8484

8585
html_theme = "sphinx_rtd_theme"
8686

87-
html_static_path = []
87+
html_static_path = ["_static"]
88+
8889
htmlhelp_basename = "%sdoc" % project
8990

91+
html_js_files = ["https://a0.awsstatic.com/s_code/js/1.0/awshome_s_code.js", "js/analytics.js"]
92+
9093
# Example configuration for intersphinx: refer to the Python standard library.
9194
intersphinx_mapping = {"http://docs.python.org/": None}
9295

doc/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
sphinx==1.7.9
1+
sphinx==2.2.2
22
numpy
33
scipy
4-
requests==2.20
4+
requests==2.20

0 commit comments

Comments
 (0)