##// END OF EJS Templates
Fix doc build with newer versions of sphinx.
Eric Firing -
Show More
@@ -18,9 +18,9 b" if sys.platform != 'win32':"
18 topdir = os.getcwd()
18 topdir = os.getcwd()
19 os.chdir('build/latex')
19 os.chdir('build/latex')
20
20
21 # Change chapter style to section style: allows chapters to start on
21 # Change chapter style to section style: allows chapters to start on
22 # the current page. Works much better for the short chapters we have.
22 # the current page. Works much better for the short chapters we have.
23 # This must go in the class file rather than the preamble, so we modify
23 # This must go in the class file rather than the preamble, so we modify
24 # manual.cls at runtime.
24 # manual.cls at runtime.
25 chapter_cmds=r'''
25 chapter_cmds=r'''
26 % Local changes.
26 % Local changes.
@@ -47,9 +47,13 b" if sys.platform != 'win32':"
47 \vspace*{10\p@}
47 \vspace*{10\p@}
48 }
48 }
49 '''
49 '''
50 # manual.cls in Sphinx <= 0.6.7 became sphinxmanual.cls for 1.x
51 manualcls = 'sphinxmanual.cls'
52 if not os.path.exists(manualcls):
53 manualcls = 'manual.cls'
50
54
51 unmodified=True
55 unmodified=True
52 for line in fileinput.FileInput('manual.cls',inplace=1):
56 for line in fileinput.FileInput(manualcls, inplace=True):
53 if 'Support for module synopsis' in line and unmodified:
57 if 'Support for module synopsis' in line and unmodified:
54 line=chapter_cmds+line
58 line=chapter_cmds+line
55 elif 'makechapterhead' in line:
59 elif 'makechapterhead' in line:
General Comments 0
You need to be logged in to leave comments. Login now