Skip to content

Commit

Permalink
[merge] Merge pull request #395 from inexorgame/iceflower/doc_fox
Browse files Browse the repository at this point in the history
[doc] Fix mermaid sphinx incompatibility
  • Loading branch information
IAmNotHanni authored May 11, 2021
2 parents 3295544 + fa09ac1 commit 7cd5261
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion documentation/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
sphinx>=3.0.1
sphinx>=4.0.0
sphinx_rtd_theme>=0.4.3
exhale>=0.2.3
sphinxcontrib-mermaid>=0.4.0
Expand Down
9 changes: 9 additions & 0 deletions documentation/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@
sys.path.insert(0, str(Path('../../').resolve()))
sys.path.insert(0, str(Path('../').resolve()))

# TODO(#394): Remove this when this PR is merged:
# https://github.com/mgaitan/sphinxcontrib-mermaid/pull/71
# Needed for sphinxcontrib-mermaid compatibility with sphinx 4.0.0.
import sphinx
if sphinx.version_info[0] >= 4:
import errno
import sphinx.util.osutil
sphinx.util.osutil.ENOENT = errno.ENOENT

from helper import generate_radar
# generate additional source stuff
generate_radar.generate(Path("./auto-generated/"))
Expand Down

0 comments on commit 7cd5261

Please sign in to comment.