Skip to content

Commit

Permalink
Merge pull request schettino72#31 from kblicharski/master
Browse files Browse the repository at this point in the history
Remove f-string syntax from __init__.py
  • Loading branch information
Zulko authored Oct 16, 2019
2 parents 6c9652b + e009cef commit 374c366
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sphinx_press_theme/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def add_toctree_data(app, pagename, templatename, context, doctree):
# `allow_sharp_as_current_path` is True
baseuri = app.builder.get_target_uri(pagename).rsplit('#', 1)[0]
toc_uri = app.builder.get_target_uri(toc_docname).rsplit('#', 1)[0]
toc_href = f'{relative_uri(baseuri, toc_uri)}#{anchor_id}'
toc_href = '{}#{}'.format(relative_uri(baseuri, toc_uri), anchor_id)
res.append({
'docname': toc_docname,
'href': toc_href,
Expand Down

0 comments on commit 374c366

Please sign in to comment.