Skip to content

Commit

Permalink
fix: Use str object for jupyterlite-sphinx jupyterlite_dir config
Browse files Browse the repository at this point in the history
* To avoid warning

WARNING: The config value `jupyterlite_dir' has type `PosixPath', defaults to `str'.

 use a str for the jupyterlite-sphinx v0.13.0+ jupyterlite_dir config
 option.
* Update jupyterlite-spinx lower bound to v0.13.0 in 'docs' extra.
* Reverts PR https://github.com/scikit-hep/pyhf/pull/ 2300
  • Loading branch information
matthewfeickert committed Mar 20, 2024
1 parent 50f1076 commit 03c7e10
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -531,5 +531,5 @@ def setup(app):
linkcheck_retries = 50

# JupyterLite configuration
# Use Path as jupyterlite-sphinx expects PosixPath
jupyterlite_dir = Path("lite")
# jupyterlite-sphinx v0.13.0+ expects str
jupyterlite_dir = str(Path("lite"))
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ docs = [
"ipywidgets",
"sphinx-issues",
"sphinx-copybutton>=0.3.2,!=0.5.1",
"jupyterlite-sphinx>=0.8.0",
"jupyterlite-sphinx>=0.13.0",
"jupyterlite-pyodide-kernel>=0.0.7",
"jupytext>=1.14.0",
"ipython!=8.7.0", # c.f. https://github.com/scikit-hep/pyhf/pull/2068
Expand Down

0 comments on commit 03c7e10

Please sign in to comment.