Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jeertmans committed Oct 14, 2024
1 parent 29b33ed commit c3b943f
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,7 @@ def fix_reference(
"https://docs.kidger.site/equinox/api/manipulation/#equinox.tree_at"
)
elif node["reftype"] == "mod":
uri = (
"https://docs.kidger.site/equinox/"
)
uri = "https://docs.kidger.site/equinox/"
else:
return None

Expand All @@ -243,17 +241,13 @@ def fix_reference(
newnode.append(contnode)

return newnode
elif node["reftarget"].startswith(
if node["reftarget"].startswith(
"jaxtyping"
): # Sphinx fails to find them in the inventory
if node["reftype"] == "class":
uri = (
"https://docs.kidger.site/jaxtyping/api/array/#dtype"
)
uri = "https://docs.kidger.site/jaxtyping/api/array/#dtype"
elif node["reftype"] == "mod":
uri = (
"https://docs.kidger.site/jaxtyping/"
)
uri = "https://docs.kidger.site/jaxtyping/"
else:
return None

Expand Down

0 comments on commit c3b943f

Please sign in to comment.