Merge pull request #8048 from cjmayo/graphviz

Don't copy graphviz.css when building man pages
This commit is contained in:
Takeshi KOMIYA 2020-08-06 10:56:27 +09:00 committed by GitHub
commit a8032b4405
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -385,7 +385,7 @@ def man_visit_graphviz(self: ManualPageTranslator, node: graphviz) -> None:
def on_build_finished(app: Sphinx, exc: Exception) -> None:
if exc is None:
if exc is None and app.builder.format == 'html':
src = path.join(sphinx.package_dir, 'templates', 'graphviz', 'graphviz.css')
dst = path.join(app.outdir, '_static')
copy_asset(src, dst)