Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sphinx_gmt/gmtplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ def run(self):
builddir = Path(env.app.doctreedir).parent / "gmtplot_directive"
# determine how to link to files in builddir from the RST file
# use os.path.relpath rather than relative_to!
builddir_link = Path("/", os.path.relpath(str(builddir), env.app.srcdir))
builddir_link = "/" / Path("/", os.path.relpath(str(builddir), env.app.srcdir))

# copy script to builddir
builddir.mkdir(parents=True, exist_ok=True)
Expand Down