Skip to content

Commit a2a861c

Browse files
authored
Merge pull request #1527 from plone/linkcheck-news-volto
Fix Sphinx toctree warnings from included CHANGELOG.md
2 parents d5ba93f + 20c92c4 commit a2a861c

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ docs/volto:
5858
git submodule init; \
5959
git submodule update; \
6060
ln -s ../submodules/volto/docs/source ./docs/volto
61+
ln -s ../submodules/volto/docs/source/news ./docs/volto/news
6162
@echo
6263
@echo "Documentation of volto initialized."
6364

docs/conf.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@
9393
r"https://docs.cypress.io/guides/references/migration-guide#Migrating-to-Cypress-version-10-0", # volto
9494
# Ignore unreliable sites
9595
r"https://web.archive.org/", # volto
96+
r"https://www.youtube.com/playlist", # volto, TODO remove after installing sphinxcontrib.youtube
9697
]
9798
linkcheck_anchors = True
9899
linkcheck_timeout = 5
@@ -128,6 +129,11 @@
128129
"volto/contributing/branch-policy.md",
129130
]
130131

132+
suppress_warnings = [
133+
# "toc.excluded", # Suppress `WARNING: document isn't included in any toctree`
134+
"toc.not_readable", # Suppress `WARNING: toctree contains reference to nonexisting document 'news*'`
135+
]
136+
131137
html_js_files = ["patch_scrollToActive.js", "search_shortcut.js"]
132138

133139
html_extra_path = [

0 commit comments

Comments
 (0)