diff --git a/.readthedocs.yaml b/.readthedocs.yaml index e5092915a..e3a047f10 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -13,6 +13,9 @@ build: apt_packages: - graphviz jobs: + post_checkout: + - 'sed s/docs\\\/source\\\/// -i.bak README.rst' + - diff README.rst.bak README.rst || true post_install: - python -m pip install '.[dev]' rucio-clients pre_build: diff --git a/docs/Makefile b/docs/Makefile index 7f31598ba..5894164f6 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -1,5 +1,7 @@ html: source/modules + cd .. && sed -i.bak s/docs\\\/source\\\/// README.rst && cd docs sphinx-build -M html source build + cd .. && mv README.rst.bak README.rst && cd docs source/modules: source/reference.rst sphinx-autogen source/reference.rst -t source/_templates -o source/modules diff --git a/docs/source/conf.py b/docs/source/conf.py index 4fb1261d4..ef0540c8f 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -32,7 +32,7 @@ release = coffea.__version__ githash = subprocess.check_output(["git", "rev-parse", "HEAD"]).strip().decode("ascii") -language = None +language = "en" # -- General configuration ---------------------------------------------------