Skip to content
This repository was archived by the owner on Feb 1, 2023. It is now read-only.

Commit bb2ac9c

Browse files
committed
Fix a bug
1 parent c6c309e commit bb2ac9c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/sage_docbuild/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -414,17 +414,17 @@ def html(self):
414414

415415
def pdf(self):
416416
"""
417-
# Install in website_dir a symlink to the directory containing pdf
418-
# files. This symlink is necessary to access pdf documentation files
419-
# within Jupyter (see trac #33206).
417+
# Install in the directory one level up to website_dir a symlink to the
418+
# directory containing pdf files. This symlink is necessary to access
419+
# pdf documentation files within Jupyter (see trac #33206).
420420
"""
421421
super().pdf()
422422

423423
html_output_dir = self._output_dir('html')
424424
pdf_doc_dir = os.path.join(SAGE_DOC, 'pdf')
425425

426426
try:
427-
os.symlink(pdf_doc_dir, os.path.join(html_output_dir, 'pdf'))
427+
os.symlink(pdf_doc_dir, os.path.join(html_output_dir, '..', 'pdf'))
428428
except FileExistsError:
429429
pass
430430

0 commit comments

Comments
 (0)