Skip to content

Commit

Permalink
Merge pull request #25760 from rcomer/new-sphinx
Browse files Browse the repository at this point in the history
unbreak doc build with Sphinx 6.2
  • Loading branch information
rcomer committed Apr 24, 2023
2 parents d77801e + a8a2818 commit 52a2a7c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/sphinxext/missing_references.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,10 @@ def prepare_missing_references_handler(app):
# for use later. Otherwise, add all known missing references to
# ``nitpick_ignore```
if not app.config.missing_references_write_json:
# Since Sphinx v6.2, nitpick_ignore may be a list, set or tuple, and
# defaults to set. Previously it was always a list. Cast to list for
# consistency across versions.
app.config.nitpick_ignore = list(app.config.nitpick_ignore)
app.config.nitpick_ignore.extend(ignored_references.keys())


Expand Down

0 comments on commit 52a2a7c

Please sign in to comment.