Merge pull request #133 from idiap/docs

build: move doc dependencies from extra into group and build with uv
This commit is contained in:
Enno Hermann 2024-11-06 11:53:48 +01:00 committed by GitHub
commit 59996fffa3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 17 additions and 26 deletions

View File

@ -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:

View File

@ -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 |

View File

View File

@ -1,6 +0,0 @@
furo
myst-parser == 2.0.0
sphinx == 7.2.5
sphinx_inline_tabs
sphinx_copybutton
linkify-it-py

View File

@ -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"