-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update broken & outdated links #13001
Conversation
this makes the page available when running locally
also move docFileName generation to a consistent place
instead of "splitApiDocs"
because code uses some relative paths that dont resolve correctly
with working absolute links
did a force-push because there was a stray |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great, thanks! Maybe put in a separate PR to add a GitHub action to run checks automatically?
that is what i wanted to do at first, but currently BLC's scripting API is quite bad. also it would also be better to just occasionally run it instead of of every normal CI run, because it hits external serves too, so the best option would be to put it on a timer (like weekly) also what to do about the mentioned unresolved broken links? |
Just remove the remaining broken links. Remove any references to the deprecated options. And for |
Summary
This PR does:
broken-link-checker
as a script command to easily run itapi.js
(andsplitApiDocs.js
) to generate all names in one placeapi.js
to better handle@inherits
links for classes that are not externalNotes:
SiteChecker.prototype.on
is not a function stevenvachon/broken-link-checker#253 (which could be fixed if Release v0.8.0 ? stevenvachon/broken-link-checker#244 gets resolved)Links Not updated and are broken:
"query-js" & "model-js" & "schema-string-js" & "schema-date-js"
mongoosearray
(not documentarray)utils
there were also broken links because of removed (previously deprecated) options:
snapshot
(inquery.js
)maxScan
(inquery.js
)autoIndexId
(inguide.md
)connection-limits-and-cluster-tier
(inconnections.md
)Filters i used and ignored from the output (regex / file path)
^.*OK─[^\n]+\n
^.*/docs/\d\.x[^\n]+\n
^Getting links from: [^\n]+\nFinished[^\n]+\n\n
/docs/api.html
(because of docs(api.pug): change to redirect to mongoose API page #12223)re #12691
Full BLC log of still broken URLs