diff --git a/.readthedocs.yml b/.readthedocs.yml index e19a4dccb7..355e3485e7 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -9,14 +9,13 @@ version: 2 build: os: ubuntu-22.04 tools: - python: "3.11" - -# Optionally set the version of Python and requirements required to build your docs -python: - install: - - path: . - extra_requirements: - - docs + python: "3.12" + commands: + - asdf plugin add uv + - asdf install uv latest + - asdf global uv latest + - uv sync --group docs + - uv run -m sphinx -T -b html -d docs/_build/doctrees -D language=en docs/source $READTHEDOCS_OUTPUT/html # Build documentation in the docs/ directory with Sphinx sphinx: diff --git a/README.md b/README.md index 507cce9298..5ca825b6ba 100644 --- a/README.md +++ b/README.md @@ -147,9 +147,7 @@ The following extras allow the installation of optional dependencies: | Name | Description | |------|-------------| -| `all` | All optional dependencies, except `dev` and `docs` | -| `dev` | Development dependencies | -| `docs` | Dependencies for building the documentation | +| `all` | All optional dependencies | | `notebooks` | Dependencies only used in notebooks | | `server` | Dependencies to run the TTS server | | `bn` | Bangla G2P | diff --git a/docs/README.md b/docs/README.md deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/docs/requirements.txt b/docs/requirements.txt deleted file mode 100644 index 86ccae9cca..0000000000 --- a/docs/requirements.txt +++ /dev/null @@ -1,6 +0,0 @@ -furo -myst-parser == 2.0.0 -sphinx == 7.2.5 -sphinx_inline_tabs -sphinx_copybutton -linkify-it-py diff --git a/pyproject.toml b/pyproject.toml index 389c0c66b8..23387fd37d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -77,15 +77,6 @@ dependencies = [ ] [project.optional-dependencies] -# Dependencies for building the documentation -docs = [ - "furo>=2023.5.20", - "myst-parser==2.0.0", - "sphinx==7.2.5", - "sphinx_inline_tabs>=2023.4.21", - "sphinx_copybutton>=0.1", - "linkify-it-py>=2.0.0", -] # Only used in notebooks notebooks = [ "bokeh==1.4.0", @@ -136,6 +127,15 @@ dev = [ "pre-commit>=3", "ruff==0.7.0", ] +# Dependencies for building the documentation +docs = [ + "furo>=2023.5.20", + "myst-parser==2.0.0", + "sphinx==7.2.5", + "sphinx_inline_tabs>=2023.4.21", + "sphinx_copybutton>=0.1", + "linkify-it-py>=2.0.0", +] [project.urls] Homepage = "https://github.com/idiap/coqui-ai-TTS"