Skip to content

Commit

Permalink
Add .readthedocs.yml (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gallaecio committed Dec 19, 2023
1 parent 8e7ad50 commit ec4d1ea
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
15 changes: 15 additions & 0 deletions .readthedocs.yml
@@ -0,0 +1,15 @@
version: 2
formats: all
sphinx:
configuration: docs/conf.py
fail_on_warning: true
build:
os: ubuntu-22.04
tools:
# For available versions, see:
# https://docs.readthedocs.io/en/stable/config-file/v2.html#build-tools-python
python: "3.12" # Keep in sync with .github/workflows/checks.yml
python:
install:
- requirements: docs/requirements.txt
- path: .
2 changes: 1 addition & 1 deletion docs/conf.py
Expand Up @@ -95,7 +95,7 @@

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
html_theme = 'classic'
html_theme = "sphinx_rtd_theme"

# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
Expand Down
2 changes: 2 additions & 0 deletions docs/requirements.txt
@@ -0,0 +1,2 @@
sphinx==7.2.6
sphinx-rtd-theme==2.0.0
3 changes: 1 addition & 2 deletions tox.ini
Expand Up @@ -41,8 +41,7 @@ commands =
[testenv:docs]
changedir = docs
deps =
sphinx
sphinx_rtd_theme
-r docs/requirements.txt
commands =
sphinx-build -W -b html . {envtmpdir}/html

Expand Down

0 comments on commit ec4d1ea

Please sign in to comment.