Skip to content

Commit e914cf6

Browse files
committed
rtd?
1 parent f8570a9 commit e914cf6

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/sphinx_codeautolink/__init__.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ def setup(app: Sphinx):
1616
state = SphinxCodeAutoLink()
1717
app.setup_extension("sphinx.ext.autodoc")
1818
app.add_css_file("sphinx-codeautolink.css")
19-
app.connect("build-finished", _copy_styles)
2019
app.add_config_value(
2120
"codeautolink_autodoc_inject", default=False, rebuild="html", types=[bool]
2221
)
@@ -81,10 +80,3 @@ def setup(app: Sphinx):
8180
backref.SummaryNode, html=(backref.visit_summary, backref.depart_summary)
8281
)
8382
return {"version": __version__, "env_version": 1, "parallel_read_safe": True}
84-
85-
86-
def _copy_styles(app, exc):
87-
if app.builder.format == "html" and not exc:
88-
css_name = "sphinx-codeautolink.css"
89-
css_file = files("sphinx_codeautolink.static").joinpath(css_name)
90-
copyfile(css_file, app.outdir / "_static" / css_name)

0 commit comments

Comments
 (0)