We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d20edff commit 2a4107cCopy full SHA for 2a4107c
src/sphinx_codeautolink/__init__.py
@@ -1,5 +1,7 @@
1
"""Sphinx extension for linking code examples to reference documentation."""
2
3
+from pathlib import Path
4
+
5
from sphinx.application import Sphinx
6
7
from .extension import SphinxCodeAutoLink, backref, directive
@@ -12,7 +14,8 @@ def setup(app: Sphinx):
12
14
"""Set up extension, directives and events."""
13
15
state = SphinxCodeAutoLink()
16
app.setup_extension("sphinx.ext.autodoc")
- app.add_css_file("sphinx-codeautolink.css")
17
+ css_file = Path(__file__).parent / "static" / "sphinx-codeautolink.css"
18
+ app.add_css_file(str(css_file))
19
app.add_config_value(
20
"codeautolink_autodoc_inject", default=False, rebuild="html", types=[bool]
21
)
0 commit comments