Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 27, 2025
1 parent 808a6a7 commit 1e0e5d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sphinx_book_theme/header_buttons/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def add_header_buttons(app, pagename, templatename, context, doctree):
download_buttons.append(
{
"type": "link",
"url": f'{pathto("_sources", 1)}/{context.get("ipynb_source")}',
"url": f"{pathto('_sources', 1)}/{context.get('ipynb_source')}",
"text": ".ipynb",
"icon": "fas fa-code",
"tooltip": translation("Download notebook file"),
Expand All @@ -79,7 +79,7 @@ def add_header_buttons(app, pagename, templatename, context, doctree):
download_buttons.append(
{
"type": "link",
"url": f'{pathto("_sources", 1)}/{context["sourcename"]}',
"url": f"{pathto('_sources', 1)}/{context['sourcename']}",
"text": suff,
"tooltip": translation("Download source file"),
"icon": "fas fa-file",
Expand Down

0 comments on commit 1e0e5d4

Please sign in to comment.