File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 186186rst_epilog = """
187187.. |minimum_numpy_version| replace:: %s
188188""" % matplotlib .__version__numpy__
189+
190+ texinfo_documents = [
191+ ("contents" , 'matplotlib' , 'Matplotlib Documentation' ,
192+ 'Darren Dale@*Michael Droettboom@*Eric Firing@*John Hunter' ,
193+ 'Matplotlib' , "Python plotting package" , 'Programming' ,
194+ 1 ),
195+ ]
Original file line number Diff line number Diff line change @@ -173,6 +173,26 @@ def latex():
173173 else :
174174 print ('latex build has not been tested on windows' )
175175
176+ def texinfo ():
177+ check_build ()
178+ #figs()
179+ if sys .platform != 'win32' :
180+ # Texinfo format.
181+ if os .system (
182+ 'sphinx-build -b texinfo -d build/doctrees . build/texinfo' ):
183+ raise SystemExit ("Building Texinfo failed." )
184+
185+ # Produce pdf.
186+ os .chdir ('build/texinfo' )
187+
188+ # Call the makefile produced by sphinx...
189+ if os .system ('make' ):
190+ raise SystemExit ("Rendering Texinfo failed." )
191+
192+ os .chdir ('../..' )
193+ else :
194+ print ('texinfo build has not been tested on windows' )
195+
176196def clean ():
177197 shutil .rmtree ("build" , ignore_errors = True )
178198 shutil .rmtree ("examples" , ignore_errors = True )
@@ -198,6 +218,7 @@ def all():
198218 'figs' : figs ,
199219 'html' : html ,
200220 'latex' : latex ,
221+ 'texinfo' : texinfo ,
201222 'clean' : clean ,
202223 'sf' : sf ,
203224 'sfpdf' : sfpdf ,
You can’t perform that action at this time.
0 commit comments