Skip to content

Commit 18c0cdf

Browse files
committed
Change pdf preview to png for chrome compatibility
1 parent 42e8e36 commit 18c0cdf

File tree

17 files changed

+27
-19
lines changed

17 files changed

+27
-19
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Our numerical algorithms produce sparse and spectrally accurate discretizations
3939
<th width="25%">
4040
<a href="https://dedalus-project.readthedocs.io/en/latest/pages/examples/ivp_1d_kdv_burgers.html">
4141
<figure>
42-
<img src="docs/pages/examples/images/kdv_burgers_preview.png">
42+
<img src="docs/pages/examples/images/kdv_burgers.png">
4343
<figcaption>KdV-Burgers equation (1D IVP)</figcaption>
4444
</figure>
4545
</a>
@@ -63,7 +63,7 @@ Our numerical algorithms produce sparse and spectrally accurate discretizations
6363
<th width="25%">
6464
<a href="https://dedalus-project.readthedocs.io/en/latest/pages/examples/lbvp_2d_poisson.html">
6565
<figure>
66-
<img src="docs/pages/examples/images/poisson_preview.png">
66+
<img src="docs/pages/examples/images/poisson.png">
6767
<figcaption>Poisson equation (2D LBVP)</figcaption>
6868
</figure>
6969
</a>

docs/conf.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,15 +183,15 @@
183183
# -- Options for nbsphinx galleries
184184
# Using _images/ is a hack to get relocated images which have been included in the pages
185185
nbsphinx_thumbnails = {
186-
'pages/examples/evp_1d_waves_on_a_string': '_images/waves_on_a_string.pdf',
187-
'pages/examples/ivp_1d_kdv_burgers': '_images/kdv_burgers.pdf',
186+
'pages/examples/evp_1d_waves_on_a_string': '_images/waves_on_a_string.png',
187+
'pages/examples/ivp_1d_kdv_burgers': '_images/kdv_burgers.png',
188188
'pages/examples/ivp_2d_rayleigh_benard': '_images/rayleigh_benard.png',
189189
'pages/examples/ivp_2d_shear_flow': '_images/shear_flow.png',
190190
'pages/examples/ivp_ball_internally_heated_convection': '_images/internally_heated_convection.png',
191191
'pages/examples/ivp_disk_libration': '_images/libration.png',
192192
'pages/examples/ivp_shell_convection': '_images/shell_convection.png',
193193
'pages/examples/ivp_sphere_shallow_water': '_images/shallow_water.png',
194-
'pages/examples/lbvp_2d_poisson': '_images/poisson.pdf',
195-
'pages/examples/nlbvp_ball_lane_emden': '_images/lane_emden.pdf',
194+
'pages/examples/lbvp_2d_poisson': '_images/poisson.png',
195+
'pages/examples/nlbvp_ball_lane_emden': '_images/lane_emden.png',
196196
}
197197

docs/pages/examples/evp_1d_waves_on_a_string.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ Script
1010
Output
1111
------
1212

13-
.. image:: images/waves_on_a_string.pdf
13+
.. image:: images/waves_on_a_string.png
1414
:width: 100 %
1515
:align: center
756 KB
Loading
80.5 KB
Loading
383 KB
Loading
45.6 KB
Loading

docs/pages/examples/ivp_1d_kdv_burgers.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ Script
1010
Output
1111
------
1212

13-
.. image:: images/kdv_burgers.pdf
13+
.. image:: images/kdv_burgers.png
1414
:width: 100 %
1515
:align: center

docs/pages/examples/lbvp_2d_poisson.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ Script
1010
Output
1111
------
1212

13-
.. image:: images/poisson.pdf
13+
.. image:: images/poisson.png
1414
:width: 100 %
1515
:align: center

docs/pages/examples/nlbvp_ball_lane_emden.rst

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22
Lane-Emden equation (ball NLBVP)
33
********************************
44

5+
Script
6+
------
7+
58
.. literalinclude:: ../../../examples/nlbvp_ball_lane_emden/lane_emden.py
69

7-
Resulting image:
10+
Output
11+
------
812

9-
.. image:: images/lane_emden.pdf
13+
.. image:: images/lane_emden.png
1014
:width: 100 %
1115
:align: center
12-

0 commit comments

Comments
 (0)