Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Mayo <aklhfex@gmail.com>2020-08-05 22:05:49 +0300
committerChris Mayo <aklhfex@gmail.com>2020-08-05 22:05:49 +0300
commit71e9a15ccfcd654722fc4290a8dc4493b94113d8 (patch)
treef71d8ee38fcfed09fe16c891d52c1afa1c58fa3f /sphinx/ext/graphviz.py
parenta721631a541db298f7f9807c9db8433e928cb20b (diff)
Don't copy graphviz.css when building man pages
_static/graphviz.css is being created alongside the man pages.
Diffstat (limited to 'sphinx/ext/graphviz.py')
-rw-r--r--sphinx/ext/graphviz.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/ext/graphviz.py b/sphinx/ext/graphviz.py
index 4a8dd0a4d..d97a7505e 100644
--- a/sphinx/ext/graphviz.py
+++ b/sphinx/ext/graphviz.py
@@ -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)