Skip to content

Commit 8412475

Browse files
committed
Fix EPUB
1 parent ba2b258 commit 8412475

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

Doc/conf.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,12 @@
436436

437437
epub_author = 'Python Documentation Authors'
438438
epub_publisher = 'Python Software Foundation'
439-
epub_exclude_files = ('index.xhtml', 'download.xhtml')
439+
epub_exclude_files = (
440+
'index.xhtml',
441+
'download.xhtml',
442+
'_static/tachyon-example-flamegraph.html',
443+
'_static/tachyon-example-heatmap.html',
444+
)
440445

441446
# index pages are not valid xhtml
442447
# https://github.com/sphinx-doc/sphinx/issues/12359

Doc/library/profiling.sampling.rst

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,10 @@ an interactive flame graph visualization::
796796
The flame graph visualization shows call stacks as nested rectangles, with
797797
width proportional to time spent. The sidebar displays runtime statistics,
798798
GIL metrics, and hotspot functions.
799-
:download:`Try the interactive example </_static/tachyon-example-flamegraph.html>`.
799+
800+
.. only:: html
801+
802+
`Try the interactive example <../_static/tachyon-example-flamegraph.html>`__.
800803

801804
If no output file is specified, the profiler generates a filename based on
802805
the process ID (for example, ``flamegraph.12345.html``).
@@ -952,7 +955,10 @@ can be expanded to show which bytecode instructions consumed time:
952955
Expanding a hot line reveals the bytecode instructions executed, including
953956
specialized variants. The panel shows sample counts per instruction and the
954957
overall specialization percentage for the line.
955-
:download:`Try the interactive example </_static/tachyon-example-heatmap.html>`.
958+
959+
.. only:: html
960+
961+
`Try the interactive example <../_static/tachyon-example-heatmap.html>`__.
956962

957963
Heatmaps are especially useful when you know which file contains a performance
958964
issue but need to identify the specific lines. Many developers prefer this

0 commit comments

Comments
 (0)