Skip to content

Commit

Permalink
fix(docs): jupyterlite replaced by binder
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoDelatte committed Jan 4, 2024
1 parent cb79de3 commit 5b4cde3
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
1 change: 0 additions & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,4 @@ clean:
-rm -rf $(BUILDDIR)/*
-rm -rf auto_examples/*
-rm -rf generated/*
-rm -rf jupyterlite_contents/*
-rm -rf modules/*
5 changes: 5 additions & 0 deletions docs/binder/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
skfolio
numpy
pandas
scikit-learn
plotly
13 changes: 9 additions & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
"matplotlib.sphinxext.plot_directive",
"numpydoc",
"sphinx_togglebutton",
"jupyterlite_sphinx",
"sphinx_favicon",
"sphinx.ext.intersphinx",
"sphinx.ext.imgconverter",
Expand All @@ -52,7 +51,7 @@
"sphinx.ext.mathjax",
"sphinxext.opengraph",
"sphinx_sitemap",
"sphinx.ext.githubpages"
"sphinx.ext.githubpages",
]

# Produce `plot::` directives for examples that contain `import matplotlib` or
Expand Down Expand Up @@ -185,7 +184,6 @@
<a href="https://github.com/skfolio/skfolio">check out our GitHub repository.</a>
Your contributions are welcome!</div>""",
"secondary_sidebar_items": [], # No secondary sidebar due to bug with plotly

}

html_sidebars = {
Expand Down Expand Up @@ -249,7 +247,14 @@ def __call__(self, filename):
"inspect_global_variables": False,
"remove_config_comments": True,
"plot_gallery": "True",
#
"binder": {
"org": "skfolio",
"repo": "skfolio",
"branch": "gh-pages",
"binderhub_url": "https://mybinder.org",
"dependencies": "./binder/requirements.txt",
"use_jupyter_lab": True,
},
# 'compress_images': ('images', 'thumbnails'),
# 'promote_jupyter_magic': False,
# 'junit': os.path.join('sphinx-gallery', 'junit-results.xml'),
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ docs = [
"sphinx-copybutton",
"numpydoc",
"sphinx-togglebutton",
"jupyterlite-sphinx",
"sphinx-favicon",
"sphinx-prompt",
"sphinxext.opengraph",
Expand Down

0 comments on commit 5b4cde3

Please sign in to comment.