Skip to content

Commit

Permalink
Upgrade Sphinx to 3.x
Browse files Browse the repository at this point in the history
This is in preparation for adding sphinx-js, which seems to be tested
with the 3.x branch of sphinx
  • Loading branch information
jgraham committed Oct 29, 2021
1 parent 045e0c6 commit a17e3c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def unlink_source_dirs(created):
# Sort backwards in lenght to remove all files before getting to directory
for path in sorted(created, key=lambda x: -len(x)):
# This will also remove empty parent directories
if os.path.isdir(path):
if not os.path.islink(path) and os.path.isdir(path):
os.removedirs(path)
else:
os.unlink(path)
Expand Down
4 changes: 2 additions & 2 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
sphinx==3.5.4
sphinx-argparse==0.3.1
recommonmark==0.7.1
sphinx==2.4.4 # Same major version as https://docs.python.org/3/
sphinx-argparse==0.2.5

0 comments on commit a17e3c9

Please sign in to comment.