Skip to content

Commit 3a8d350

Browse files
committed
Fix latex-style quoting
1 parent 2f84ad4 commit 3a8d350

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

old_link_check.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@
88
DOCS_DIR = pathlib.Path(__file__).parent / 'docs'
99
LINK_FINDER = re.compile(r'(?:version,\s+<a\s+href="(.*)">view\s+current)|(?:link\s+rel="canonical"\s+href="(.*)"\s+/>)')
1010

11+
12+
redirected = set()
13+
with open('redirects.txt', 'r') as f:
14+
for line in f:
15+
if line.startswith("#"):
16+
continue
17+
old, new = line.strip().split()
18+
redirected.add(old)
19+
1120
links = set()
1221

1322
def walk_html():
@@ -26,6 +35,10 @@ def find_links():
2635
def check_links():
2736
broken = 0
2837
for (i, link) in enumerate(links):
38+
raw_link = link.split('#')[0]
39+
if raw_link in redirected:
40+
print(f'Redirected link: {link}')
41+
continue
2942
if i % 50 == 0:
3043
# don't spam the server
3144
time.sleep(2)

src/stan-users-guide/posterior-predictive-checks.qmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ lower variance than the original data. That is, the model's not
160160
appropriately capturing the variance of the data.
161161

162162

163-
## Posterior ``p-values''
163+
## Posterior ''p-values''
164164

165165
If a model captures the data well, summary statistics such as
166166
sample mean and standard deviation, should have similar values in
@@ -176,7 +176,7 @@ $$
176176
\cdot p\left( y^{\textrm{rep}} \mid y \right)
177177
\, \textrm{d}{y^{\textrm{rep}}}.
178178
$$
179-
It is important to note that``p-values'' is in quotes because these
179+
It is important to note that ''p-values'' is in quotes because these
180180
statistics are not classically calibrated, and thus will not in
181181
general have a uniform distribution even when the model is well
182182
specified [@BayarriBerger:2000].

0 commit comments

Comments
 (0)