Skip to content

Commit

Permalink
add rst_epilog
Browse files Browse the repository at this point in the history
  • Loading branch information
FFFrog committed Nov 4, 2024
1 parent 932a70e commit 51b77b2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
7 changes: 0 additions & 7 deletions _static/statistics.js

This file was deleted.

10 changes: 9 additions & 1 deletion conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
<script>
// 在这里插入您的 JavaScript 代码
console.log("JavaScript inserted at the top of each page");
</script>
"""

def setup(app):
app.add_css_file('custom.css')
app.add_js_file('package_info.js')
app.add_js_file('statistics.js')

0 comments on commit 51b77b2

Please sign in to comment.