Skip to content

Commit

Permalink
Merge pull request #862 from danibene/fix/docs_asyncio_warning
Browse files Browse the repository at this point in the history
Fix/docs asyncio warning
  • Loading branch information
danibene authored Jul 7, 2023
2 parents a2abcef + f823fb9 commit 49b5268
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/docs-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ jobs:
pip install sphinx-book-theme
pip install sphinxemoji
pip install sphinx-copybutton
pip install ipykernel==6.23.2
pip install ipython
pip install myst-parser
pip install myst-nb
pip install numpy
pip install numpy==1.24.3
pip install pandas
pip install scipy
pip install scikit-learn
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/docs-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@ jobs:
pip install sphinx-book-theme
pip install sphinxemoji
pip install sphinx-copybutton
pip install ipykernel==6.23.2
pip install ipython
pip install myst-parser
pip install myst-nb
pip install numpy
pip install numpy==1.24.3
pip install pandas
pip install scipy
pip install scikit-learn
Expand Down
6 changes: 6 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
import os
import re
import sys
import asyncio
import platform

# -- Path setup --------------------------------------------------------------

Expand Down Expand Up @@ -105,6 +107,9 @@ def find_version():

# googleanalytics_id = "G-DVXSEGN5M9"

# Address asyncio warning
if platform.system() == "Windows":
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())

# NumPyDoc configuration -----------------------------------------------------

Expand Down Expand Up @@ -135,3 +140,4 @@ def find_version():
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ["_static"]

0 comments on commit 49b5268

Please sign in to comment.