Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ linkcheck: dev ## Check links

.PHONY: linkcheckbroken
linkcheckbroken: dev ## Run linkcheck and show only broken links
cd $(DOCS_DIR) && $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck | GREP_COLORS='0;31' grep -wi "broken\|redirect" --color=always | GREP_COLORS='0;31' grep -vi "https://github.com/plone/volto/issues/" --color=always && if test $$? = 0; then exit 1; fi || test $$? = 1
cd $(DOCS_DIR) && $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck | GREP_COLORS='0;31' grep -wi "broken\|redirect" --color=always | GREP_COLORS='0;31' grep -vi "https://github.com/sphinx-contrib/httpdomain/issues/" --color=always && if test $$? = 0; then exit 1; fi || test $$? = 1
@echo
@echo "Link check complete; look for any errors in the above output " \
"or in $(BUILDDIR)/linkcheck/ ."
Expand Down
2 changes: 2 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,4 +291,6 @@
linkcheck_ignore = [
# Don't check old links to Bitbucket
r'^https://bitbucket\.org/birkenfeld/sphinx-contrib/(issues|pull-requests)/\d+/', # noqa: E501
# The following site has imposed 403 forbidden responses, link is valid
'https://datatracker.ietf.org/doc/html/',
]
2 changes: 1 addition & 1 deletion src/sphinxcontrib/httpdomain/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class IETFRef(DocRef):
"""Represents a reference to the specific IETF RFC."""

def __init__(self, rfc, section):
url = 'https://www.rfc-editor.org/rfc/rfc{0:d}'.format(rfc)
url = 'https://www.rfc-editor.org/info/rfc{0:d}'.format(rfc)
super(IETFRef, self).__init__(url, 'section-', section)


Expand Down