pre-commit: ignore unreferenced Hyperlink targets#823
pre-commit: ignore unreferenced Hyperlink targets#823absorb-it wants to merge 1 commit intomixxxdj:2.5from
Conversation
Ignore wrong reports about unreferenced Hyperlink targets - see also rstcheck/rstcheck#77
|
Could you provide an example of the issue this is fixing? |
When I run into this I check if the current file is affected and if i can fix it. |
|
IIUC all controller pages have a reference at the top so the page is listed in https://manual.mixxx.org/2.5/en/hardware/manuals.html ??
We shouldn't add unused references. YAGNI : ) |
|
Did you already check for an upstream report / fix? edit whoopsy, you did, I overlooked the first post |
seems like overkill to skip complete rstcheck, just to be able to upload and than collide with your pre-commit check again. |
as said before: "even used hyperlink targets are reported as errors" |
Ticket is already open rstcheck/rstcheck#77 but was closed because it's an upstream issue. Same happens with recent rstcheck 6.2.5. |
|
Just to summarize: There are already "unreferenced hyperlink targets" in this documentation. The rstcheck for unreferenced hyperlink target fails for all hyperlink targets, not only for unreferenced ones. With the current state it's impossible to commit changes on documentation rst files which contain hyperlinks or add new documentation rst files containing hyperlinks. The suggested fix will change this with the minimal impact. rstcheck is still used and will only ignore all existing and all upcoming hyperlink target checks. |
|
+1 on this. New contributor here. I wanted to document a small change I had made to a mapping and was stopped by this problem. It was quite confusing because it was giving the impression that I had made some kind of a mistake in my edit. |
Ignore wrong reports about unreferenced Hyperlink targets - see also rstcheck/rstcheck#77
Sometimes it makes sense to have targets for future referencing included, but even used hyperlink targets are reported as errors. Without this change it is impossible to write or update any documentation - please change this.