mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #8598 from tk0miya/8094_texinfo_images_not_copied
Fix #8094: texinfo: images on the different directory with document are not copied
This commit is contained in:
commit
91fa0ceb22
2
CHANGES
2
CHANGES
@ -26,6 +26,8 @@ Bugs fixed
|
|||||||
class
|
class
|
||||||
* #8592: autodoc: ``:meta public:`` does not effect to variables
|
* #8592: autodoc: ``:meta public:`` does not effect to variables
|
||||||
* #8594: autodoc: empty __all__ attribute is ignored
|
* #8594: autodoc: empty __all__ attribute is ignored
|
||||||
|
* #8094: texinfo: image files on the different directory with document are not
|
||||||
|
copied
|
||||||
|
|
||||||
Testing
|
Testing
|
||||||
--------
|
--------
|
||||||
|
@ -179,7 +179,8 @@ class TexinfoBuilder(Builder):
|
|||||||
try:
|
try:
|
||||||
imagedir = path.join(self.outdir, targetname + '-figures')
|
imagedir = path.join(self.outdir, targetname + '-figures')
|
||||||
ensuredir(imagedir)
|
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:
|
except Exception as err:
|
||||||
logger.warning(__('cannot copy image file %r: %s'),
|
logger.warning(__('cannot copy image file %r: %s'),
|
||||||
path.join(self.srcdir, src), err)
|
path.join(self.srcdir, src), err)
|
||||||
|
Loading…
Reference in New Issue
Block a user