From 78c05b98fa6dcfd1ef8606ad355e32d9a601d7f4 Mon Sep 17 00:00:00 2001 From: Alex Rudy Date: Mon, 18 Mar 2024 13:51:01 +0000 Subject: [PATCH] Fix docs configuration --- docs/Makefile | 2 +- docs/_static/.gitkeep | 0 docs/_templates/.gitkeep | 0 docs/{source => }/conf.py | 0 docs/{source => }/index.rst | 0 docs/make.bat | 2 +- tox.ini | 2 +- 7 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 docs/_static/.gitkeep create mode 100644 docs/_templates/.gitkeep rename docs/{source => }/conf.py (100%) rename docs/{source => }/index.rst (100%) diff --git a/docs/Makefile b/docs/Makefile index d0c3cbf..af0d16c 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -6,7 +6,7 @@ SPHINXOPTS ?= SPHINXBUILD ?= sphinx-build SOURCEDIR = source -BUILDDIR = build +BUILDDIR = . # Put it first so that "make" without argument is like "make help". help: diff --git a/docs/_static/.gitkeep b/docs/_static/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/docs/_templates/.gitkeep b/docs/_templates/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/docs/source/conf.py b/docs/conf.py similarity index 100% rename from docs/source/conf.py rename to docs/conf.py diff --git a/docs/source/index.rst b/docs/index.rst similarity index 100% rename from docs/source/index.rst rename to docs/index.rst diff --git a/docs/make.bat b/docs/make.bat index 747ffb7..8f56beb 100644 --- a/docs/make.bat +++ b/docs/make.bat @@ -7,7 +7,7 @@ REM Command file for Sphinx documentation if "%SPHINXBUILD%" == "" ( set SPHINXBUILD=sphinx-build ) -set SOURCEDIR=source +set SOURCEDIR=. set BUILDDIR=build %SPHINXBUILD% >NUL 2>NUL diff --git a/tox.ini b/tox.ini index 38975b0..02dae80 100644 --- a/tox.ini +++ b/tox.ini @@ -23,7 +23,7 @@ commands = mypy [testenv:docs] deps = -r requirements/docs.txt -commands = sphinx-build -W -b html -d {envtmpdir}/doctrees {toxinidir}/docs/source {envtmpdir}/build/html +commands = sphinx-build -W -b html -d {envtmpdir}/doctrees {toxinidir}/docs {envtmpdir}/build/html [testenv:minimal] deps =