-
-
Notifications
You must be signed in to change notification settings - Fork 535
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
sage -docbuild DOC FORMAT should do better error checking on DOC #6605
Comments
Author: John Palmieri |
comment:1
As written, this depends on #6187 (although it would be easy enough to modify it to avoid this). The new OMIT variable is for situations such as the one introduced by #5653, where there is a subdirectory "introspect" of SAGE_ROOT/doc/en/, which is not a document to be processed by "sage -docbuild", and so should be omitted from the list of all such documents. (This patch doesn't depend on #5653, but it will be compatible with it, should #5653 be merged.) |
comment:2
The patch works for me. I think a non-zero exit value is the UNIX convention for an error. I can make an updated patch. Or I can wait for more feedback on #6187. Notes for other potential tickets:
|
comment:3
Attachment: trac_6605-docbuild-check.patch.gz This patch is identical, except it uses sys.exit(1) instead of sys.exit(0). |
Reviewer: Mitesh Patel |
Merged: Sage 4.1.1.alpha1 |
comment:6
The patch applies but with fuzz:
|
comment:7
The patch
or a binary release with
After that, upgrade a previous release to this new release and rebuild the documentation. You then get this error message:
The same error is raised if you rebuild the documentation of the binary version of the new release. I'm reopening this ticket and marking it as needs work. |
Changed merged from Sage 4.1.1.alpha1 to none |
Merged: sage-4.2.alpha0 |
If I run
sage -docbuild hello html
, then a directory "hello" is created inSAGE_ROOT/devel/sage/doc/en
. Then if I runsage -docbuild -help
, "hello" is listed as one of the options.Error-checking should be done on the "document" argument of
sage -docbuild
to make sure this doesn't happen.Component: documentation
Author: John Palmieri
Reviewer: Mitesh Patel
Merged: sage-4.2.alpha0
Issue created by migration from https://trac.sagemath.org/ticket/6605
The text was updated successfully, but these errors were encountered: