Skip to content

Commit 6dae0ec

Browse files
committed
regression test
1 parent 41fe048 commit 6dae0ec

File tree

6 files changed

+105
-0
lines changed

6 files changed

+105
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
_site/
2+
.quarto
3+
/.quarto/
4+
*jupyter_cache/
5+
*.jupyter_cache*
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
project:
2+
type: website
3+
4+
website:
5+
title: "today"
6+
open-graph: true
7+
page-footer:
8+
center: |
9+
Footer image:
10+
[![](/profile.jpg)](https://quarto.org/)
11+
navbar:
12+
left:
13+
- href: index.qmd
14+
text: Home
15+
- posts.qmd
16+
17+
format:
18+
html:
19+
theme: cosmo
20+
toc: true
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: "Home"
3+
listing:
4+
contents:
5+
- "posts.qmd"
6+
type: grid
7+
sort: false
8+
---
9+
10+
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
title: "Listing Example"
3+
listing:
4+
contents: posts
5+
---
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
date: '2024-07-20T20:47:56-04:00'
3+
title: "Yes, opengraph image"
4+
_quarto:
5+
tests:
6+
html:
7+
ensureFileRegexMatches:
8+
-
9+
- '\<meta property="og:image" content="index_files'
10+
- []
11+
---
12+
13+
Testing images.
14+
15+
```{python}
16+
# | label: fig-polar
17+
# | fig-cap: "A line plot on a polar axis"
18+
# | classes: preview-image
19+
20+
21+
import numpy as np
22+
import matplotlib.pyplot as plt
23+
24+
r = np.arange(0, 2, 0.01)
25+
theta = 2 * np.pi * r
26+
fig, ax = plt.subplots(
27+
subplot_kw = {'projection': 'polar'}
28+
)
29+
ax.plot(theta, r)
30+
ax.set_rticks([0.5, 1, 1.5, 2])
31+
ax.grid(True)
32+
plt.show()
33+
```
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
date: '2024-07-20T20:47:56-04:00'
3+
title: "This has no ogimage"
4+
_quarto:
5+
tests:
6+
html:
7+
ensureFileRegexMatches:
8+
-
9+
- '\<meta property="og:image" content="index_files'
10+
- []
11+
---
12+
13+
Testing images.
14+
15+
```{python}
16+
#| label: fig-polar
17+
#| fig-cap: "A line plot on a polar axis"
18+
19+
20+
import numpy as np
21+
import matplotlib.pyplot as plt
22+
23+
r = np.arange(0, 2, 0.01)
24+
theta = 2 * np.pi * r
25+
fig, ax = plt.subplots(
26+
subplot_kw = {'projection': 'polar'}
27+
)
28+
ax.plot(theta, r)
29+
ax.set_rticks([0.5, 1, 1.5, 2])
30+
ax.grid(True)
31+
plt.show()
32+
```

0 commit comments

Comments
 (0)