Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b8f3b01

Browse files
committed
Add texinfo build target in doc/make.py
1 parent 5b90a27 commit b8f3b01

2 files changed

Lines changed: 28 additions & 0 deletions

File tree

doc/conf.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,3 +186,10 @@
186186
rst_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+
]

doc/make.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
176196
def 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,

0 commit comments

Comments
 (0)