sphinx-doc / sphinx

The Sphinx documentation generator
https://www.sphinx-doc.org/
Other
6.61k stars 2.13k forks source link

Use structural pattern matching to handle linkcheck result statuses #13049

Closed jayaddison closed 1 month ago

jayaddison commented 1 month ago

Feature or Bugfix

Purpose

Detail

Relates

jayaddison commented 1 month ago

@AA-Turner changelog entry required, do you think?

AA-Turner commented 1 month ago

There's no visible behaviour change to users so I shouldn't think one is required.

AA-Turner commented 1 month ago

Thank you @jayaddison!

A

jayaddison commented 1 month ago

Brilliant! Thank you for the code reviews!

AA-Turner commented 1 month ago

It seems 'local' is currently unused, by the way.

jayaddison commented 1 month ago

Mmm. As is the linkstat['text'] assignment.

For local -- perhaps that should become part of a separate link property that indicates whether each link is local or remote. I'll think about that and file a change suggestion / feature description at some point.