Don't copy graphviz.css when building man pages

_static/graphviz.css is being created alongside the man pages.
This commit is contained in:
Chris Mayo 2020-08-05 20:05:49 +01:00
parent a721631a54
commit 71e9a15ccf

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)