Skip to content

Commit

Permalink
docs: use pip install and do not mock imports
Browse files Browse the repository at this point in the history
  • Loading branch information
abhidg committed Nov 28, 2024
1 parent a445be3 commit f9b276f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 29 deletions.
7 changes: 2 additions & 5 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
24 changes: 0 additions & 24 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f9b276f

Please sign in to comment.