Skip to content

Commit 8e75d2d

Browse files
authored
FIX: review linkchecker warnings (#149)
* FIX: review linkchecker warnings * put ignore on baidu links returning 403
1 parent 561ddd1 commit 8e75d2d

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

lectures/_config.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,10 @@ sphinx:
3939
config:
4040
bibtex_reference_style: author_year
4141
# false-positive links
42-
linkcheck_ignore: ['https://doi.org/https://doi.org/10.2307/1235116', 'https://unctad.org/publication/commodities-and-development-report-2019',
43-
'https://math.stackexchange.com/*', 'https://stackoverflow.com/*']
42+
linkcheck_ignore: [
43+
'https://doi.org/https://doi.org/10.2307/1235116',
44+
'https://unctad.org/publication/commodities-and-development-report-2019',
45+
'https://math.stackexchange.com/*', 'https://stackoverflow.com/*', 'https://baike.baidu.com/*']
4446
# myst-nb config
4547
nb_render_image_options:
4648
width: 80%
@@ -126,4 +128,9 @@ sphinx:
126128
language: python3
127129
name: python3
128130
file_extension: ".py"
129-
tojupyter_images_markdown: true
131+
tojupyter_images_markdown: true
132+
nb_mime_priority_overrides: [
133+
# Link Checker
134+
['linkcheck', 'text/plain', 10],
135+
['linkcheck', 'text/html', 20],
136+
]

0 commit comments

Comments
 (0)