Skip to content

Commit f334dba

Browse files
committed
fix?
1 parent 1659414 commit f334dba

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

docs/src/conf.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@
5656
plot_html_show_formats = False
5757
plot_html_show_source_link = False
5858

59-
html_static_path = ['static']
59+
html_static_path = ["static"]
60+
6061

6162
def setup(app) -> None:
6263
app.add_object_type(
@@ -65,8 +66,9 @@ def setup(app) -> None:
6566
objname="configuration value",
6667
indextemplate="pair: %s; configuration value",
6768
)
68-
app.connect('html-page-context', html_page_context_handler)
69+
app.connect("html-page-context", html_page_context_handler)
70+
6971

7072
def html_page_context_handler(app, pagename, templatename, context, doctree):
71-
if pagename == 'index':
72-
app.add_css_file('custom.css')
73+
if pagename == "index":
74+
app.add_css_file("custom.css")

src/sphinx_codeautolink/static/sphinx-codeautolink.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
color: unset;
33
text-decoration: none;
44
}
5+
.sphinx-codeautolink-a:link{
6+
color: unset;
7+
}
58
.sphinx-codeautolink-a:visited{
69
color: unset;
710
}

0 commit comments

Comments
 (0)