Skip to content

Commit

Permalink
Merge pull request #133 from idiap/docs
Browse files Browse the repository at this point in the history
build: move doc dependencies from extra into group and build with uv
  • Loading branch information
eginhard authored Nov 6, 2024
2 parents 45b8b5b + 020a724 commit 59996ff
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 26 deletions.
15 changes: 7 additions & 8 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
Empty file removed docs/README.md
Empty file.
6 changes: 0 additions & 6 deletions docs/requirements.txt

This file was deleted.

18 changes: 9 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 59996ff

Please sign in to comment.