Skip to content

Commit

Permalink
Update RTD setup and create .readthedocs.yaml (#479)
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasHug authored May 19, 2024
1 parent 79bcd39 commit 825ad92
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install Surprise with docs dependencies
run: |
python -m pip install --upgrade pip
pip install ".[docs]"
pip install --upgrade pip
cd doc
pip install -r requirements.txt
- name: Build docs
run: |
cd doc
Expand Down
17 changes: 17 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Read the Docs configuration file for Sphinx projects
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

build:
os: ubuntu-22.04
tools:
python: "3.12"

sphinx:
configuration: doc/source/conf.py

python:
install:
- requirements: doc/requirements.txt
5 changes: 5 additions & 0 deletions doc/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
sphinx
sphinx_rtd_theme
sphinxcontrib-bibtex
sphinxcontrib-spelling
pandas
4 changes: 0 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ dependencies = [
]
dynamic = ["version", "readme"]

[project.optional-dependencies]
test = ["pytest", "pandas"]
docs = ["sphinx", "sphinx_rtd_theme", "sphinxcontrib-bibtex", "sphinxcontrib-spelling"]

[project.scripts]
surprise = "surprise.__main__:main"

Expand Down

0 comments on commit 825ad92

Please sign in to comment.