Skip to content

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

Merged
merged 5 commits into from
Jun 16, 2020

Conversation

jepler
Copy link

@jepler jepler commented Jun 14, 2020

This nearly entirely fixes the broken links that result from the autoapi change.

I noted two kinds of breakage:

  • the wholesale rename from /shared-bindings/ to /autoapi/ -- This is resolved with a configuration directive
  • the combination of the per-class sub pages into a single module page -- This is resolved by generating a redirect page for each old page that I could identify

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).

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).
@jepler jepler requested a review from tannewt June 14, 2020 16:15
@jepler
Copy link
Author

jepler commented Jun 14, 2020

Now updated with some additional redirecting logic that should get the per-class pages redirected as well

Copy link
Member

@tannewt tannewt left a 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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Who is this?

Copy link
Author

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.
Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, looks good!

@tannewt tannewt merged commit a345223 into adafruit:main Jun 16, 2020
@jepler jepler deleted the improve-shared-bindings-links branch November 3, 2021 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants