Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
sanbrock committed Jan 21, 2025
1 parent fc5b95b commit bfce048
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/pynxtools/nomad/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,9 +364,8 @@ def __get_documentation_url(
)
nx_package = xml_parent.get("nxdl_base").split("/")[-1]
anchor = "-".join([name.lower() for name in reversed(anchor_segments)])
return (
f"{doc_base}/{nx_package}/{anchor_segments[-1].replace("-", "_")}.html#{anchor}"
)
nx_file = anchor_segments[-1].replace("-", "_")
return f"{doc_base}/{nx_package}/{nx_file}.html#{anchor}"


def __to_section(name: str, **kwargs) -> Section:
Expand Down

0 comments on commit bfce048

Please sign in to comment.