Skip to content

Commit 65048f0

Browse files
committed
Fix epub export issue
Include the JS and CSS files in the Sphinx extension to make sure Sphinx properly includes these when producing all output types.
1 parent 6535df5 commit 65048f0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
<link rel="stylesheet" href="../_static/profiling-sampling-visualization.css" />
21
<div id="sampling-profiler-viz" class="sampling-profiler-viz"></div>
3-
<script src="../_static/profiling-sampling-visualization.js"></script>

Doc/tools/extensions/profiling_trace.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ def inject_trace(app, exception):
156156

157157
def setup(app):
158158
app.connect('build-finished', inject_trace)
159+
app.add_js_file('profiling-sampling-visualization.js')
160+
app.add_css_file('profiling-sampling-visualization.css')
159161

160162
return {
161163
'version': '1.0',

0 commit comments

Comments
 (0)