Skip to content

Commit

Permalink
Check if ./../ works
Browse files Browse the repository at this point in the history
  • Loading branch information
hagenw committed May 6, 2024
1 parent 7178fe6 commit cd155b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sphinxcontrib/katex.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,8 @@ def build_command(cls, socket=None, port=None):
# without `.js` at the end
print(f"DEBUG: giveb {cls.KATEX_PATH=}")
katex_path = os.path.relpath(str(cls.KATEX_PATH))[:-3]
# relative path had to start with `"./"` for `require()`
katex_path = os.path.join("./", katex_path)
# relative path had to start with `"./"` for `require()`
katex_path = os.path.join("./../sphinxcontrib/", katex_path)
print(f"DEBUG: add {katex_path=}")
cmd.extend(["--katex", katex_path])
else:
Expand Down

0 comments on commit cd155b6

Please sign in to comment.