Skip to content

Commit c4c8e01

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 74a33db commit c4c8e01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sphinx_book_theme/header_buttons/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def add_header_buttons(app, pagename, templatename, context, doctree):
6767
download_buttons.append(
6868
{
6969
"type": "link",
70-
"url": f'{pathto("_sources", 1)}/{context.get("ipynb_source")}',
70+
"url": f"{pathto('_sources', 1)}/{context.get('ipynb_source')}",
7171
"text": ".ipynb",
7272
"icon": "fas fa-code",
7373
"tooltip": translation("Download notebook file"),
@@ -79,7 +79,7 @@ def add_header_buttons(app, pagename, templatename, context, doctree):
7979
download_buttons.append(
8080
{
8181
"type": "link",
82-
"url": f'{pathto("_sources", 1)}/{context["sourcename"]}',
82+
"url": f"{pathto('_sources', 1)}/{context['sourcename']}",
8383
"text": suff,
8484
"tooltip": translation("Download source file"),
8585
"icon": "fas fa-file",

0 commit comments

Comments
 (0)