-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Organize the docs with cards #23746
base: master
Are you sure you want to change the base?
Organize the docs with cards #23746
Conversation
✅ Hi, I am the SymPy bot (v169). I'm here to help you write a release notes entry. Please read the guide on how to write release notes. Your release notes are in good order. Here is what the release notes will look like: This will be added to https://github.com/sympy/sympy/wiki/Release-Notes-for-1.12. Click here to see the pull request description that was parsed.
|
Good news: the Executable Books community will try to solve the accessibility issue. I was trying to build the docs with cards to verify that manually applying an accessibility solution I found on StackOverflow would be spoken correctly by a screenreader, and Sphinx throws:
despite |
You need to actually install the requirements. The build doesn't do that for you automatically. The requirements file is just there to give you something to pass to pip to install everything at once. |
Looks like the accessibility concern was fixed upstream. Any other comments here? Should we try to merge this for the release, or is it too late for that? |
Can the docs not just be live updated any time? |
They could in principle. We would need to manually apply the change to the release tag, build the docs, then copy that to the site. It's not exactly a clean process compared to the current process which is all automated. Anyway, if you don't want to make changes to the release branch this late, that's fine. This isn't a critical thing. |
At release time I just update the docs by running the |
I was hoping we could just change the base but apparently I made this branch after the release branch, so it would have to be backported manually. |
It's better that way anyway. I'd rather something was reviewed and merged to master before it gets backported so that backports don't need detailed review. |
Backporting a single commit is easy though:
|
Benchmark results from GitHub Actions Lower numbers are good, higher numbers are bad. A ratio less than 1 Significantly changed benchmark results (PR vs master) Significantly changed benchmark results (master vs previous release) before after ratio
[41d90958] [3450b757]
<sympy-1.11.1^0>
- 993±3μs 600±1μs 0.60 solve.TimeSparseSystem.time_linear_eq_to_matrix(10)
- 2.85±0.02ms 1.11±0ms 0.39 solve.TimeSparseSystem.time_linear_eq_to_matrix(20)
- 5.67±0.01ms 1.62±0ms 0.29 solve.TimeSparseSystem.time_linear_eq_to_matrix(30)
Full benchmark results can be found as artifacts in GitHub Actions |
Hmm, Lighthouse is still finding the accessibility issue Links do not have a discernible name. I noticed the PR was merged today in ExecutableBooks; it doesn't seem like they've out out a new release with it because the last release was Jun 14. Do we need to wait for a release from them? |
It won't work until they release, although if we merge this before then it will automatically start working once they do. |
sphinx-design put out a release with this fix. @asmeurer can you rebuild the docs preview on this PR, then we can check if the cards accessibility issue is fixed? |
I restarted the Circle build, so the docs preview should be built with the latest packages. |
Hmm, the accessibility issue Links do not have a discernible name is still there. Perhaps the latest sphinx-design release v0.3.0 didn't get pulled in? |
I would suggest building this PR locally to confirm. |
Unfortunately building the PR locally confirms the problem. I uploaded the built docs and still get the Links do not have a discernible name issue. I'm not sure why. sphinx-design has an example of Placing a card in a grid, it doesn't have this issue, and the rst in this PR seems to follow their format. An example of this issue from our build is:
The link name ( The above is part of the output from this rst:
If we can't figure anything out, we could ask their lead developer (who coded the fix) to inspect our rst and output HTML. |
The only difference that I can see is that we are using RST whereas the example in the sphinx-design docs is presumably built from Markdown. If that's the root cause, it seems to me that would be a bug since it shouldn't matter which markup language you use as long as the underlying metadata is the same. We can try converting the index page to Markdown to see if that fixes it (see https://github.com/executablebooks/rst-to-myst). |
Just resolved a merge conflict and checked the latest build with Lighthouse, and it seems the accessibility problem is still there. Do we know what the status is of the upstream efforts to fix this? |
This was fixed upstream but not in the seamless way I had hoped, which is that the alt text would automatically be set as the card title. That way, any existing cards would automatically get alt text when they upgraded sphinx-design. The way it's implemented in sphinx-design is, there is now a
|
This was originally part of #23669 but I split it off due to accessibility concerns.
References to other Issues or PRs
Brief description of what is fixed or changed
Other comments
Release Notes