mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Don't copy graphviz.css when building man pages
_static/graphviz.css is being created alongside the man pages.
This commit is contained in:
parent
a721631a54
commit
71e9a15ccf
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user