Skip to content

Commit

Permalink
fix windows sep char
Browse files Browse the repository at this point in the history
  • Loading branch information
d-chambers committed Jan 4, 2024
1 parent e8a69d9 commit 75f6528
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dascore/utils/docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from __future__ import annotations

import inspect
import os
import textwrap
from collections.abc import Sequence
from pathlib import Path
Expand Down Expand Up @@ -105,7 +106,7 @@ def objs_to_doc_df(doc_dict, cross_reference=True):
if cross_reference:
path = Path(inspect.getfile(obj)).relative_to(base)
name = obj.__name__
address = str(path).replace(".py", "").replace("/", ".")
address = str(path).replace(".py", "").replace(os.sep, ".")
key = f"[`{key}`](`{address + '.' + name}`)"
doc = str(getattr(obj, "__func__", obj).__doc__).strip()
out[key] = doc.splitlines()[0]
Expand Down

0 comments on commit 75f6528

Please sign in to comment.