-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Open
Labels
Milestone
Description
Is your feature request related to a problem? Please describe.
When using make linkcheck, a line is printed for each link that gets checked. This includes broken links, redirects, and working links. One of the pain points of using make linkcheck is scrolling through thousands of links to find only a handful of broken links. The large amount of output for big projects also makes it harder to scroll up to previous commands in a terminal.
Describe the solution you'd like
It would be helpful to have a configuration variable that controls the verbosity of the output when using linkcheck. This configuration variable could be set such that the working links don't get printed to standard output.
Describe alternatives you've considered
- Only include broken links & redirects in standard output and skip printing working links. This would personally be my first choice, but it would change the default behavior. Also, there may be use cases where printing out the commands is useful (i.e., to make sure that the command is still working and didn't get stuck somewhere).
- Repeat printing the broken links at the end (Publish linkcheck failures at end of testย #8791). This would address the bulk of the issues, though it would still be difficult to scroll up to previous commands in a terminal. Having a configuration option would provide more control by users. It'd be possible to have the suggestion in Publish linkcheck failures at end of testย #8791 be the default behavior, and simultaneously implement a configuration variable.
- Keep the status quo. There are workarounds for this. For example, I could redirect the output into
linkcheck.txt, and then dogrep -v " ok " linkcheck.txtor use other Sphinx flags. Workarounds like this might complicate the workflow, require intermediate knowledge of Unix or Sphinx, and/or take longer to figure out how to set them up than it would to use a configuration variable. - Describe a preferred workaround in the linkcheck documentation. This would have saved me time trying to figure this out, but it would still be less user-friendly than a configuration option.
Thank you!
mhsmith