From 51b77b2b8505f818a23826e10ceb7810224b5272 Mon Sep 17 00:00:00 2001 From: FFFrog Date: Mon, 4 Nov 2024 20:52:40 +0800 Subject: [PATCH] add rst_epilog --- _static/statistics.js | 7 ------- conf.py | 10 +++++++++- 2 files changed, 9 insertions(+), 8 deletions(-) delete mode 100644 _static/statistics.js diff --git a/_static/statistics.js b/_static/statistics.js deleted file mode 100644 index a9916e4..0000000 --- a/_static/statistics.js +++ /dev/null @@ -1,7 +0,0 @@ -var _hmt = _hmt || []; -(function() { - var hm = document.createElement("script"); - hm.src = "https://hm.baidu.com/hm.js?102ee21b68fd0e419aa031b4b9645cb5"; - var s = document.getElementsByTagName("script")[0]; - s.parentNode.insertBefore(hm, s); -})(); diff --git a/conf.py b/conf.py index fe0ce5b..c501193 100644 --- a/conf.py +++ b/conf.py @@ -65,7 +65,15 @@ # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ['_static'] +# Add the html to the end of every rst. +rst_epilog = """ +.. raw:: html + +""" + def setup(app): app.add_css_file('custom.css') app.add_js_file('package_info.js') - app.add_js_file('statistics.js')