-
-
Notifications
You must be signed in to change notification settings - Fork 405
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
According to https://groups.google.com/forum/#!topic/sphinx- users/EC7_wNtE5To Sphinx-1.2 is 25% faster than 1.1.2, and this matters with doc-clean Sage builds. Source: [https://pypi.python.org/packages/source/S/Sphinx/Sphinx-1.2.2.tar.gz] URL: http://trac.sagemath.org/16396 Reported by: rws Ticket author(s): Ralph Stephan, Steven Trogdon Reviewer(s): François Bissey, Julien Puydt, John Palmieri
- Loading branch information
Showing
15 changed files
with
112 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
tarball=sphinx-VERSION.tar.bz2 | ||
sha1=2a6f238185a58cbb5c597c985d715ab9653e0fbe | ||
md5=9ea0a6f218779ddbe3222c5ef8c0f6e6 | ||
cksum=1040528499 | ||
tarball=Sphinx-VERSION.tar.gz | ||
sha1=9e424b03fe1f68e0326f3905738adcf27782f677 | ||
md5=3dc73ccaa8d0bfb2d62fb671b1f7e8a4 | ||
cksum=3972992129 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.1.2.p3 | ||
1.2.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
diff -ur src/sphinx/highlighting.py src.patched/sphinx/highlighting.py | ||
--- src/sphinx/highlighting.py 2010-08-11 17:17:48.000000000 +0200 | ||
+++ src.patched/sphinx/highlighting.py 2010-11-28 12:04:44.068642703 +0100 | ||
@@ -161,7 +161,7 @@ | ||
--- Sphinx-1.2.2/sphinx/highlighting.py.orig 2014-03-02 20:38:09.000000000 +1300 | ||
+++ Sphinx-1.2.2/sphinx/highlighting.py 2014-10-19 23:32:23.000000000 +1300 | ||
@@ -167,7 +167,7 @@ | ||
|
||
# find out which lexer to use | ||
if lang in ('py', 'python'): | ||
- if source.startswith('>>>'): | ||
+ if source.startswith('>>>') or source.startswith('sage: '): | ||
# interactive session | ||
lexer = lexers['pycon'] | ||
else: | ||
elif not force: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--- src/sphinx/writers/latex.py.orig 2014-06-05 23:38:03.808669401 -0500 | ||
+++ src/sphinx/writers/latex.py 2014-06-05 23:27:22.752376713 -0500 | ||
@@ -264,6 +264,7 @@ | ||
self.next_figure_ids = set() | ||
self.next_table_ids = set() | ||
# flags | ||
+ self.verbatim = False | ||
self.in_title = 0 | ||
self.in_production_list = 0 | ||
self.in_footnote = 0 | ||
@@ -1319,6 +1320,7 @@ | ||
(self.curfilestack[-1], node.line)) | ||
if node.rawsource != node.astext(): | ||
# most probably a parsed-literal block -- don't highlight | ||
+ self.verbatim = True | ||
self.body.append('\\begin{alltt}\n') | ||
else: | ||
code = node.astext().rstrip('\n') | ||
@@ -1351,6 +1353,7 @@ | ||
raise nodes.SkipNode | ||
def depart_literal_block(self, node): | ||
self.body.append('\n\\end{alltt}\n') | ||
+ self.verbatim = False | ||
visit_doctest_block = visit_literal_block | ||
depart_doctest_block = depart_literal_block | ||
|
||
--- src/sphinx/ext/mathbase.py.orig 2014-06-05 23:39:36.773293241 -0500 | ||
+++ src/sphinx/ext/mathbase.py 2014-06-05 23:18:53.949020605 -0500 | ||
@@ -88,7 +88,10 @@ | ||
|
||
|
||
def latex_visit_math(self, node): | ||
- self.body.append('\\(' + node['latex'] + '\\)') | ||
+ if self.verbatim: | ||
+ self.body.append('\\(' + node['latex'] + '\\)') | ||
+ else: | ||
+ self.body.append('$' + node['latex'] + '$') | ||
raise nodes.SkipNode | ||
|
||
def latex_visit_displaymath(self, node): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters