-
-
Notifications
You must be signed in to change notification settings - Fork 570
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
move docbuild commands to their own targets in SAGE_ROOT/makefile #7943
Comments
comment:1
For changes to |
comment:2
Replying to @qed777:
Both |
Author: Mitesh Patel |
comment:3
I've attached an updated Do we still use |
comment:4
On math: Users who prefer JSMath to PNGmath can use export DOCBUILD_OPTS="-j"
make doc-html On log proliferation: For parallel inter-spkg builds, we'll need to have one log file per spkg. We could put them all in On cloning: #8258 may help. |
Reviewer: Minh Van Nguyen |
comment:5
Looks good to me. Typing "make" on a binary distribution won't rebuild the documentation. Also, cloning doesn't rebuild the doc. |
comment:6
The patches above shouldn't affect the docbuild-on-clone problem, which may necessitate changes to Sphinx. But we could make or appropriate a separate ticket for that "bottom favorite." |
comment:7
Since the test targets in sage: len(search_doc('tree', interact=False).splitlines()) > 2000
sage: len(search_doc('tree', whole_word=True, interact=False).splitlines()) < 100
sage: 'abvar/homology' in _search_src_or_doc('doc', 'homology', 'variety', interact=False) What if we make the first two |
comment:8
Oops. I suppose that should be "make all three optional or conditional, somehow." |
comment:9
I think I object to the positive review here, because having complete documentation is an important part of Sage, but it looks like with these patches, building Sage from source will not build the documentation. Correct me if I'm wrong about this. At the very least, since this is a major change, this should discussed more thoroughly in sage-devel before doing this. What happens if we add "doc" to the targets in the makefile for "make all"?
If you feel, as I do, that the documentation is an integral part of Sage, then it's reasonable that if you try doctesting with an incomplete Sage build (for example, if you're missing the documentation), you should not be surprised if there are doctest failures. The failures do say "Warning, the following Sage documentation...", so it's more or less clear why they failed. |
comment:10
Replying to @jhpalmieri:
That's a point I missed. |
comment:11
I apologize about the first versions. I've attached an updated
What are the circumstances under which rebuilding just an spkg triggers a rebuild of the docs? |
comment:12
Replying to @qed777:
No need to apologize: this is why patches are refereed.
I'm curious about this, too. Maybe if you rebuild the spkg by deleting the appropriate file spkg/installed and then typing "make"? With the new patch you could type "make build" instead, and it should build the spkg without rebuilding the docs. |
comment:14
I've "rebased" |
comment:15
I've added .PHONY targets to Should we change |
comment:16
Replying to @qed777:
I would endorse that decision, primarily on the ground of consistency. Currently, many (if not most) Sage-specific environment variables are prefixed with "SAGE_". If you change |
Updated |
Attachment: makefile.gz Attachment: makefile.diff.gz Diff of |
comment:17
I've changed |
comment:18
A comparison of the file
The problematic snippet is:
Ticket #6503 has removed pyprocessing from the standard spkg repository. Could the file |
comment:19
I think except for the rebasing, this looks ready to go. |
Changed reviewer from Minh Van Nguyen to Minh Van Nguyen, John Palmieri |
Diff of |
Attachment: install.diff.gz Attachment: install.gz Rebased vs. 4.3.4.alpha0. Updated |
comment:20
I've attached a rebased |
Merged: sage-4.3.4.alpha1 |
As of Sage 4.3, every time you make a clone or build an spkg, the whole documentation is also rebuilt. This is very annoying. See this sage-devel message for the vote to move the docbuild commands to their own targets in the script
SAGE_ROOT/makefile
. Or at least make it so that creating a clone or rebuilding an spkg doesn't also trigger a rebuild of the documentation.CC: @sagetrac-drkirkby @sagetrac-GeorgSWeber @jhpalmieri @tornaria
Component: documentation
Author: Mitesh Patel
Reviewer: Minh Van Nguyen, John Palmieri
Merged: sage-4.3.4.alpha1
Issue created by migration from https://trac.sagemath.org/ticket/7943
The text was updated successfully, but these errors were encountered: