diff --git a/.readthedocs.yaml b/.readthedocs.yaml index a5fd267..0d17208 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -10,11 +10,8 @@ build: python: "3.12" jobs: pre_build: - - 'sphinx-apidoc -o docs/source/reference -H "Code Reference" l2gv2' + - "pip install '.[docs]' --find-links https://data.pyg.org/whl/torch-2.4.1%2Bcpu.html" + - "sphinx-apidoc -o docs/source/reference -H 'Code Reference' l2gv2 '*/execute.py'" # ignores execute.py script sphinx: configuration: docs/source/conf.py - -python: - install: - - requirements: docs/requirements.txt diff --git a/docs/source/conf.py b/docs/source/conf.py index a4a22cc..0ee2ae7 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -26,30 +26,6 @@ templates_path = ["_templates"] exclude_patterns = [] -autodoc_mock_imports = [ - "optuna", - "autograd", - "pymanopt", - "tqdm", - "torch", - "numba", - "numpy", - "pandas", - "sklearn", - "scipy", - "community", - "torch_geometric", - "torch_scatter", - "local2global", - "raphtory", - "local2global_embedding", - "networkx", - "matplotlib", - "nfts", - "polars", -] - - # -- Options for HTML output ------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output