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
upgrade sphinx to version 1.0.4 #10118
Comments
comment:1
I think Florent Hivert mentioned possibly working on the Sphinx and Pygments packages. Florent, did you happen to start upgrading them? |
comment:3
Sphinx-1.0.4 works well in sage-4.5.3 and 4.6alpha3 the only problem is it break
|
comment:4
Replying to @qed777:
Hi Mitesh, I didn't had the time to work on it (and even more generally on sage) recently. My previous attempt goes back to July with version 1.0.1 and showed some difficult hard stuff but Sphinx itself seemed to bu the cause. This is very cool if they are solved with 1.0.4. There is a chance that I can find some time in the next two weeks. However, if Francois beat me, I won't complain :-) |
comment:5
Well the situation for me is that on sage-on-gentoo we use system packages. And sphinx 1.0.4 has been marked stable so all sage-on-gentoo users were automatically updated to it. We test a number of things that way, if there is a real problem we pin sage to use a particular version. I won't beat you to it, it's kind of crunch time here (the semester and the year is ending in New Zealand with all that implies in terms of marking). |
comment:6
Can someone post a spkg for this? I can try to review, but I need something to review... |
comment:7
Replying to @dandrake:
I'm currently (just taking a break to answer your comment) working on an upgraded Sphinx package. |
Attachment: trac-10118_sphinx-spkg.patch.gz |
Attachment: trac-10118_sage-lib.patch.gz Attachment: trac-10118_sagenb.patch.gz |
Author: Minh Van Nguyen |
This comment has been minimized.
This comment has been minimized.
comment:8
See the ticket description for instructions on which patch/spkg to apply. Here are the results of my testing.
What the above tests mean is that the HTML documentation can be built without a LaTeX installation, but the resulting documentation would not render LaTeX typeset math expressions. For best result, you should install a LaTeX distribution on your system before building the Sage documentation. Of course, when you compile Sage, the configure script that is first run does warn about having a LaTeX installation if your system doesn't already have a LaTeX installation. I'm CC'ing the sage-combinat team because attachment: trac-10118_sage-lib.patch touches files in the combinatorics module. |
comment:11
Replying to @qed777:
See the following sage-devel thread for a follow-up to your question: http://groups.google.com/group/sage-devel/browse_thread/thread/7cf390f110f6cea6 |
Changed keywords from none to sphinx spkg |
comment:12
Replying to @sagetrac-mvngu:
If possible, I would like to see
Would it make sense for |
Attachment: dochtml.log |
comment:13
Attachment: docpdf.log Replying to @jdemeyer:
See the URL http://mvngu.googlecode.com/hg/10118-sphinx/en/index.html
See the log files:
That would result in a user, whose system doesn't have LaTeX but can compile Sage OK, without at least a way to build the vast majority of the Sage standard documentation. Currently, on a system without LaTeX you could still build the HTML version of the Sage documentation, but any expressions typeset in LaTeX could not be rendered using LaTeX. This means that the documentation does build, but you won't be able to see LaTeX math expressions typeset beautifully; you can still read the corresponding LaTeX typesetting, though. However, if you build the HTML version with jsMath rendering of mathematical expressions, then you don't need LaTeX at all. The only case where you really need LaTeX is when you build the PDF version of the documentation. So LaTeX is not necessary for building the Sage documentation. But if you don't have LaTeX, there's very little reason why the documentation builder should abort and refuse to build the HTML version of the documentation. The resulting "broken" HTML built documentation is still very readable; you just don't get beautifully typeset math expressions. And if you have jsMath installed, build the documentation with jsMath. |
comment:14
Replying to @sagetrac-mvngu:
Thanks! The output does indeed look quite readable without LaTeX installed. |
comment:15
I'm all in favour of making the pdf documentation actually work! |
Reviewer: Jeroen Demeyer |
Attachment: sphinx-1.0.4.p1.patch.gz Reviewer patch, p0 to p1 |
comment:16
Minh, your patches look fine, I made some minor changes to New spkg: http://sage.math.washington.edu/home/jdemeyer/spkg/sphinx-1.0.4.p1.spkg spkg patch: attachment: sphinx-1.0.4.p1.patch Works on sage.math.washington.edu, it would probably be good to test on other machines too. |
This comment has been minimized.
This comment has been minimized.
comment:34
Replying to @jhpalmieri:
Sounds like a good idea. I will try it when I have time. |
Attachment: 10118_sphinx_sagelib.patch.gz |
This comment has been minimized.
This comment has been minimized.
Attachment: 10118_sphinx_sagelib.2.patch.gz Sage library patch, replaces trac-10118_sage-lib.patch |
comment:37
Minh, I removed your hunk removing
|
This comment has been minimized.
This comment has been minimized.
Changed author from Minh Van Nguyen to Minh Van Nguyen, Jeroen Demeyer |
Merged: sage-4.6.1.alpha2 |
Attachment: sphinx-1.0.4.p3.patch.gz Patch from p0 to p3, for review |
comment:39
Attachment: trac-10118_use-utf8.patch.gz Here are some trivial problems in the file
we should have "Pygments >= 1.3.1" due to ticket #10290. But this is no biggy; it's a trivial typo that can either (i) be fixed in a new ticket, or (ii) fixed in the current ticket.
the fragment
should be changed to
Tested on the following platforms:
diff -r -u src.old/sphinx/ext/pngmath.py src/sphinx/ext/pngmath.py
--- src/sphinx/ext/pngmath.py 2010-07-24 12:07:36.000000000 +0200
+++ src/sphinx/ext/pngmath.py 2010-11-18 09:38:05.428635584 +0100
@@ -34,7 +34,7 @@
DOC_HEAD = r'''
\documentclass[12pt]{article}
-\usepackage[utf8x]{inputenc}
+\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{amssymb} to use only utf8 instead of utf8x. The same change needs to be made to the file
So here are two choices:
|
This comment has been minimized.
This comment has been minimized.
comment:40
Since this ticket is already merged, see #10350. |
comment:41
Since Minh agreed on this spkg, I'm setting this to positive_review. Further changes are at #10350. |
Changed reviewer from Jeroen Demeyer to Jeroen Demeyer, Minh Van Nguyen |
comment:42
Regarding the last patch (trac-10118_use-utf8.patch):
rather than replace |
comment:43
I agree with John. Let's not apply the reviewer patch (it is only needed to build the pdf documentation, so I don't think there is a big issue). |
comment:45
In principle needs work: Sphinx attempts to download Jinja2 during build, see the follow-up ticket #10350. |
As the subject says. See this sage-devel thread for some background on why we need to upgrade Sphinx.
Apply: (starting from sage-4.6.1.alpha1)
See also #10290 (Upgrade Pygments to version 1.3.1) for syntax highlighting to work properly.
Follow-up (p4 spkg): #10350
CC: @hivert @jhpalmieri @sagetrac-sage-combinat @novoselt
Component: packages: standard
Keywords: sphinx spkg
Author: Minh Van Nguyen, Jeroen Demeyer
Reviewer: Jeroen Demeyer, Minh Van Nguyen
Merged: sage-4.6.1.alpha2
Issue created by migration from https://trac.sagemath.org/ticket/10118
The text was updated successfully, but these errors were encountered: