mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #5549 from jdemeyer/graphviz_copy_asset
Correctly deal with non-existing static dir in graphviz extension
This commit is contained in:
commit
5064c36a17
@ -27,7 +27,7 @@ from sphinx.errors import SphinxError
|
|||||||
from sphinx.locale import _, __
|
from sphinx.locale import _, __
|
||||||
from sphinx.util import logging
|
from sphinx.util import logging
|
||||||
from sphinx.util.docutils import SphinxDirective
|
from sphinx.util.docutils import SphinxDirective
|
||||||
from sphinx.util.fileutil import copy_asset_file
|
from sphinx.util.fileutil import copy_asset
|
||||||
from sphinx.util.i18n import search_image_for_language
|
from sphinx.util.i18n import search_image_for_language
|
||||||
from sphinx.util.osutil import ensuredir, ENOENT, EPIPE, EINVAL
|
from sphinx.util.osutil import ensuredir, ENOENT, EPIPE, EINVAL
|
||||||
|
|
||||||
@ -413,7 +413,7 @@ def on_build_finished(app, exc):
|
|||||||
if exc is None:
|
if exc is None:
|
||||||
src = path.join(sphinx.package_dir, 'templates', 'graphviz', 'graphviz.css')
|
src = path.join(sphinx.package_dir, 'templates', 'graphviz', 'graphviz.css')
|
||||||
dst = path.join(app.outdir, '_static')
|
dst = path.join(app.outdir, '_static')
|
||||||
copy_asset_file(src, dst)
|
copy_asset(src, dst)
|
||||||
|
|
||||||
|
|
||||||
def setup(app):
|
def setup(app):
|
||||||
|
Loading…
Reference in New Issue
Block a user