-
Notifications
You must be signed in to change notification settings - Fork 1.3k
docs: Improve 5.0.x <-> main branch doc linkrot #3031
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
Conversation
This improves, but does not entirely fix, the broken links that result from the autoapi change. It fixes module-level links, but class links still do not work (e.g., /shared-bindings/displayio/Palette.html (5.0.x) is now just /shared-bindings/displayio/#displayio.Palette).
Now updated with some additional redirecting logic that should get the per-class pages redirected as well |
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.
One question. Looks good otherwise! Thanks for doing this!
conf.py
Outdated
app.info("Could not find redirects file at '%s'" % path) | ||
return | ||
|
||
# TODO(stephenfin): Add support for DirectoryHTMLBuilder |
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.
Who is this?
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.
An author of sphinxcontrib-redirects. We should probably remove the TODO here (in fact I thought I had -- I'll make a TODO about it 🤣)
This TODO made sense in the context of the original project, but for use in CircuitPython it does not appear to be relevant. Remove it.
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.
Ok, looks good!
This nearly entirely fixes the broken links that result from the autoapi change.
I noted two kinds of breakage:
I'm not aware of other breaking links, but particularly the list of redirects may be incomplete.
This improves, but does not entirely fix, the broken links that result from the autoapi change. It fixes module-level links, but class links still do not work (e.g., /shared-bindings/displayio/Palette.html (5.0.x) is now just /shared-bindings/displayio/#displayio.Palette).