mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #8094: texinfo: images on the different directory with document are not copied
This commit is contained in:
2
CHANGES
2
CHANGES
@@ -18,6 +18,8 @@ Bugs fixed
|
||||
|
||||
* #741: autodoc: inherited-members doesn't work for instance attributes on super
|
||||
class
|
||||
* #8094: texinfo: image files on the different directory with document are not
|
||||
copied
|
||||
|
||||
Testing
|
||||
--------
|
||||
|
||||
@@ -179,7 +179,8 @@ class TexinfoBuilder(Builder):
|
||||
try:
|
||||
imagedir = path.join(self.outdir, targetname + '-figures')
|
||||
ensuredir(imagedir)
|
||||
copy_asset_file(path.join(self.srcdir, dest), imagedir)
|
||||
copy_asset_file(path.join(self.srcdir, src),
|
||||
path.join(imagedir, dest))
|
||||
except Exception as err:
|
||||
logger.warning(__('cannot copy image file %r: %s'),
|
||||
path.join(self.srcdir, src), err)
|
||||
|
||||
Reference in New Issue
Block a user