Closed sebastiaanspeck closed 3 months ago
So, this would (like your script) be checking for uses of tldr [command]
within backticks?
My only thought is if you were working on a suite of pages, they might reference each other and every PR would be failing until they are all in.
Overall, this sounds like a good idea though.
Exactly! My opinion is that you fix a missing reference when touching a page. I don't think anyone would like to update more than 100 pages at once, so fixing this will be an ongoing process.
IMO this should be done in another step of the CI, as this concerns not the syntax but the semantics of the page. However, It may be good to keep this issue upen as a reminder.
IMO this should be done in another step of the CI, as this concerns not the syntax but the semantics of the page. However, It may be good to keep this issue open as a reminder.
Yeah, this has been implemented in the tldr-maintenance repo too (so don't know if we need it again here).
If it's in the other repo, I think it doesn't make sense to run as part of the linter (otherwise we're just duplicating code). I think it's probably safe to close this, and use the other one to clean up references where necessary. šš»
I have already opened a issue for the TLDR main repo: https://github.com/tldr-pages/tldr/issues/11068, but I can imagine we maybe want to have a check in the linter itself if the user isn't introducing a reference to a non-existing TLDR-page.
Running
tldr cgroups -p linux
results in:But running
tldr cgclassify -p linux
results in:Right now this is the status per language:
As you can see, there are only 7 languages that don't have any non-existing links.