diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b1e275c..83662d9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,7 +45,7 @@ jobs: pre-build-command: | apt-get --allow-releaseinfo-change update -y && apt-get install -y git && git --version python -m pip install --upgrade pip setuptools wheel - python -m pip install -e .[composable,docs] + python -m pip install -e .[composable,neural,docs] docs-folder: "docs/" - name: Publish documentation run: | diff --git a/docs/source/conf.py b/docs/source/conf.py index 9d86c63..702463c 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -36,6 +36,7 @@ extensions = [ 'sphinx.ext.autosummary', 'sphinx.ext.viewcode', 'sphinx.ext.napoleon', + 'sphinx.ext.intersphinx', 'myst_parser', ] @@ -55,6 +56,10 @@ exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] html_theme = 'sphinx_rtd_theme' # html_theme = 'furo' # need to be installed: pip install furo (not working...) -html_static_path = ['_static'] +# html_static_path = ['_static'] +# intersphinx configuration +intersphinx_mapping = { + "sklearn": ("https://scikit-learn.org/stable/", None), +} diff --git a/docs/source/quapy.method.rst b/docs/source/quapy.method.rst index 31a357a..ac0dfc8 100644 --- a/docs/source/quapy.method.rst +++ b/docs/source/quapy.method.rst @@ -53,7 +53,7 @@ quapy.method.non\_aggregative module :show-inheritance: quapy.method.composable module ------------------------- +------------------------------ .. automodule:: quapy.method.composable :members: diff --git a/setup.py b/setup.py index 23aa3ca..aa699e4 100644 --- a/setup.py +++ b/setup.py @@ -126,6 +126,7 @@ setup( extras_require={ # Optional 'bayes': ['jax', 'jaxlib', 'numpyro'], 'composable': ['qunfold @ git+https://github.com/mirkobunse/qunfold@v0.1.3'], + 'neural': ['torch'], 'tests': ['certifi'], 'docs' : ['sphinx-rtd-theme', 'myst-parser'], },