diff --git a/.readthedocs.yml b/.readthedocs.yml index a1bf398..48aacb3 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -4,15 +4,22 @@ build: os: ubuntu-22.04 tools: python: "3.13" + commands: + - asdf plugin add uv + - asdf install uv latest + - asdf global uv latest + - uv sync --extra docs --frozen + - mkdir -p $READTHEDOCS_OUTPUT/html/ + - uv run -m sphinx -E -T -a -b html -D language=en docs $READTHEDOCS_OUTPUT/html -# Build documentation in the "docs/" directory with Sphinx -sphinx: - configuration: docs/conf.py +# # Build documentation in the "docs/" directory with Sphinx +# sphinx: +# configuration: docs/conf.py -# Install dependencies for the documentation -python: - install: - - method: pip - path: . - extra_requirements: - - docs +# # Install dependencies for the documentation +# python: +# install: +# - method: pip +# path: . +# extra_requirements: +# - docs diff --git a/docs/Makefile b/docs/Makefile deleted file mode 100755 index e1c0914..0000000 --- a/docs/Makefile +++ /dev/null @@ -1,19 +0,0 @@ -# Minimal makefile for Sphinx documentation - -# You can set these variables from the command line. -SPHINXOPTS = -SPHINXBUILD = python -msphinx -SPHINXPROJ = chaturbate_poller -SOURCEDIR = . -BUILDDIR = _build - -# Put it first so that "make" without argument is like "make help". -help: - @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) - -.PHONY: help Makefile - -# Catch-all target: route all unknown targets to Sphinx using the new -# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). -%: Makefile - @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) diff --git a/docs/make.bat b/docs/make.bat deleted file mode 100755 index ebf3ab9..0000000 --- a/docs/make.bat +++ /dev/null @@ -1,36 +0,0 @@ -@ECHO OFF - -pushd %~dp0 - -REM Command file for Sphinx documentation - -if "%SPHINXBUILD%" == "" ( - set SPHINXBUILD=python -msphinx -) -set SOURCEDIR=. -set BUILDDIR=_build -set SPHINXPROJ=chaturbate_poller - -if "%1" == "" goto help - -%SPHINXBUILD% >NUL 2>NUL -if errorlevel 9009 ( - echo. - echo.The Sphinx module was not found. Make sure you have Sphinx installed, - echo.then set the SPHINXBUILD environment variable to point to the full - echo.path of the 'sphinx-build' executable. Alternatively you may add the - echo.Sphinx directory to PATH. - echo. - echo.If you don't have Sphinx installed, grab it from - echo.http://sphinx-doc.org/ - exit /b 1 -) - -%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% -goto end - -:help -%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% - -:end -popd