Skip to content

Commit 5830bb6

Browse files
committed
docs: revert image issue
1 parent 0539c98 commit 5830bb6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/generate_papers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@
3737
image_file = paper["image"]
3838

3939
if image_file.startswith("http"):
40-
image_url = image_file
40+
absolute_image_file = image_file
4141
else:
42-
image_url = f"./images/{image_file}"
42+
absolute_image_file = f"/images/{image_file}"
4343

4444
# Begin:
4545
paper_snippet = f"""
4646
4747
<div style="text-align: center; margin: 2rem 0;">
48-
<img src="{image_url}" alt="{title}" style="max-width: 500px; width: 100%; height: auto; margin: 0 auto; display: block;">
48+
<img src="{absolute_image_file}" alt="{title}" style="max-width: 500px; width: 100%; height: auto; margin: 0 auto; display: block;">
4949
<h2 style="margin-top: 1rem;">
5050
<a href="{link}">{title}</a>
5151
</h2>

docs/src/examples.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ plt.show()
7575

7676
Which gives us:
7777

78-
![Truth vs Prediction](./images/example_plot.png)
78+
![Truth vs Prediction](/images/example_plot.png)
7979

8080
We may also plot the output of a particular expression
8181
by passing the index of the expression to `predict` (or

0 commit comments

Comments
 (0)