Skip to content

Commit c851574

Browse files
authored
(Hopefully) fix doc build (#14)
1 parent b102c3c commit c851574

File tree

6 files changed

+105
-78
lines changed

6 files changed

+105
-78
lines changed

.readthedocs.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
version: 2
22

3+
build:
4+
os: ubuntu-22.04
5+
tools:
6+
python: "3.11"
7+
jobs:
8+
pre_create_environment:
9+
- asdf plugin add poetry
10+
- asdf install poetry latest
11+
- asdf global poetry latest
12+
- poetry config virtualenvs.create false
13+
post_install:
14+
- poetry install
15+
316
sphinx:
417
configuration: docs/conf.py
5-
6-
python:
7-
version: 3.8
8-
install:
9-
- method: pip
10-
path: .
11-
extra_requirements:
12-
- docs
18+
fail_on_warning: true

docs/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# You can set these variables from the command line, and also
55
# from the environment for the first two.
66
SPHINXOPTS ?=
7-
SPHINXBUILD ?= sphinx-build
7+
SPHINXBUILD ?= poetry run sphinx-build
88
SOURCEDIR = .
99
BUILDDIR = _build
1010

docs/conf.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@
4444
# This pattern also affects html_static_path and html_extra_path.
4545
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
4646

47+
autosummary_generate = True
48+
4749

4850
# -- Options for HTML output -------------------------------------------------
4951

@@ -55,7 +57,7 @@
5557
# Add any paths that contain custom static files (such as style sheets) here,
5658
# relative to this directory. They are copied after the builtin static files,
5759
# so a file named "default.css" will overwrite the builtin "default.css".
58-
html_static_path = ["_static"]
60+
# html_static_path = ["_static"]
5961
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
6062

6163
autodoc_mock_imports = ["annoy", "faiss", "pynndescent", "nmslib"]

poetry.lock

Lines changed: 80 additions & 61 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ pytest-cov = ">=2.10.1"
3131
[tool.poetry.group.docs]
3232
optional = true
3333
[tool.poetry.group.docs.dependencies]
34-
sphinx = "^3.4.1"
35-
sphinx-gallery = "^0.8.2"
36-
sphinx-rtd-theme = "^0.5.1"
37-
sphinx-issues = "^1.2.0"
38-
numpydoc = "^1.1.0"
39-
matplotlib = "^3.3.3"
34+
sphinx = ">=4.2.0"
35+
sphinx-gallery = ">=0.8.2"
36+
sphinx-rtd-theme = ">=0.5.1"
37+
sphinx-issues = ">=1.2.0"
38+
numpydoc = ">=1.1.0"
39+
matplotlib = ">=3.3.3"
4040

4141
[tool.pytest.ini_options]
4242
addopts = [

src/sklearn_ann/cluster/rnn_dbscan.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ class RnnDBSCAN(ClusterMixin, BaseEstimator):
124124
See Also
125125
--------
126126
simple_rnn_dbscan_pipeline:
127-
Create a pipeline of a KNeighborsTransformer and RnnDBSCAN
127+
Create a pipeline of a KNeighborsTransformer and RnnDBSCAN
128128
129129
References
130130
----------

0 commit comments

Comments
 (0)