-
-
Notifications
You must be signed in to change notification settings - Fork 482
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
Make doc-pdf separate from doc-html #36692
Conversation
From #36614 (comment), it seems like the PDF docbuild is still building HTML documentation? |
I think |
4e376a4
to
6308fe6
Compare
The reference pdf builder was building reference html doc to create a master index.html for generated pdf docs. This is no problem if html docs are built before pdf docs. But as the pdf workflow only builds pdf docs, this break things. I fixed it just now. Let's see. |
PDF build job succeeds, but the HTML build job now fails https://github.com/sagemath/sage/actions/runs/6834646326/job/18587631286?pr=36692#step:10:2680
|
Yes. I know. Before, pdf docs were always built after html docs were built. That is how the code is organized. Now, for CI, we want to build pdf docs separately. This opens the can of worms... But we are almost there. |
Looking good now, from a brief look at the PDFs in the generated artifact and the HTML diff. |
Could you elaborate on that? (Here or in the developer's guide) |
In
I don't think this explanation needs to go into the developer manual. |
Thanks for the explanation, and for the fix! I agree, no need to add to the manual. |
Ready for review? |
I am testing the last commit on my fork. Confused as already pushed to develop... |
Volker just force-pushed |
5bcff9f
to
84fb6da
Compare
OK. This is good to go. I tried to include pdf docs to the live doc preview but gave up for now. |
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.
LGTM.
Thanks! |
Thanks a lot for this work. This is a great step towards #29868 |
Sorry, but I found a defect that needs some work. This is still good to fix the pdf doc workflow. So leave it as blocker. |
Now |
<!-- ^^^^^ Please provide a concise, informative and self-explanatory title. Don't put issue numbers in there, do this in the PR body below. For example, instead of "Fixes sagemath#1234" use "Introduce new method to calculate 1+1" --> <!-- Describe your changes here in detail --> (1) Fixes the issue in sagemath#36614 (comment) by making doc-pdf target separate from doc-html target. (2) Support `.. ONLY::` (introduced by sagemath#36495) in generating rst files for sage modules by the reference builder. (3) Edited the pdf docs website to look consistent and tidy. <!-- Why is this change required? What problem does it solve? --> <!-- If this PR resolves an open issue, please link to it here. For example "Fixes sagemath#12345". --> <!-- If your change requires a documentation PR, please link it appropriately. --> ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> <!-- If your change requires a documentation PR, please link it appropriately --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> <!-- Feel free to remove irrelevant items. --> - [x] The title is concise, informative, and self-explanatory. - [x] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation accordingly. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on - sagemath#12345: short description why this is a dependency - sagemath#34567: ... --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> URL: sagemath#36692 Reported by: Kwankyu Lee Reviewer(s): Matthias Köppe
Documentation preview for this PR (built with commit afb9964; changes) is ready! 🎉 |
Currently live doc preview lacks pdf docs though links to them are visible, as seen https://deploy-livedoc--sagemath-tobias.netlify.app/ We fix the problem. The live doc preview built with this PR is here: https://deploy-livedoc--sagemath.netlify.app/ <!-- ^^^^^ Please provide a concise, informative and self-explanatory title. Don't put issue numbers in there, do this in the PR body below. For example, instead of "Fixes sagemath#1234" use "Introduce new method to calculate 1+1" --> <!-- Describe your changes here in detail --> <!-- Why is this change required? What problem does it solve? --> <!-- If this PR resolves an open issue, please link to it here. For example "Fixes sagemath#12345". --> <!-- If your change requires a documentation PR, please link it appropriately. --> ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> <!-- If your change requires a documentation PR, please link it appropriately --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> <!-- Feel free to remove irrelevant items. --> - [x] The title is concise, informative, and self-explanatory. - [x] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation accordingly. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on - sagemath#12345: short description why this is a dependency - sagemath#34567: ... --> - sagemath#36692 <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> URL: sagemath#36714 Reported by: Kwankyu Lee Reviewer(s): Matthias Köppe
Currently live doc preview lacks pdf docs though links to them are visible, as seen https://deploy-livedoc--sagemath-tobias.netlify.app/ We fix the problem. The live doc preview built with this PR is here: https://deploy-livedoc--sagemath.netlify.app/ <!-- ^^^^^ Please provide a concise, informative and self-explanatory title. Don't put issue numbers in there, do this in the PR body below. For example, instead of "Fixes sagemath#1234" use "Introduce new method to calculate 1+1" --> <!-- Describe your changes here in detail --> <!-- Why is this change required? What problem does it solve? --> <!-- If this PR resolves an open issue, please link to it here. For example "Fixes sagemath#12345". --> <!-- If your change requires a documentation PR, please link it appropriately. --> ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> <!-- If your change requires a documentation PR, please link it appropriately --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> <!-- Feel free to remove irrelevant items. --> - [x] The title is concise, informative, and self-explanatory. - [x] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation accordingly. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on - sagemath#12345: short description why this is a dependency - sagemath#34567: ... --> - sagemath#36692 <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> URL: sagemath#36714 Reported by: Kwankyu Lee Reviewer(s): Matthias Köppe
(1) Fixes the issue in #36614 (comment) by making doc-pdf target separate from doc-html target.
(2) Support
.. ONLY::
(introduced by #36495) in generating rst files for sage modules by the reference builder.(3) Edited the pdf docs website to look consistent and tidy.
📝 Checklist
⌛ Dependencies